================
@@ -5211,11 +5211,7 @@ class SpellingList {
   }
 
   bool hasSpelling() const {
-    for (size_t Kind = 0; Kind < NumSpellingKinds; ++Kind) {
-      if (Spellings[Kind].size() > 0)
-        return true;
-    }
-    return false;
+    return llvm::any_of(Spellings, [](const auto &L) { return L.size() != 0; 
});
----------------
philnik777 wrote:

```suggestion
    return llvm::any_of(Spellings, [](const auto &L) { return !L.empty(); });
```

https://github.com/llvm/llvm-project/pull/158047
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to