summaryrefslogtreecommitdiffstats
path: root/clang/lib/StaticAnalyzer/Frontend/CheckerRegistration.cpp
diff options
context:
space:
mode:
authorAlexander Kornienko <alexfh@google.com>2015-12-28 15:19:39 +0000
committerAlexander Kornienko <alexfh@google.com>2015-12-28 15:19:39 +0000
commit44a784f623633d6a0a9020dbf417284edb7a7084 (patch)
treebdf672fb28c89a4327ba2632215fdcd95e2f13a8 /clang/lib/StaticAnalyzer/Frontend/CheckerRegistration.cpp
parent5583e6f31a9e17ed61d17a125916f188ee11ebef (diff)
downloadbcm5719-llvm-44a784f623633d6a0a9020dbf417284edb7a7084.tar.gz
bcm5719-llvm-44a784f623633d6a0a9020dbf417284edb7a7084.zip
Refactor: Simplify boolean conditional return statements in lib/StaticAnalyzer/Frontend
Summary: Use clang-tidy to simplify boolean conditional return statements Reviewers: dcoughlin, alexfh Subscribers: alexfh, cfe-commits Patch by Richard Thomson! Differential Revision: http://reviews.llvm.org/D10023 llvm-svn: 256497
Diffstat (limited to 'clang/lib/StaticAnalyzer/Frontend/CheckerRegistration.cpp')
-rw-r--r--clang/lib/StaticAnalyzer/Frontend/CheckerRegistration.cpp5
1 files changed, 1 insertions, 4 deletions
diff --git a/clang/lib/StaticAnalyzer/Frontend/CheckerRegistration.cpp b/clang/lib/StaticAnalyzer/Frontend/CheckerRegistration.cpp
index d8269dbdad9..75fa4c651ac 100644
--- a/clang/lib/StaticAnalyzer/Frontend/CheckerRegistration.cpp
+++ b/clang/lib/StaticAnalyzer/Frontend/CheckerRegistration.cpp
@@ -83,10 +83,7 @@ bool ClangCheckerRegistry::isCompatibleAPIVersion(const char *versionString) {
// For now, none of the static analyzer API is considered stable.
// Versions must match exactly.
- if (strcmp(versionString, CLANG_ANALYZER_API_VERSION_STRING) == 0)
- return true;
-
- return false;
+ return strcmp(versionString, CLANG_ANALYZER_API_VERSION_STRING) == 0;
}
void ClangCheckerRegistry::warnIncompatible(DiagnosticsEngine *diags,
OpenPOWER on IntegriCloud