diff options
Diffstat (limited to 'clang/lib/AST/JSONNodeDumper.cpp')
| -rw-r--r-- | clang/lib/AST/JSONNodeDumper.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/clang/lib/AST/JSONNodeDumper.cpp b/clang/lib/AST/JSONNodeDumper.cpp index 37040eaaab7..676cc4a4fb1 100644 --- a/clang/lib/AST/JSONNodeDumper.cpp +++ b/clang/lib/AST/JSONNodeDumper.cpp @@ -755,7 +755,9 @@ void JSONNodeDumper::VisitIntegerLiteral(const IntegerLiteral *IL) { } void JSONNodeDumper::VisitCharacterLiteral(const CharacterLiteral *CL) { // FIXME: This should probably print the character literal as a string, - // rather than as a numerical value. + // rather than as a numerical value. It would be nice if the behavior matched + // what we do to print a string literal; right now, it is impossible to tell + // the difference between 'a' and L'a' in C from the JSON output. JOS.attribute("value", CL->getValue()); } void JSONNodeDumper::VisitFixedPointLiteral(const FixedPointLiteral *FPL) { |

