[cfe-commits] r113093 - /cfe/trunk/lib/AST/TypePrinter.cpp

Chris Lattner sabre at nondot.org
Sat Sep 4 17:22:25 PDT 2010


Author: lattner
Date: Sat Sep  4 19:22:25 2010
New Revision: 113093

URL: http://llvm.org/viewvc/llvm-project?rev=113093&view=rev
Log:
"const _Complex float *" not "_Complex float const *"

Modified:
    cfe/trunk/lib/AST/TypePrinter.cpp

Modified: cfe/trunk/lib/AST/TypePrinter.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/AST/TypePrinter.cpp?rev=113093&r1=113092&r2=113093&view=diff
==============================================================================
--- cfe/trunk/lib/AST/TypePrinter.cpp (original)
+++ cfe/trunk/lib/AST/TypePrinter.cpp Sat Sep  4 19:22:25 2010
@@ -73,7 +73,8 @@
   // "int * const", printing "const int *" is different.  Only do this when the
   // type expands to a simple string.
   bool CanPrefixQualifiers =
-    isa<BuiltinType>(T) || isa<TypedefType>(T) || isa<TagType>(T);
+    isa<BuiltinType>(T) || isa<TypedefType>(T) || isa<TagType>(T) || 
+    isa<ComplexType>(T);
   
   if (!CanPrefixQualifiers && !Quals.empty()) {
     std::string TQS;





More information about the cfe-commits mailing list