summaryrefslogtreecommitdiffstats
path: root/clang/tools/libclang
diff options
context:
space:
mode:
authorFariborz Jahanian <fjahanian@apple.com>2012-12-19 23:36:00 +0000
committerFariborz Jahanian <fjahanian@apple.com>2012-12-19 23:36:00 +0000
commit0389e528abc886f1452078fa1e6c6828f6fd1d98 (patch)
treec58d7e87f7da50fb108b3b59b16f88923c432c47 /clang/tools/libclang
parenta81719160520d357dd183ed8e15920cb4b14a60e (diff)
downloadbcm5719-llvm-0389e528abc886f1452078fa1e6c6828f6fd1d98.tar.gz
bcm5719-llvm-0389e528abc886f1452078fa1e6c6828f6fd1d98.zip
Audit DeclPrinter with -ast-dump on Cocoa.h and
fix any bad objectiveC syntax coming out of DeclPrinter. This is on going. Also, introduce a new PrintPolicy and use it as needed when declaration tag is to be produced via DeclPrinter. llvm-svn: 170606
Diffstat (limited to 'clang/tools/libclang')
-rw-r--r--clang/tools/libclang/CXComment.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/tools/libclang/CXComment.cpp b/clang/tools/libclang/CXComment.cpp
index 0656ab824b4..caf6a857f09 100644
--- a/clang/tools/libclang/CXComment.cpp
+++ b/clang/tools/libclang/CXComment.cpp
@@ -908,7 +908,7 @@ void getSourceTextOfDeclaration(const DeclInfo *ThisDecl,
const LangOptions &LangOpts = Context.getLangOpts();
llvm::raw_svector_ostream OS(Str);
PrintingPolicy PPolicy(LangOpts);
- PPolicy.SuppressAttributes = true;
+ PPolicy.PolishForDeclaration = true;
PPolicy.TerseOutput = true;
ThisDecl->CurrentDecl->print(OS, PPolicy,
/*Indentation*/0, /*PrintInstantiation*/true);
OpenPOWER on IntegriCloud