From a388acc7d111eece16e7c46f357872ec47588443 Mon Sep 17 00:00:00 2001 From: Robert Nagy Date: Sat, 11 Nov 2023 18:17:06 +0000 Subject: import of clang from LLVM-16.0.6 --- gnu/llvm/clang/tools/diagtool/TreeView.cpp | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'gnu/llvm/clang/tools/diagtool/TreeView.cpp') 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) { -- cgit v1.2.3