diff options
| author | Fariborz Jahanian <fjahanian@apple.com> | 2012-12-19 23:36:00 +0000 |
|---|---|---|
| committer | Fariborz Jahanian <fjahanian@apple.com> | 2012-12-19 23:36:00 +0000 |
| commit | 0389e528abc886f1452078fa1e6c6828f6fd1d98 (patch) | |
| tree | c58d7e87f7da50fb108b3b59b16f88923c432c47 /clang/tools | |
| parent | a81719160520d357dd183ed8e15920cb4b14a60e (diff) | |
| download | bcm5719-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')
| -rw-r--r-- | clang/tools/libclang/CXComment.cpp | 2 |
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); |

