[clang] [Clang] Properly parse enumeration declarations with fixed underlying type in generic associations (PR #210353)
Aaron Ballman via cfe-commits
cfe-commits at lists.llvm.org
Mon Jul 27 07:58:12 PDT 2026
================
@@ -602,6 +602,14 @@ bool Parser::isCXXTypeId(TentativeCXXTypeIdContext Context, bool &isAmbiguous) {
return TPR == TPResult::True;
}
+bool Parser::isNextCXXTypeId(TentativeCXXTypeIdContext Context,
+ bool &isAmbiguous) {
+ RevertingTentativeParsingAction PA(*this);
+ ConsumeToken();
+ bool ret = isCXXTypeId(Context, isAmbiguous);
+ return ret;
----------------
AaronBallman wrote:
```suggestion
return isCXXTypeId(Context, isAmbiguous);
```
https://github.com/llvm/llvm-project/pull/210353
More information about the cfe-commits
mailing list