[clang] [Clang] Fix parsing of reversible type traits in template arguments (PR #95969)
via cfe-commits
cfe-commits at lists.llvm.org
Fri Jul 12 04:20:56 PDT 2024
================
@@ -1385,6 +1385,12 @@ Parser::isCXXDeclarationSpecifier(ImplicitTypenameContext AllowImplicitTypename,
if (!getLangOpts().ObjC && Next.is(tok::identifier))
return TPResult::True;
+ if (Next.is(tok::l_paren) &&
+ Tok.getIdentifierInfo()->hasRevertedTokenIDToIdentifier() &&
+ isRevertibleTypeTrait(Tok.getIdentifierInfo())) {
----------------
cor3ntin wrote:
I would rather not mutate anything in this function
https://github.com/llvm/llvm-project/pull/95969
More information about the cfe-commits
mailing list