We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d806d11 commit f3fd36eCopy full SHA for f3fd36e
clang/lib/AST/JSONNodeDumper.cpp
@@ -1414,9 +1414,10 @@ void JSONNodeDumper::VisitCXXDependentScopeMemberExpr(
1414
}
1415
1416
void JSONNodeDumper::VisitIntegerLiteral(const IntegerLiteral *IL) {
1417
- JOS.attribute("value",
1418
- IL->getValue().toString(
1419
- /*Radix=*/10, IL->getType()->isSignedIntegerType()));
+ llvm::SmallString<16> Buffer;
+ IL->getValue().toString(Buffer,
+ /*Radix=*/10, IL->getType()->isSignedIntegerType());
1420
+ JOS.attribute("value", Buffer);
1421
1422
void JSONNodeDumper::VisitCharacterLiteral(const CharacterLiteral *CL) {
1423
// FIXME: This should probably print the character literal as a string,
0 commit comments