[clang] 18b0d2c - [analyzer] Fix a FIXME. NFCI
Benjamin Kramer via cfe-commits
cfe-commits at lists.llvm.org
Fri Jan 13 07:15:54 PST 2023
Author: Benjamin Kramer
Date: 2023-01-13T16:15:16+01:00
New Revision: 18b0d2c5d9762070f7c579f2ffffe7ecaa105db7
URL: https://github.com/llvm/llvm-project/commit/18b0d2c5d9762070f7c579f2ffffe7ecaa105db7
DIFF: https://github.com/llvm/llvm-project/commit/18b0d2c5d9762070f7c579f2ffffe7ecaa105db7.diff
LOG: [analyzer] Fix a FIXME. NFCI
Added:
Modified:
clang/lib/StaticAnalyzer/Core/CheckerManager.cpp
Removed:
################################################################################
diff --git a/clang/lib/StaticAnalyzer/Core/CheckerManager.cpp b/clang/lib/StaticAnalyzer/Core/CheckerManager.cpp
index 94287b7992dd9..5227766a4a405 100644
--- a/clang/lib/StaticAnalyzer/Core/CheckerManager.cpp
+++ b/clang/lib/StaticAnalyzer/Core/CheckerManager.cpp
@@ -35,10 +35,7 @@ using namespace ento;
bool CheckerManager::hasPathSensitiveCheckers() const {
const auto IfAnyAreNonEmpty = [](const auto &... Callbacks) -> bool {
- bool Result = false;
- // FIXME: Use fold expressions in C++17.
- LLVM_ATTRIBUTE_UNUSED int Unused[]{0, (Result |= !Callbacks.empty())...};
- return Result;
+ return (!Callbacks.empty() || ...);
};
return IfAnyAreNonEmpty(
StmtCheckers, PreObjCMessageCheckers, ObjCMessageNilCheckers,
More information about the cfe-commits
mailing list