From 5ef846afed3fb8268cbdafec6b586bc1335f22e2 Mon Sep 17 00:00:00 2001 From: olabetskyi <153490942+olabetskyi@users.noreply.github.com> Date: Wed, 10 Jan 2024 10:10:31 +0200 Subject: [PATCH] Add maybe_unused to dumpFile (#5863) Co-authored-by: Oleksandr Labetskyi --- lib/tokenize.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lib/tokenize.cpp b/lib/tokenize.cpp index 15c747b7fe0..03b31da4bcc 100644 --- a/lib/tokenize.cpp +++ b/lib/tokenize.cpp @@ -5971,6 +5971,10 @@ void Tokenizer::dump(std::ostream &out) const outs += " isAtomic=\"true\""; if (tok->isAttributeExport()) outs += " isAttributeExport=\"true\""; + if (tok->isAttributeMaybeUnused()) + outs += " isAttributeMaybeUnused=\"true\""; + if (tok->isAttributeUnused()) + outs += " isAttributeUnused=\"true\""; if (tok->link()) { outs += " link=\""; outs += id_string(tok->link());