[clang] [Attributes] Support Attributes being declared as supporting an experimental late parsing mode "extension" (PR #88596)

Dan Liew via cfe-commits cfe-commits at lists.llvm.org
Tue Apr 23 15:00:32 PDT 2024


================
@@ -1822,28 +1822,100 @@ void WriteSemanticSpellingSwitch(const std::string &VarName,
   OS << "  }\n";
 }
 
+enum class LateAttrParseKind { Never = 0, Standard = 1, ExperimentalExt = 2 };
+
+static LateAttrParseKind getLateAttrParseKind(const Record *Attr) {
+  // This function basically does
+  // `Attr->getValueAsDef("LateParsed")->getValueAsInt("Mode")` but does
----------------
delcypher wrote:

Good catch.

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


More information about the cfe-commits mailing list