From: Richard Smith Date: Thu, 18 Sep 2014 03:49:06 +0000 (+0000) Subject: Work around MSVC parser bug by putting redundant braces around the body of X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=df5322bedb2068f67a1decddadfc31a345d5aa44;p=clang Work around MSVC parser bug by putting redundant braces around the body of this range-based for loop. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@218011 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/include/clang/AST/DataRecursiveASTVisitor.h b/include/clang/AST/DataRecursiveASTVisitor.h index e8ef806445..0833d7afbf 100644 --- a/include/clang/AST/DataRecursiveASTVisitor.h +++ b/include/clang/AST/DataRecursiveASTVisitor.h @@ -2146,8 +2146,9 @@ bool RecursiveASTVisitor::TraverseLambdaExpr(LambdaExpr *S) { } auto *T = Proto.getTypePtr(); - for (const auto &E : T->exceptions()) + for (const auto &E : T->exceptions()) { TRY_TO(TraverseType(E)); + } if (Expr *NE = T->getNoexceptExpr()) TRY_TO(TraverseStmt(NE)); diff --git a/include/clang/AST/RecursiveASTVisitor.h b/include/clang/AST/RecursiveASTVisitor.h index af0dd6dc22..5083cbf5de 100644 --- a/include/clang/AST/RecursiveASTVisitor.h +++ b/include/clang/AST/RecursiveASTVisitor.h @@ -2168,8 +2168,9 @@ bool RecursiveASTVisitor::TraverseLambdaExpr(LambdaExpr *S) { } auto *T = Proto.getTypePtr(); - for (const auto &E : T->exceptions()) + for (const auto &E : T->exceptions()) { TRY_TO(TraverseType(E)); + } if (Expr *NE = T->getNoexceptExpr()) TRY_TO(TraverseStmt(NE));