From: Aaron Ballman Date: Tue, 7 Jul 2015 12:54:02 +0000 (+0000) Subject: Appease MSVC 2013, which was complaining about a syntax error with an unexpected... X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=c46aa4939d509b30f21536f76a466351ac1941c2;p=clang 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. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@241578 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/include/clang/AST/RecursiveASTVisitor.h b/include/clang/AST/RecursiveASTVisitor.h index d402ce33fd..785bd59b78 100644 --- a/include/clang/AST/RecursiveASTVisitor.h +++ b/include/clang/AST/RecursiveASTVisitor.h @@ -1387,8 +1387,9 @@ DEF_TRAVERSE_DECL(ObjCCompatibleAliasDecl, {// FIXME: implement DEF_TRAVERSE_DECL(ObjCCategoryDecl, {// FIXME: implement if (ObjCTypeParamList *typeParamList = D->getTypeParamList()) { - for (auto typeParam : *typeParamList) + for (auto typeParam : *typeParamList) { TRY_TO(TraverseObjCTypeParamDecl(typeParam)); + } } })