================
@@ -5568,6 +5568,49 @@ static void WriteDocumentation(const RecordKeeper
&Records,
OS << "\n\n\n";
}
+void GetListOfUndocumentedAttributes(
+ const RecordKeeper &Records,
+ std::vector<const Record *> &UndocumentedAttrs) {
+ const Record *Documentation = Records.getDef("GlobalDocumentation");
+ if (!Documentation) {
+ PrintFatalError("The Documentation top-level definition is missing.");
+ return;
+ }
+
+ for (const auto *A : Records.getAllDerivedDefinitions("Attr")) {
----------------
AaronBallman wrote:
`Record *` and we use this pattern about ten times in the file. I can switch
though if you prefer.
https://github.com/llvm/llvm-project/pull/203296
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits