]> granicus.if.org Git - clang/commitdiff
"const _Complex float *" not "_Complex float const *"
authorChris Lattner <sabre@nondot.org>
Sun, 5 Sep 2010 00:22:25 +0000 (00:22 +0000)
committerChris Lattner <sabre@nondot.org>
Sun, 5 Sep 2010 00:22:25 +0000 (00:22 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@113093 91177308-0d34-0410-b5e6-96231b3b80d8

lib/AST/TypePrinter.cpp

index e0805715520cd84b95743522abe10c12930ae0f4..f33c5ae882fe7433bf15c4d4d13ed52f813b7879 100644 (file)
@@ -73,7 +73,8 @@ void TypePrinter::Print(QualType T, std::string &S) {
   // "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;