From 3508464c6dadc42162cb618ece6b69763df44b23 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Marjam=C3=A4ki?= Date: Wed, 12 Jul 2023 11:21:59 +0200 Subject: [PATCH] dump: fix dump output for typedef info, file is (#5236) --- addons/test/misra/crash9.c | 3 +++ lib/tokenize.cpp | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) create mode 100644 addons/test/misra/crash9.c diff --git a/addons/test/misra/crash9.c b/addons/test/misra/crash9.c new file mode 100644 index 00000000000..5abf2b8ad02 --- /dev/null +++ b/addons/test/misra/crash9.c @@ -0,0 +1,3 @@ + +#line 3 "" +typedef int8_t flex_int8_t; diff --git a/lib/tokenize.cpp b/lib/tokenize.cpp index 9b5c4f07850..7535328508f 100644 --- a/lib/tokenize.cpp +++ b/lib/tokenize.cpp @@ -5916,7 +5916,7 @@ void Tokenizer::dump(std::ostream &out) const for (const TypedefInfo &typedefInfo: mTypedefInfo) { out << "