From 461a67fa15370a9ec88f8f8a240bf7c123bb2029 Mon Sep 17 00:00:00 2001 From: Dimitry Andric Date: Mon, 18 Dec 2017 20:11:37 +0000 Subject: Vendor import of clang trunk r321017: https://llvm.org/svn/llvm-project/cfe/trunk@321017 --- lib/Index/CommentToXML.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'lib/Index/CommentToXML.cpp') diff --git a/lib/Index/CommentToXML.cpp b/lib/Index/CommentToXML.cpp index e568c838b7b0f..918068a2405f7 100644 --- a/lib/Index/CommentToXML.cpp +++ b/lib/Index/CommentToXML.cpp @@ -579,6 +579,7 @@ void getSourceTextOfDeclaration(const DeclInfo *ThisDecl, PrintingPolicy PPolicy(LangOpts); PPolicy.PolishForDeclaration = true; PPolicy.TerseOutput = true; + PPolicy.ConstantsAsWritten = true; ThisDecl->CurrentDecl->print(OS, PPolicy, /*Indentation*/0, /*PrintInstantiation*/false); } -- cgit v1.2.3