summaryrefslogtreecommitdiffstats
path: root/clang/Sema/Sema.h
diff options
context:
space:
mode:
authorSteve Naroff <snaroff@apple.com>2007-12-10 22:44:33 +0000
committerSteve Naroff <snaroff@apple.com>2007-12-10 22:44:33 +0000
commit91f78080e3727d4472f9aac4b401938ce2195c80 (patch)
treef755e86e1ec747808d31d7c7c9558bfbe894259d /clang/Sema/Sema.h
parent9a698a1da7b8c3f86e2828544a3f23cc90a1559a (diff)
downloadbcm5719-llvm-91f78080e3727d4472f9aac4b401938ce2195c80.tar.gz
bcm5719-llvm-91f78080e3727d4472f9aac4b401938ce2195c80.zip
Add support for initializing char arrays from string literals.
Adapted from a patch by Anders Carlsson. llvm-svn: 44816
Diffstat (limited to 'clang/Sema/Sema.h')
-rw-r--r--clang/Sema/Sema.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/clang/Sema/Sema.h b/clang/Sema/Sema.h
index 234fc157d87..4c9f4788f8e 100644
--- a/clang/Sema/Sema.h
+++ b/clang/Sema/Sema.h
@@ -684,7 +684,10 @@ private:
void CheckConstantInitList(QualType DeclType, InitListExpr *IList,
QualType ElementType, bool isStatic,
int &nInitializers, bool &hadError);
-
+ bool CheckForCharArrayInitializer(InitListExpr *IList, QualType ElementType,
+ int &nInitializers, bool isConstant,
+ bool &hadError);
+
// CheckVectorCast - check type constraints for vectors.
// Since vectors are an extension, there are no C standard reference for this.
// We allow casting between vectors and integer datatypes of the same size.
OpenPOWER on IntegriCloud