Skip to content

Commit ef7afc9

Browse files
committed
Fix #14539
1 parent d84ccf4 commit ef7afc9

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

lib/tokenize.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2998,6 +2998,9 @@ bool Tokenizer::simplifyUsing()
29982998
if (!usingEnd)
29992999
continue;
30003000

3001+
for (Token *typeTok = start; typeTok != usingEnd; typeTok = typeTok->next())
3002+
typeTok->isSimplifiedTypedef(true);
3003+
30013004
// Move struct defined in using out of using.
30023005
// using T = struct t { }; => struct t { }; using T = struct t;
30033006
// fixme: this doesn't handle attributes

0 commit comments

Comments
 (0)