[cfe-commits] r166227 - in /cfe/trunk: lib/AST/TypePrinter.cpp test/SemaCXX/ast-print.cpp
Eli Friedman
eli.friedman at gmail.com
Thu Oct 18 13:58:58 PDT 2012
Author: efriedma
Date: Thu Oct 18 15:58:58 2012
New Revision: 166227
URL: http://llvm.org/viewvc/llvm-project?rev=166227&view=rev
Log:
Remove check which incorrectly suppressed printing an identifier in type printing. Patch by Benoit Perrot.
Modified:
cfe/trunk/lib/AST/TypePrinter.cpp
cfe/trunk/test/SemaCXX/ast-print.cpp
Modified: cfe/trunk/lib/AST/TypePrinter.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/AST/TypePrinter.cpp?rev=166227&r1=166226&r2=166227&view=diff
==============================================================================
--- cfe/trunk/lib/AST/TypePrinter.cpp (original)
+++ cfe/trunk/lib/AST/TypePrinter.cpp Thu Oct 18 15:58:58 2012
@@ -141,9 +141,6 @@
OS << "NULL TYPE";
return;
}
-
- if (Policy.SuppressSpecifiers && T->isSpecifierType())
- return;
SaveAndRestore<bool> PHVal(HasEmptyPlaceHolder, PlaceHolder.empty());
Modified: cfe/trunk/test/SemaCXX/ast-print.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/SemaCXX/ast-print.cpp?rev=166227&r1=166226&r2=166227&view=diff
==============================================================================
--- cfe/trunk/test/SemaCXX/ast-print.cpp (original)
+++ cfe/trunk/test/SemaCXX/ast-print.cpp Thu Oct 18 15:58:58 2012
@@ -41,3 +41,8 @@
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;) {}
+}
More information about the cfe-commits
mailing list