diff options
author | Chris Lattner <sabre@nondot.org> | 2010-09-05 00:07:29 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2010-09-05 00:07:29 +0000 |
commit | 66cf2d1290c598fcbaf1c6b50411f2513daf3b3e (patch) | |
tree | 02d694f10b7f010c9014c814eb81c61e4d379ca0 /lib/AST/TypePrinter.cpp | |
parent | 58f9e13e87e57236fee4b914eea9be6f92a1c345 (diff) |
print "const intptr_t" instead of "intptr_t const"
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@113091 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/AST/TypePrinter.cpp')
-rw-r--r-- | lib/AST/TypePrinter.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/AST/TypePrinter.cpp b/lib/AST/TypePrinter.cpp index e21f9ac3ae..f529187145 100644 --- a/lib/AST/TypePrinter.cpp +++ b/lib/AST/TypePrinter.cpp @@ -72,7 +72,8 @@ void TypePrinter::Print(QualType T, std::string &S) { // the type is complex. For example if the type is "int*", we *must* print // "int * const", printing "const int *" is different. Only do this when the // type expands to a simple string. - bool CanPrefixQualifiers = isa<BuiltinType>(T); + bool CanPrefixQualifiers = + isa<BuiltinType>(T) || isa<TypedefType>(T); if (!CanPrefixQualifiers && !Quals.empty()) { std::string TQS; |