diff options
Diffstat (limited to 'gnu/llvm/clang/tools/diagtool/TreeView.cpp')
-rw-r--r-- | gnu/llvm/clang/tools/diagtool/TreeView.cpp | 6 |
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) { |