diff options
author | Richard Smith <richard-llvm@metafoo.co.uk> | 2014-09-18 03:49:06 +0000 |
---|---|---|
committer | Richard Smith <richard-llvm@metafoo.co.uk> | 2014-09-18 03:49:06 +0000 |
commit | 22df65cb470e26607453aa2f9a9cb6eab01efbad (patch) | |
tree | b1687f2790b185c41d42208a1424747b95dfa175 | |
parent | c35fb03661a25d07c47453489bdcb39cf7237ff8 (diff) | |
download | bcm5719-llvm-22df65cb470e26607453aa2f9a9cb6eab01efbad.tar.gz bcm5719-llvm-22df65cb470e26607453aa2f9a9cb6eab01efbad.zip |
Work around MSVC parser bug by putting redundant braces around the body of
this range-based for loop.
llvm-svn: 218011
-rw-r--r-- | clang/include/clang/AST/DataRecursiveASTVisitor.h | 3 | ||||
-rw-r--r-- | clang/include/clang/AST/RecursiveASTVisitor.h | 3 |
2 files changed, 4 insertions, 2 deletions
diff --git a/clang/include/clang/AST/DataRecursiveASTVisitor.h b/clang/include/clang/AST/DataRecursiveASTVisitor.h index e8ef8064455..0833d7afbfc 100644 --- a/clang/include/clang/AST/DataRecursiveASTVisitor.h +++ b/clang/include/clang/AST/DataRecursiveASTVisitor.h @@ -2146,8 +2146,9 @@ bool RecursiveASTVisitor<Derived>::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/clang/include/clang/AST/RecursiveASTVisitor.h b/clang/include/clang/AST/RecursiveASTVisitor.h index af0dd6dc224..5083cbf5de0 100644 --- a/clang/include/clang/AST/RecursiveASTVisitor.h +++ b/clang/include/clang/AST/RecursiveASTVisitor.h @@ -2168,8 +2168,9 @@ bool RecursiveASTVisitor<Derived>::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)); |