Author: rsmith
Date: Wed Sep 17 22:49:06 2014
New Revision: 218011
URL: http://llvm.org/viewvc/llvm-project?rev=218011&view=rev
Log:
Work around MSVC parser bug by putting redundant braces around the body of
this range-based for loop.
Modified:
cfe/trunk/include/clang/AST/DataRecursiveASTVisitor.h
cfe/trunk/include/clang/AST/RecursiveASTVisitor.h
Modified: cfe/trunk/include/clang/AST/DataRecursiveASTVisitor.h
URL:
http://llvm.org/viewvc/llvm-project/cfe/trunk/include/clang/AST/DataRecursiveASTVisitor.h?rev=218011&r1=218010&r2=218011&view=diff
==============================================================================
--- cfe/trunk/include/clang/AST/DataRecursiveASTVisitor.h (original)
+++ cfe/trunk/include/clang/AST/DataRecursiveASTVisitor.h Wed Sep 17 22:49:06
2014
@@ -2146,8 +2146,9 @@ bool RecursiveASTVisitor<Derived>::Trave
}
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));
Modified: cfe/trunk/include/clang/AST/RecursiveASTVisitor.h
URL:
http://llvm.org/viewvc/llvm-project/cfe/trunk/include/clang/AST/RecursiveASTVisitor.h?rev=218011&r1=218010&r2=218011&view=diff
==============================================================================
--- cfe/trunk/include/clang/AST/RecursiveASTVisitor.h (original)
+++ cfe/trunk/include/clang/AST/RecursiveASTVisitor.h Wed Sep 17 22:49:06 2014
@@ -2168,8 +2168,9 @@ bool RecursiveASTVisitor<Derived>::Trave
}
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));
_______________________________________________
cfe-commits mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits