]> granicus.if.org Git - clang/commitdiff
Appease MSVC 2013 a few more times, which was complaining about a syntax error with...
authorAaron Ballman <aaron@aaronballman.com>
Tue, 7 Jul 2015 13:19:10 +0000 (13:19 +0000)
committerAaron Ballman <aaron@aaronballman.com>
Tue, 7 Jul 2015 13:19:10 +0000 (13:19 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@241579 91177308-0d34-0410-b5e6-96231b3b80d8

include/clang/AST/DataRecursiveASTVisitor.h
include/clang/AST/RecursiveASTVisitor.h

index 0d47771eb3836085915979f0fb3dca12fa7d59fe..dd167fe27c0235273b171ace5ad975605b026b17 100644 (file)
@@ -940,8 +940,9 @@ DEF_TRAVERSE_TYPE(ObjCObjectType, {
   // type is itself.
   if (T->getBaseType().getTypePtr() != T)
     TRY_TO(TraverseType(T->getBaseType()));
-  for (auto typeArg : T->getTypeArgsAsWritten())
+  for (auto typeArg : T->getTypeArgsAsWritten()) {
     TRY_TO(TraverseType(typeArg));
+  }
 })
 
 DEF_TRAVERSE_TYPE(ObjCObjectPointerType,
@@ -1312,8 +1313,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));
+    }
   }
   return true;
 })
@@ -1326,8 +1328,9 @@ DEF_TRAVERSE_DECL(ObjCImplementationDecl, {// FIXME: implement
 
 DEF_TRAVERSE_DECL(ObjCInterfaceDecl, {// FIXME: implement
   if (ObjCTypeParamList *typeParamList = D->getTypeParamListAsWritten()) {
-    for (auto typeParam : *typeParamList)
+    for (auto typeParam : *typeParamList) {
       TRY_TO(TraverseObjCTypeParamDecl(typeParam));
+    }
   }
 
   if (TypeSourceInfo *superTInfo = D->getSuperClassTInfo()) {
index 785bd59b78b640d418f1d83bc71afe610724834e..1017656b662c1d45363d6bebe2f4728b9adf50cf 100644 (file)
@@ -1008,8 +1008,9 @@ DEF_TRAVERSE_TYPE(ObjCObjectType, {
   // type is itself.
   if (T->getBaseType().getTypePtr() != T)
     TRY_TO(TraverseType(T->getBaseType()));
-  for (auto typeArg : T->getTypeArgsAsWritten())
+  for (auto typeArg : T->getTypeArgsAsWritten()) {
     TRY_TO(TraverseType(typeArg));
+  }
 })
 
 DEF_TRAVERSE_TYPE(ObjCObjectPointerType,
@@ -1401,8 +1402,9 @@ DEF_TRAVERSE_DECL(ObjCImplementationDecl, {// FIXME: implement
 
 DEF_TRAVERSE_DECL(ObjCInterfaceDecl, {// FIXME: implement
   if (ObjCTypeParamList *typeParamList = D->getTypeParamListAsWritten()) {
-    for (auto typeParam : *typeParamList)
+    for (auto typeParam : *typeParamList) {
       TRY_TO(TraverseObjCTypeParamDecl(typeParam));
+    }
   }
 
   if (TypeSourceInfo *superTInfo = D->getSuperClassTInfo()) {