================ @@ -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 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits