forked from OSchip/llvm-project
move InitListChecker to be private to SemaInit.cpp
llvm-svn: 65398
This commit is contained in:
parent
94d2f6819f
commit
9ececceea9
|
@ -1884,7 +1884,6 @@ public:
|
|||
IdentifierInfo &Comp, SourceLocation CmpLoc);
|
||||
|
||||
/// type checking declaration initializers (C99 6.7.8)
|
||||
friend class InitListChecker;
|
||||
bool CheckInitializerTypes(Expr *&simpleInit_or_initList, QualType &declType,
|
||||
SourceLocation InitLoc,DeclarationName InitEntity,
|
||||
bool DirectInit);
|
||||
|
|
|
@ -11,8 +11,7 @@
|
|||
// point is Sema::CheckInitList(), but all of the work is performed
|
||||
// within the InitListChecker class.
|
||||
//
|
||||
// This file also includes some miscellaneous other initialization checking
|
||||
// code that is part of Sema.
|
||||
// This file also implements Sema::CheckInitializerTypes.
|
||||
//
|
||||
//===----------------------------------------------------------------------===//
|
||||
|
||||
|
@ -202,7 +201,7 @@ bool Sema::CheckInitializerTypes(Expr *&Init, QualType &DeclType,
|
|||
/// point. CheckDesignatedInitializer() recursively steps into the
|
||||
/// designated subobject and manages backing out the recursion to
|
||||
/// initialize the subobjects after the one designated.
|
||||
namespace clang {
|
||||
namespace {
|
||||
class InitListChecker {
|
||||
Sema *SemaRef;
|
||||
bool hadError;
|
||||
|
@ -279,7 +278,7 @@ public:
|
|||
// semantic analysis and code generation.
|
||||
InitListExpr *getFullyStructuredList() const { return FullyStructuredList; }
|
||||
};
|
||||
}
|
||||
} // end anonymous namespace
|
||||
|
||||
/// Recursively replaces NULL values within the given initializer list
|
||||
/// with expressions that perform value-initialization of the
|
||||
|
|
Loading…
Reference in New Issue