]> granicus.if.org Git - clang/commitdiff
preprocessor directives in macro arguments aren't standard,
authorChris Lattner <sabre@nondot.org>
Fri, 11 Jun 2010 19:50:37 +0000 (19:50 +0000)
committerChris Lattner <sabre@nondot.org>
Fri, 11 Jun 2010 19:50:37 +0000 (19:50 +0000)
hopefully this unbreaks msvc

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@105826 91177308-0d34-0410-b5e6-96231b3b80d8

include/clang/AST/RecursiveASTVisitor.h

index 3a11304d57ad44904bc653d3fce5c24dd3b4c479..ece2f2d250370c65d7164d3f0fc04bc538c7cd2d 100644 (file)
@@ -1165,15 +1165,15 @@ DEF_TRAVERSE_STMT(CXXStaticCastExpr, {
   })
 
 DEF_TRAVERSE_STMT(InitListExpr, {
-    // FIXME: I think this is the right thing to do...
+})
+  // FIXME: I think this is the right thing to do...
 #if 0
-    // We want the syntactic initializer list, not semantic.
-    if (InitListExpr *Syn=S->getSyntacticList())
-      S = Syn;
+  // We want the syntactic initializer list, not semantic.
+  if (InitListExpr *Syn=S->getSyntacticList())
+    S = Syn;
     // Now the default actions will work on the syntactic list.
 #endif
-})
-
+    
 // These exprs (most of them), do not need any action except iterating
 // over the children.
 DEF_TRAVERSE_STMT(AddrLabelExpr, { })