From c46aa4939d509b30f21536f76a466351ac1941c2 Mon Sep 17 00:00:00 2001 From: Aaron Ballman Date: Tue, 7 Jul 2015 12:54:02 +0000 Subject: [PATCH] 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 --- include/clang/AST/RecursiveASTVisitor.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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)); + } } }) -- 2.50.1