aboutsummaryrefslogtreecommitdiff
path: root/clang
diff options
context:
space:
mode:
authorBenjamin Kramer <benny.kra@googlemail.com>2020-03-10 18:24:04 +0100
committerBenjamin Kramer <benny.kra@googlemail.com>2020-03-10 18:27:42 +0100
commit247a177cf78f0e9a51e351e630dd2a78c8f82859 (patch)
tree766307738e3d2fd431a12e7056788e3d41404051 /clang
parent39eebe68b5990273a69ed527e827753e7d4dba75 (diff)
downloadllvm-247a177cf78f0e9a51e351e630dd2a78c8f82859.zip
llvm-247a177cf78f0e9a51e351e630dd2a78c8f82859.tar.gz
llvm-247a177cf78f0e9a51e351e630dd2a78c8f82859.tar.bz2
Give helpers internal linkage. NFC.
Diffstat (limited to 'clang')
-rw-r--r--clang/lib/StaticAnalyzer/Checkers/cert/PutenvWithAutoChecker.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/clang/lib/StaticAnalyzer/Checkers/cert/PutenvWithAutoChecker.cpp b/clang/lib/StaticAnalyzer/Checkers/cert/PutenvWithAutoChecker.cpp
index 6e276a5..b712e77 100644
--- a/clang/lib/StaticAnalyzer/Checkers/cert/PutenvWithAutoChecker.cpp
+++ b/clang/lib/StaticAnalyzer/Checkers/cert/PutenvWithAutoChecker.cpp
@@ -24,6 +24,7 @@
using namespace clang;
using namespace ento;
+namespace {
class PutenvWithAutoChecker : public Checker<check::PostCall> {
private:
BugType BT{this, "'putenv' function should not be called with auto variables",
@@ -33,6 +34,7 @@ private:
public:
void checkPostCall(const CallEvent &Call, CheckerContext &C) const;
};
+} // namespace
void PutenvWithAutoChecker::checkPostCall(const CallEvent &Call,
CheckerContext &C) const {