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

lib/AST/TypePrinter.cpp

index 9e7f1309d4cf287e3270138d0e1eab3feaf1d794..21f855b8e8887d7d07c70343dda07ac9acf9cc71 100644 (file)
@@ -74,7 +74,9 @@ void TypePrinter::Print(QualType T, std::string &S) {
   // type expands to a simple string.
   bool CanPrefixQualifiers =
     isa<BuiltinType>(T) || isa<TypedefType>(T) || isa<TagType>(T) || 
-    isa<ComplexType>(T) || isa<TemplateSpecializationType>(T);
+    isa<ComplexType>(T) || isa<TemplateSpecializationType>(T) ||
+    isa<ObjCObjectType>(T) || isa<ObjCInterfaceType>(T) ||
+    T->isObjCIdType() || T->isObjCQualifiedIdType();
   
   if (!CanPrefixQualifiers && !Quals.empty()) {
     std::string TQS;