diff options
author | Chris Lattner <sabre@nondot.org> | 2010-09-05 00:36:44 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2010-09-05 00:36:44 +0000 |
commit | 78643b050cd6d6370e5a9a686ab6bc942959137f (patch) | |
tree | 729c6495b13fa4c3d20cdbc3d397088605a52bc3 /lib/AST/TypePrinter.cpp | |
parent | 2f69a816a0986caa24d8e4273a3f83420b05f707 (diff) |
"const id<NSFoo> *" not "id<NSFoo> const*"
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@113095 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/AST/TypePrinter.cpp')
-rw-r--r-- | lib/AST/TypePrinter.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/AST/TypePrinter.cpp b/lib/AST/TypePrinter.cpp index 9e7f1309d4..21f855b8e8 100644 --- a/lib/AST/TypePrinter.cpp +++ b/lib/AST/TypePrinter.cpp @@ -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; |