]> granicus.if.org Git - clang/commitdiff
Remove check which incorrectly suppressed printing an identifier in type printing...
authorEli Friedman <eli.friedman@gmail.com>
Thu, 18 Oct 2012 20:58:58 +0000 (20:58 +0000)
committerEli Friedman <eli.friedman@gmail.com>
Thu, 18 Oct 2012 20:58:58 +0000 (20:58 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@166227 91177308-0d34-0410-b5e6-96231b3b80d8

lib/AST/TypePrinter.cpp
test/SemaCXX/ast-print.cpp

index 2c00246301800b2c7c5bd62bdac683714f7f5b97..4cf4b1847f42e7d6a5b7f5b0103a65766a86a590 100644 (file)
@@ -141,9 +141,6 @@ void TypePrinter::print(const Type *T, Qualifiers Quals, raw_ostream &OS,
     OS << "NULL TYPE";
     return;
   }
-  
-  if (Policy.SuppressSpecifiers && T->isSpecifierType())
-    return;
 
   SaveAndRestore<bool> PHVal(HasEmptyPlaceHolder, PlaceHolder.empty());
 
index 46b99e0d6100530f497134620e1f0cd42ce0c70a..15fdabfe32fa0df663cfed6908560bcc05c31213 100644 (file)
@@ -41,3 +41,8 @@ struct X {
   void *operator new (typeof(sizeof(1)), int = 2);
 };
 void f2() { new X; }
+
+// CHECK: for (int i = 2097, j = 42; false;)
+void forInit() {
+  for (int i = 2097, j = 42; false;) {}
+}