]> granicus.if.org Git - clang/commit
Add a printing policy to the ASTDumper.
authorAaron Ballman <aaron@aaronballman.com>
Wed, 20 Dec 2017 22:04:54 +0000 (22:04 +0000)
committerAaron Ballman <aaron@aaronballman.com>
Wed, 20 Dec 2017 22:04:54 +0000 (22:04 +0000)
commitbfdec8d00b2b4b35a86ab75d4265772f6f7da518
treecc66aac08c4c13cadcc2f72b3209d1c353b15b5b
parent1c11a98e84f2d2ca40b963cb0b2511eddbef963f
Add 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.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@321223 91177308-0d34-0410-b5e6-96231b3b80d8
17 files changed:
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