From d249e1d1f1498b81314459ceda19d6ff25c278ad Mon Sep 17 00:00:00 2001 From: Douglas Gregor Date: Fri, 29 May 2009 20:38:28 +0000 Subject: 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 --- lib/Frontend/DocumentXML.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/Frontend/DocumentXML.cpp') diff --git a/lib/Frontend/DocumentXML.cpp b/lib/Frontend/DocumentXML.cpp index 80060f5b73..ac1d7d2a8b 100644 --- a/lib/Frontend/DocumentXML.cpp +++ b/lib/Frontend/DocumentXML.cpp @@ -194,7 +194,7 @@ void DocumentXML::finalize() // don't use the get methods as they strip of typedef infos if (const BuiltinType *BT = dyn_cast(i->first)) { addSubNode("FundamentalType"); - addAttribute("name", BT->getName()); + addAttribute("name", BT->getName(Ctx->getLangOptions().CPlusPlus)); } else if (const PointerType *PT = dyn_cast(i->first)) { addSubNode("PointerType"); -- cgit v1.2.3-18-g5258