forked from OSchip/llvm-project
Add more tests for AST JSON output; NFC.
This adds tests for dumping expressions in C. It also updates a comment to note an issue to be fixed with printing character literals discovered as part of this testing. llvm-svn: 361193
This commit is contained in:
parent
4ed18e5ef5
commit
4aee1b5b0b
|
@ -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) {
|
||||
|
|
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue