[PATCH] D40448: Add a printing policy for AST dumping
Aaron Ballman via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Fri Nov 24 14:33:16 PST 2017
aaron.ballman created this revision.
The AST dump functionality does not currently make use of a printing policy, so when dumping C++ code, you will see `_Bool`, `struct Foo` and other C-isms in the output. This patch adds a `PrintingPolicy` object to the AST dumper to get slightly improved output for the various language modes, and corrects the impacted test cases.
https://reviews.llvm.org/D40448
Files:
include/clang/AST/Type.h
lib/AST/ASTDumper.cpp
lib/AST/TypePrinter.cpp
lib/StaticAnalyzer/Checkers/PaddingChecker.cpp
test/CXX/dcl.decl/dcl.init/dcl.init.ref/p5-examples.cpp
test/Frontend/float16.cpp
test/Misc/ast-dump-attr.cpp
test/Misc/ast-dump-decl.cpp
test/Misc/ast-dump-invalid.cpp
test/OpenMP/dump.cpp
test/Parser/objc-default-ctor-init.mm
test/SemaCXX/compound-literal.cpp
test/SemaCXX/sourceranges.cpp
test/SemaCXX/warn-redundant-move.cpp
test/SemaObjCXX/block-cleanup.mm
test/SemaTemplate/default-expr-arguments-2.cpp
test/SemaTemplate/default-expr-arguments-3.cpp
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D40448.124240.patch
Type: text/x-patch
Size: 27337 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20171124/7559d2e0/attachment-0001.bin>
More information about the cfe-commits
mailing list