Re-commit r321223, which adds a printing policy to the ASTDumper.
authorAaron Ballman <aaron@aaronballman.com>
Thu, 21 Dec 2017 21:42:42 +0000 (21:42 +0000)
committerAaron Ballman <aaron@aaronballman.com>
Thu, 21 Dec 2017 21:42:42 +0000 (21:42 +0000)
commit8c20828b5c2833b5d63539992dde30bd29429491
tree57ee5e552a1fbb0a2279dceb5e7a9134a4dc23c4
parent50db8a208658dd6c250f545b04ca4f2b2d75373d
Re-commit r321223, which adds a printing policy to the ASTDumper.

This allows you to dump C++ code that spells bool instead of _Bool, leaves off the elaborated type specifiers when printing struct or class names, and other C-isms.

Fixes the -Wreorder issue and fixes the ast-dump-color.cpp test.

llvm-svn: 321310
18 files changed:
clang/include/clang/AST/Type.h
clang/lib/AST/ASTDumper.cpp
clang/lib/AST/TypePrinter.cpp
clang/lib/StaticAnalyzer/Checkers/PaddingChecker.cpp
clang/test/CXX/dcl.decl/dcl.init/dcl.init.ref/p5-examples.cpp
clang/test/Frontend/float16.cpp
clang/test/Misc/ast-dump-attr.cpp
clang/test/Misc/ast-dump-color.cpp
clang/test/Misc/ast-dump-decl.cpp
clang/test/Misc/ast-dump-invalid.cpp
clang/test/OpenMP/dump.cpp
clang/test/Parser/objc-default-ctor-init.mm
clang/test/SemaCXX/compound-literal.cpp
clang/test/SemaCXX/sourceranges.cpp
clang/test/SemaCXX/warn-redundant-move.cpp
clang/test/SemaObjCXX/block-cleanup.mm
clang/test/SemaTemplate/default-expr-arguments-2.cpp
clang/test/SemaTemplate/default-expr-arguments-3.cpp