[clang] cfcf8e1 - [analyzer] Silence gcc -Wparentheses warning [NFC]
Mikael Holmen via cfe-commits
cfe-commits at lists.llvm.org
Wed Jul 8 01:26:43 PDT 2020
Author: Mikael Holmen
Date: 2020-07-08T10:23:59+02:00
New Revision: cfcf8e17ef537686e03c58921a10593a2b0c4a3d
URL: https://github.com/llvm/llvm-project/commit/cfcf8e17ef537686e03c58921a10593a2b0c4a3d
DIFF: https://github.com/llvm/llvm-project/commit/cfcf8e17ef537686e03c58921a10593a2b0c4a3d.diff
LOG: [analyzer] Silence gcc -Wparentheses warning [NFC]
Added:
Modified:
clang/lib/StaticAnalyzer/Core/BugReporter.cpp
Removed:
################################################################################
diff --git a/clang/lib/StaticAnalyzer/Core/BugReporter.cpp b/clang/lib/StaticAnalyzer/Core/BugReporter.cpp
index 7df8dea56055..72be4e81c83d 100644
--- a/clang/lib/StaticAnalyzer/Core/BugReporter.cpp
+++ b/clang/lib/StaticAnalyzer/Core/BugReporter.cpp
@@ -2145,12 +2145,12 @@ PathSensitiveBugReport::PathSensitiveBugReport(
"*modeling*, not *diagnostics*.");
assert(
- bt.getCheckerName().startswith("debug") ||
- !isHidden(ErrorNode->getState()
- ->getAnalysisManager()
- .getCheckerManager()
- ->getCheckerRegistryData(),
- bt.getCheckerName()) &&
+ (bt.getCheckerName().startswith("debug") ||
+ !isHidden(ErrorNode->getState()
+ ->getAnalysisManager()
+ .getCheckerManager()
+ ->getCheckerRegistryData(),
+ bt.getCheckerName())) &&
"Hidden checkers musn't emit diagnostics as they are by definition "
"non-user facing!");
}
More information about the cfe-commits
mailing list