Decouple ExprCXX.h and DeclCXX.h and clean up includes a bit.

Required pulling LambdaExpr::Capture into its own header.
No functionality change.

llvm-svn: 208470
This commit is contained in:
Benjamin Kramer
2014-05-10 16:31:55 +00:00
parent 55b3e22927
commit f3ca269839
36 changed files with 196 additions and 167 deletions

View File

@@ -4327,15 +4327,13 @@ void Sema::CodeCompleteLambdaIntroducer(Scope *S, LambdaIntroducer &Intro,
// Note what has already been captured.
llvm::SmallPtrSet<IdentifierInfo *, 4> Known;
bool IncludedThis = false;
for (SmallVectorImpl<LambdaCapture>::iterator C = Intro.Captures.begin(),
CEnd = Intro.Captures.end();
C != CEnd; ++C) {
if (C->Kind == LCK_This) {
for (const auto &C : Intro.Captures) {
if (C.Kind == LCK_This) {
IncludedThis = true;
continue;
}
Known.insert(C->Id);
Known.insert(C.Id);
}
// Look for other capturable variables.