]> granicus.if.org Git - clang/commit
Create a new PrintingPolicy class, which we pass down through the AST
authorDouglas Gregor <dgregor@apple.com>
Fri, 29 May 2009 20:38:28 +0000 (20:38 +0000)
committerDouglas Gregor <dgregor@apple.com>
Fri, 29 May 2009 20:38:28 +0000 (20:38 +0000)
commitd249e1d1f1498b81314459ceda19d6ff25c278ad
tree64980c7c4974845750bbfefa695204a8feff0861
parente540858b289b23653bcb23646f135729203635cb
Create a new PrintingPolicy class, which we pass down through the AST
printing logic to help customize the output. For now, we use this
rather than a special flag to suppress the "struct" when printing
"struct X" and to print the Boolean type as "bool" in C++ but "_Bool"
in C.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@72590 91177308-0d34-0410-b5e6-96231b3b80d8
25 files changed:
include/clang/AST/ASTContext.h
include/clang/AST/NestedNameSpecifier.h
include/clang/AST/PrettyPrinter.h
include/clang/AST/Stmt.h
include/clang/AST/TemplateName.h
include/clang/AST/Type.h
lib/AST/ASTContext.cpp
lib/AST/CFG.cpp
lib/AST/Decl.cpp
lib/AST/NestedNameSpecifier.cpp
lib/AST/StmtDumper.cpp
lib/AST/StmtPrinter.cpp
lib/AST/TemplateName.cpp
lib/AST/Type.cpp
lib/CodeGen/CGDebugInfo.cpp
lib/Frontend/ASTConsumers.cpp
lib/Frontend/DocumentXML.cpp
lib/Frontend/RewriteBlocks.cpp
lib/Frontend/RewriteObjC.cpp
lib/Sema/Sema.cpp
lib/Sema/SemaTemplateInstantiate.cpp
test/SemaCXX/bool.cpp
test/SemaCXX/convert-to-bool.cpp
test/SemaCXX/overloaded-operator.cpp
test/SemaTemplate/typename-specifier-2.cpp