<div dir="ltr">I don't think it worked, see my comment on the r217995 commit thread.</div><div class="gmail_extra"><br><div class="gmail_quote">2014-09-18 7:49 GMT+04:00 Richard Smith <span dir="ltr"><<a href="mailto:richard-llvm@metafoo.co.uk" target="_blank">richard-llvm@metafoo.co.uk</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Author: rsmith<br>
Date: Wed Sep 17 22:49:06 2014<br>
New Revision: 218011<br>
<br>
URL: <a href="http://llvm.org/viewvc/llvm-project?rev=218011&view=rev" target="_blank">http://llvm.org/viewvc/llvm-project?rev=218011&view=rev</a><br>
Log:<br>
Work around MSVC parser bug by putting redundant braces around the body of<br>
this range-based for loop.<br>
<br>
Modified:<br>
    cfe/trunk/include/clang/AST/DataRecursiveASTVisitor.h<br>
    cfe/trunk/include/clang/AST/RecursiveASTVisitor.h<br>
<br>
Modified: cfe/trunk/include/clang/AST/DataRecursiveASTVisitor.h<br>
URL: <a href="http://llvm.org/viewvc/llvm-project/cfe/trunk/include/clang/AST/DataRecursiveASTVisitor.h?rev=218011&r1=218010&r2=218011&view=diff" target="_blank">http://llvm.org/viewvc/llvm-project/cfe/trunk/include/clang/AST/DataRecursiveASTVisitor.h?rev=218011&r1=218010&r2=218011&view=diff</a><br>
==============================================================================<br>
--- cfe/trunk/include/clang/AST/DataRecursiveASTVisitor.h (original)<br>
+++ cfe/trunk/include/clang/AST/DataRecursiveASTVisitor.h Wed Sep 17 22:49:06 2014<br>
@@ -2146,8 +2146,9 @@ bool RecursiveASTVisitor<Derived>::Trave<br>
     }<br>
<br>
     auto *T = Proto.getTypePtr();<br>
-    for (const auto &E : T->exceptions())<br>
+    for (const auto &E : T->exceptions()) {<br>
       TRY_TO(TraverseType(E));<br>
+    }<br>
<br>
     if (Expr *NE = T->getNoexceptExpr())<br>
       TRY_TO(TraverseStmt(NE));<br>
<br>
Modified: cfe/trunk/include/clang/AST/RecursiveASTVisitor.h<br>
URL: <a href="http://llvm.org/viewvc/llvm-project/cfe/trunk/include/clang/AST/RecursiveASTVisitor.h?rev=218011&r1=218010&r2=218011&view=diff" target="_blank">http://llvm.org/viewvc/llvm-project/cfe/trunk/include/clang/AST/RecursiveASTVisitor.h?rev=218011&r1=218010&r2=218011&view=diff</a><br>
==============================================================================<br>
--- cfe/trunk/include/clang/AST/RecursiveASTVisitor.h (original)<br>
+++ cfe/trunk/include/clang/AST/RecursiveASTVisitor.h Wed Sep 17 22:49:06 2014<br>
@@ -2168,8 +2168,9 @@ bool RecursiveASTVisitor<Derived>::Trave<br>
     }<br>
<br>
     auto *T = Proto.getTypePtr();<br>
-    for (const auto &E : T->exceptions())<br>
+    for (const auto &E : T->exceptions()) {<br>
       TRY_TO(TraverseType(E));<br>
+    }<br>
<br>
     if (Expr *NE = T->getNoexceptExpr())<br>
       TRY_TO(TraverseStmt(NE));<br>
<br>
<br>
_______________________________________________<br>
cfe-commits mailing list<br>
<a href="mailto:cfe-commits@cs.uiuc.edu">cfe-commits@cs.uiuc.edu</a><br>
<a href="http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits" target="_blank">http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits</a><br>
</blockquote></div><br></div>