aboutsummaryrefslogtreecommitdiff
path: root/lib/Sema/Sema.h
diff options
context:
space:
mode:
authorDouglas Gregor <dgregor@apple.com>2009-12-16 06:35:08 +0000
committerDouglas Gregor <dgregor@apple.com>2009-12-16 06:35:08 +0000
commitcb57fb9f91e0976f4a3382b89a2734ffa50eb6fb (patch)
treec9eb243b5d7e3ac6011215f6a8016a1ce07876a8 /lib/Sema/Sema.h
parent772494c3b8f0c7c80484d0fef5b20cf4e445a8e2 (diff)
Eliminate Sema::CheckValueInitialization; its callers now use
InitializationSequence to perform the actual initialization. Also, introduced the notion of a tree of initialized entities, so that we can know where an initialization began when dealing with nested initializations (as occur when performing list initialization). This will, eventually, be useful for producing better diagnostics when list initialization fails, because we can show the path from the top-level object being initialized down to the actual subobject where initialization failed. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@91516 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Sema/Sema.h')
-rw-r--r--lib/Sema/Sema.h5
1 files changed, 2 insertions, 3 deletions
diff --git a/lib/Sema/Sema.h b/lib/Sema/Sema.h
index c489b1ea41..28a6bba7f4 100644
--- a/lib/Sema/Sema.h
+++ b/lib/Sema/Sema.h
@@ -3693,11 +3693,10 @@ public:
bool CheckInitializerTypes(Expr *&simpleInit_or_initList, QualType &declType,
const InitializedEntity &Entity,
const InitializationKind &Kind);
- bool CheckInitList(InitListExpr *&InitList, QualType &DeclType);
+ bool CheckInitList(const InitializedEntity &Entity,
+ InitListExpr *&InitList, QualType &DeclType);
bool CheckForConstantInitializer(Expr *e, QualType t);
- bool CheckValueInitialization(QualType Type, SourceLocation Loc);
-
// type checking C++ declaration initializers (C++ [dcl.init]).
/// ReferenceCompareResult - Expresses the result of comparing two