[clang] [clang-tools-extra] [llvm] [clang] WIP: Improved Context Declaration tracking (PR #107942)

Matheus Izvekov via cfe-commits cfe-commits at lists.llvm.org
Tue Sep 10 10:53:52 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);
----------------
mizvekov wrote:

To suppress a bunch of diagnostics that would otherwise be duplicated when we parse the thing again for real.

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


More information about the cfe-commits mailing list