[clang] [clang-tools-extra] [llvm] [clang] WIP: Improved Context Declaration tracking (PR #107942)
Younan Zhang via cfe-commits
cfe-commits at lists.llvm.org
Tue Sep 10 08:04:48 PDT 2024
================
@@ -6291,7 +6307,8 @@ bool Parser::isDeclarationSpecifier(
bool Parser::isConstructorDeclarator(bool IsUnqualified, bool DeductionGuide,
DeclSpec::FriendSpecified IsFriend,
const ParsedTemplateInfo *TemplateInfo) {
- RevertingTentativeParsingAction TPA(*this);
+ RevertingTentativeParsingAction TPA(*this, /*Unannotated=*/true);
+ Sema::SFINAETrap Trap(Actions);
----------------
zyn0217 wrote:
Why do we need a SFINAETrap here?
https://github.com/llvm/llvm-project/pull/107942
More information about the cfe-commits
mailing list