diff options
author | Eugene Zelenko <eugene.zelenko@gmail.com> | 2016-02-10 19:11:58 +0000 |
---|---|---|
committer | Eugene Zelenko <eugene.zelenko@gmail.com> | 2016-02-10 19:11:58 +0000 |
commit | 0a4f3f43731963534366592f7a9f29566a055716 (patch) | |
tree | c3c84d3543fdcffa89966c81141182753691eaf0 /clang/lib/StaticAnalyzer/Checkers/ChrootChecker.cpp | |
parent | 19d532bfbe653f495f4e26575a3c2439157a7e9a (diff) | |
download | bcm5719-llvm-0a4f3f43731963534366592f7a9f29566a055716.tar.gz bcm5719-llvm-0a4f3f43731963534366592f7a9f29566a055716.zip |
Fix some Clang-tidy readability-redundant-control-flow warnings; other minor fixes.
Differential revision: http://reviews.llvm.org/D17060
llvm-svn: 260414
Diffstat (limited to 'clang/lib/StaticAnalyzer/Checkers/ChrootChecker.cpp')
-rw-r--r-- | clang/lib/StaticAnalyzer/Checkers/ChrootChecker.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/clang/lib/StaticAnalyzer/Checkers/ChrootChecker.cpp b/clang/lib/StaticAnalyzer/Checkers/ChrootChecker.cpp index 3ad1996db89..14587fb5163 100644 --- a/clang/lib/StaticAnalyzer/Checkers/ChrootChecker.cpp +++ b/clang/lib/StaticAnalyzer/Checkers/ChrootChecker.cpp @@ -1,4 +1,4 @@ -//===- Chrootchecker.cpp -------- Basic security checks ----------*- C++ -*-==// +//===- Chrootchecker.cpp -------- Basic security checks ---------*- C++ -*-===// // // The LLVM Compiler Infrastructure // @@ -20,6 +20,7 @@ #include "clang/StaticAnalyzer/Core/PathSensitive/ProgramStateTrait.h" #include "clang/StaticAnalyzer/Core/PathSensitive/SymbolManager.h" #include "llvm/ADT/ImmutableMap.h" + using namespace clang; using namespace ento; @@ -148,8 +149,6 @@ void ChrootChecker::checkPreStmt(const CallExpr *CE, CheckerContext &C) const { C.emitReport(llvm::make_unique<BugReport>( *BT_BreakJail, BT_BreakJail->getDescription(), N)); } - - return; } void ento::registerChrootChecker(CheckerManager &mgr) { |