Skip to content

Commit

Permalink
dump: fix dump output for typedef info, file is <stdout> (#5236)
Browse files Browse the repository at this point in the history
  • Loading branch information
danmar committed Jul 12, 2023
1 parent 709fec8 commit 3508464
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions addons/test/misra/crash9.c
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@

#line 3 "<stdout>"
typedef int8_t flex_int8_t;
2 changes: 1 addition & 1 deletion lib/tokenize.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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) << "\""
Expand Down

0 comments on commit 3508464

Please sign in to comment.