Skip to content

Commit

Permalink
Refactor: Simplify boolean conditional return statements in lib/Stati…
Browse files Browse the repository at this point in the history
…cAnalyzer/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
  • Loading branch information
alexfh committed Dec 28, 2015
1 parent 5583e6f commit 44a784f
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions clang/lib/StaticAnalyzer/Frontend/CheckerRegistration.cpp
Expand Up @@ -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,
Expand Down

0 comments on commit 44a784f

Please sign in to comment.