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

Aaron Ballman via cfe-commits cfe-commits at lists.llvm.org
Tue Apr 23 10:34:49 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
----------------
AaronBallman wrote:

```suggestion
  // `Attr->getValueAsDef("LateParsed")->getValueAsInt("Kind")` but does
```


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


More information about the cfe-commits mailing list