[clang] [Clang][docs] Modify generator for HLSL semantics documentation (PR #157841)
Erich Keane via cfe-commits
cfe-commits at lists.llvm.org
Wed Sep 10 09:06:31 PDT 2025
================
@@ -5209,6 +5209,14 @@ class SpellingList {
Other.Spellings[Kind].end());
}
}
+
+ unsigned getSpellingCount() const {
+ unsigned Count = 0;
----------------
erichkeane wrote:
`return llvm::accumulate(Spellings, 0, [](const auto &I) {return I.size() ? 1 : 0; });`
https://github.com/llvm/llvm-project/pull/157841
More information about the cfe-commits
mailing list