[clang] Add support for referencable labels for attribute documentation (PR #118428)

via cfe-commits cfe-commits at lists.llvm.org
Mon Dec 2 22:12:23 PST 2024


================
@@ -5178,6 +5178,9 @@ GetAttributeHeadingAndSpellings(const Record &Documentation,
 
 static void WriteDocumentation(const RecordKeeper &Records,
                                const DocumentationData &Doc, raw_ostream &OS) {
+  if (const StringRef label = Doc.Documentation->getValueAsString("Label");
----------------
Sirraide wrote:

```suggestion
  if (StringRef label = Doc.Documentation->getValueAsString("Label");
```

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


More information about the cfe-commits mailing list