summaryrefslogtreecommitdiff
path: root/gnu/llvm/clang/tools/diagtool/TreeView.cpp
diff options
context:
space:
mode:
authorRobert Nagy <robert@cvs.openbsd.org>2023-11-11 18:17:06 +0000
committerRobert Nagy <robert@cvs.openbsd.org>2023-11-11 18:17:06 +0000
commita388acc7d111eece16e7c46f357872ec47588443 (patch)
treea636add3cb3f4afb8c45bb8302545f79f9e37d37 /gnu/llvm/clang/tools/diagtool/TreeView.cpp
parent77976eff798a4c323c3194ff91190574c44d047d (diff)
import of clang from LLVM-16.0.6
Diffstat (limited to 'gnu/llvm/clang/tools/diagtool/TreeView.cpp')
-rw-r--r--gnu/llvm/clang/tools/diagtool/TreeView.cpp6
1 files changed, 1 insertions, 5 deletions
diff --git a/gnu/llvm/clang/tools/diagtool/TreeView.cpp b/gnu/llvm/clang/tools/diagtool/TreeView.cpp
index 843bd377e57..92d92aa9069 100644
--- a/gnu/llvm/clang/tools/diagtool/TreeView.cpp
+++ b/gnu/llvm/clang/tools/diagtool/TreeView.cpp
@@ -40,11 +40,7 @@ public:
if (!Group.diagnostics().empty())
return false;
- for (const GroupRecord &GR : Group.subgroups())
- if (!unimplemented(GR))
- return false;
-
- return true;
+ return llvm::all_of(Group.subgroups(), unimplemented);
}
static bool enabledByDefault(const GroupRecord &Group) {