summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorTim Northover <tnorthover@apple.com>2013-10-01 14:34:18 +0000
committerTim Northover <tnorthover@apple.com>2013-10-01 14:34:18 +0000
commitf8aebef45428388ffbbd2ad9cbb3bfb15cd7069a (patch)
treebf26ddbdab1fc32690f564bdc6dee1b003008afd /include
parent454897d266b8f945b94cda74aa3b77c038b86e62 (diff)
downloadclang-f8aebef45428388ffbbd2ad9cbb3bfb15cd7069a.tar.gz
clang-f8aebef45428388ffbbd2ad9cbb3bfb15cd7069a.tar.bz2
clang-f8aebef45428388ffbbd2ad9cbb3bfb15cd7069a.tar.xz
Move checkStringLiteralArgument into Sema class
It's a useful function to have around for target-specific attributes. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@191768 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include')
-rw-r--r--include/clang/Sema/Sema.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/include/clang/Sema/Sema.h b/include/clang/Sema/Sema.h
index d9af5b6d78..a7df4365b5 100644
--- a/include/clang/Sema/Sema.h
+++ b/include/clang/Sema/Sema.h
@@ -2543,6 +2543,10 @@ public:
bool CheckCallingConvAttr(const AttributeList &attr, CallingConv &CC,
const FunctionDecl *FD = 0);
bool CheckNoReturnAttr(const AttributeList &attr);
+ bool checkStringLiteralArgumentAttr(const AttributeList &Attr,
+ unsigned ArgNum, StringRef &Str,
+ SourceLocation *ArgLocation = 0);
+
void CheckAlignasUnderalignment(Decl *D);
/// Adjust the calling convention of a method to be the ABI default if it