Author: aaronballman
Date: Tue Jul  7 07:54:02 2015
New Revision: 241578

URL: http://llvm.org/viewvc/llvm-project?rev=241578&view=rev
Log:
Appease MSVC 2013, which was complaining about a syntax error with an 
unexpected close curly brace. For some reason, the range-based for loop 
requires curly braces to compile in MSVC.

Modified:
    cfe/trunk/include/clang/AST/RecursiveASTVisitor.h

Modified: cfe/trunk/include/clang/AST/RecursiveASTVisitor.h
URL: 
http://llvm.org/viewvc/llvm-project/cfe/trunk/include/clang/AST/RecursiveASTVisitor.h?rev=241578&r1=241577&r2=241578&view=diff
==============================================================================
--- cfe/trunk/include/clang/AST/RecursiveASTVisitor.h (original)
+++ cfe/trunk/include/clang/AST/RecursiveASTVisitor.h Tue Jul  7 07:54:02 2015
@@ -1387,8 +1387,9 @@ DEF_TRAVERSE_DECL(ObjCCompatibleAliasDec
 
 DEF_TRAVERSE_DECL(ObjCCategoryDecl, {// FIXME: implement
   if (ObjCTypeParamList *typeParamList = D->getTypeParamList()) {
-    for (auto typeParam : *typeParamList)
+    for (auto typeParam : *typeParamList) {
       TRY_TO(TraverseObjCTypeParamDecl(typeParam));
+    }
   }
 })
 


_______________________________________________
cfe-commits mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits

Reply via email to