diff options
author | Douglas Gregor <dgregor@apple.com> | 2009-05-29 20:38:28 +0000 |
---|---|---|
committer | Douglas Gregor <dgregor@apple.com> | 2009-05-29 20:38:28 +0000 |
commit | 7de5966d76fea50cdf1ded7ccd2677594a12ef36 (patch) | |
tree | a823b08ce247d4b9447e707117392e469ee0936f /clang/lib/Sema/Sema.cpp | |
parent | 006459ecd4ab07c8a1daa2d005533649261f8c4a (diff) | |
download | bcm5719-llvm-7de5966d76fea50cdf1ded7ccd2677594a12ef36.tar.gz bcm5719-llvm-7de5966d76fea50cdf1ded7ccd2677594a12ef36.zip |
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.
llvm-svn: 72590
Diffstat (limited to 'clang/lib/Sema/Sema.cpp')
-rw-r--r-- | clang/lib/Sema/Sema.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/Sema/Sema.cpp b/clang/lib/Sema/Sema.cpp index 411d5a1677d..1212d070f69 100644 --- a/clang/lib/Sema/Sema.cpp +++ b/clang/lib/Sema/Sema.cpp @@ -38,7 +38,7 @@ static void ConvertArgToStringFn(Diagnostic::ArgumentKind Kind, intptr_t Val, QualType Ty(QualType::getFromOpaquePtr(reinterpret_cast<void*>(Val))); // FIXME: Playing with std::string is really slow. - S = Ty.getAsString(); + S = Ty.getAsString(Context.PrintingPolicy); // If this is a sugared type (like a typedef, typeof, etc), then unwrap one // level of the sugar so that the type is more obvious to the user. |