File tree Expand file tree Collapse file tree 2 files changed +2
-3
lines changed Expand file tree Collapse file tree 2 files changed +2
-3
lines changed Original file line number Diff line number Diff line change @@ -434,7 +434,6 @@ struct FormatToken {
434
434
setType (T);
435
435
}
436
436
bool isTypeFinalized () const { return TypeIsFinalized; }
437
- void setTypeIsFinalized () { TypeIsFinalized = true ; }
438
437
439
438
// / Used to set an operator precedence explicitly.
440
439
prec::Level ForcedPrecedence = prec::Unknown;
Original file line number Diff line number Diff line change @@ -277,8 +277,8 @@ void FormatTokenLexer::tryMergePreviousTokens() {
277
277
// TableGen's Multi line string starts with [{
278
278
if (Style.isTableGen () && tryMergeTokens ({tok::l_square, tok::l_brace},
279
279
TT_TableGenMultiLineString)) {
280
- // This must never be annotated as other types.
281
- Tokens.back ()->setTypeIsFinalized ( );
280
+ // Set again with finalizing. This must never be annotated as other types.
281
+ Tokens.back ()->setFinalizedType (TT_TableGenMultiLineString );
282
282
Tokens.back ()->Tok .setKind (tok::string_literal);
283
283
return ;
284
284
}
You can’t perform that action at this time.
0 commit comments