================
@@ -1000,8 +1001,10 @@ ExprResult Parser::ParseCastExpression(CastParseKind
ParseKind,
Token Replacement;
CastExpressionIdValidator Validator(
/*Next=*/Tok,
- /*AllowTypes=*/isTypeCast != TypeCastState::NotTypeCast,
- /*AllowNonTypes=*/isTypeCast != TypeCastState::IsTypeCast);
+ /*AllowTypes=*/CorrectionBehavior !=
+ TypoCorrectionTypeBehavior::AllowNonTypes,
+ /*AllowNonTypes=*/CorrectionBehavior !=
+ TypoCorrectionTypeBehavior::AllowTypes);
Validator.IsAddressOfOperand = isAddressOfOperand;
----------------
Sirraide wrote:
I feel like at this point the `CastExpressionIdValidator` should just store the
`TypoCorrectionTypeBehavior` instead of splitting it into two flagsāor am I
missing something here?
https://github.com/llvm/llvm-project/pull/146394
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits