[gardening] if ([space]…[space]) → if (…), for(…) → for (…), while(…) → while (…), [[space]x, y[space]] → [x, y]

This commit is contained in:
practicalswift
2016-04-04 16:22:11 +02:00
parent 336b7198f7
commit abfecfde17
85 changed files with 214 additions and 214 deletions

View File

@@ -746,7 +746,7 @@ void SwiftDocumentSemanticInfo::updateSemanticInfo(
{
llvm::sys::ScopedLock L(Mtx);
if(ASTGeneration > this->ASTGeneration) {
if (ASTGeneration > this->ASTGeneration) {
SemaToks = std::move(Toks);
SemaDiags = std::move(Diags);
TokSnapshot = DiagSnapshot = std::move(Snapshot);
@@ -1553,7 +1553,7 @@ private:
bool walkToStmtPre(Stmt *S) override {
auto SR = S->getSourceRange();
if (SR.isValid() && SM.rangeContainsTokenLoc(SR, TargetLoc)) {
if(!EnclosingCall && !isa<BraceStmt>(S))
if (!EnclosingCall && !isa<BraceStmt>(S))
OuterStmt = S;
}
return true;