[cfe-commits] r105826 - /cfe/trunk/include/clang/AST/RecursiveASTVisitor.h

Chris Lattner sabre at nondot.org
Fri Jun 11 12:50:37 PDT 2010


Author: lattner
Date: Fri Jun 11 14:50:37 2010
New Revision: 105826

URL: http://llvm.org/viewvc/llvm-project?rev=105826&view=rev
Log:
preprocessor directives in macro arguments aren't standard,
hopefully this unbreaks 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=105826&r1=105825&r2=105826&view=diff
==============================================================================
--- cfe/trunk/include/clang/AST/RecursiveASTVisitor.h (original)
+++ cfe/trunk/include/clang/AST/RecursiveASTVisitor.h Fri Jun 11 14:50:37 2010
@@ -1165,15 +1165,15 @@
   })
 
 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, { })





More information about the cfe-commits mailing list