Skip to content

Commit b643d8f

Browse files
committed
Fix #14539
1 parent ada13aa commit b643d8f

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
@@ -3013,6 +3013,9 @@ bool Tokenizer::simplifyUsing()
30133013
if (!usingEnd)
30143014
continue;
30153015

3016+
for (Token *typeTok = start; typeTok != usingEnd; typeTok = typeTok->next())
3017+
typeTok->isSimplifiedTypedef(true);
3018+
30163019
// Move struct defined in using out of using.
30173020
// using T = struct t { }; => struct t { }; using T = struct t;
30183021
// fixme: this doesn't handle attributes

0 commit comments

Comments
 (0)