[clang] Remove delayed typo expressions (PR #143423)

Aaron Ballman via cfe-commits cfe-commits at lists.llvm.org
Tue Jun 10 04:06:49 PDT 2025


================
@@ -4920,6 +4914,11 @@ bool Parser::ParseOpenMPVarList(OpenMPDirectiveKind DKind,
             ModifierFound = true;
           } else {
             StepFound = parseStepSize(*this, Data, Kind, Tok.getLocation());
+            if (!StepFound) {
----------------
AaronBallman wrote:

Good question! Because without this new code, the OpenMP 5.2 parsing behavior is different from other OpenMP modes in a way that made about a hundred tests need to be updated for an unhelpful "missing ')'" diagnostic difference.

https://github.com/llvm/llvm-project/pull/143423


More information about the cfe-commits mailing list