dump: fix dump output for typedef info, file is <stdout> (#5236)

This commit is contained in:
Daniel Marjamäki 2023-07-12 11:21:59 +02:00 committed by GitHub
parent 709fec88f9
commit 3508464c6d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 1 deletions

View File

@ -0,0 +1,3 @@
#line 3 "<stdout>"
typedef int8_t flex_int8_t;

View File

@ -5916,7 +5916,7 @@ void Tokenizer::dump(std::ostream &out) const
for (const TypedefInfo &typedefInfo: mTypedefInfo) {
out << " <info"
<< " name=\"" << typedefInfo.name << "\""
<< " file=\"" << typedefInfo.filename << "\""
<< " file=\"" << ErrorLogger::toxml(typedefInfo.filename) << "\""
<< " line=\"" << typedefInfo.lineNumber << "\""
<< " column=\"" << typedefInfo.column << "\""
<< " used=\"" << (typedefInfo.used?1:0) << "\""