diff options
author | David Blaikie <dblaikie@gmail.com> | 2015-08-13 22:50:09 +0000 |
---|---|---|
committer | David Blaikie <dblaikie@gmail.com> | 2015-08-13 22:50:09 +0000 |
commit | 903c29347ac721ce28b4e455b30f256de2839ed0 (patch) | |
tree | 308c4b852d6427ce43d7cb1c1989bbfac254e056 /clang/lib/StaticAnalyzer/Checkers/RetainCountChecker.cpp | |
parent | 01cd46abaee65965eca85fe4987c24f7022ad71c (diff) | |
download | bcm5719-llvm-903c29347ac721ce28b4e455b30f256de2839ed0.tar.gz bcm5719-llvm-903c29347ac721ce28b4e455b30f256de2839ed0.zip |
Wdeprecated: CollectReachableSymbolsCallback are move constructed/returned by value, so make sure they're copy/moveable
(return by value is in ExprEngine::processPointerEscapedOnBind and any
other call to the scanReachableSymbols function template used there)
Protect the special members in the base class to avoid slicing, and make
derived classes final so these special members don't accidentally become
public on an intermediate base which would open up the possibility of
slicing again.
llvm-svn: 244975
Diffstat (limited to 'clang/lib/StaticAnalyzer/Checkers/RetainCountChecker.cpp')
-rw-r--r-- | clang/lib/StaticAnalyzer/Checkers/RetainCountChecker.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/StaticAnalyzer/Checkers/RetainCountChecker.cpp b/clang/lib/StaticAnalyzer/Checkers/RetainCountChecker.cpp index 6ee87a561e0..9369aeb5446 100644 --- a/clang/lib/StaticAnalyzer/Checkers/RetainCountChecker.cpp +++ b/clang/lib/StaticAnalyzer/Checkers/RetainCountChecker.cpp @@ -2678,7 +2678,7 @@ public: } // end anonymous namespace namespace { -class StopTrackingCallback : public SymbolVisitor { +class StopTrackingCallback final : public SymbolVisitor { ProgramStateRef state; public: StopTrackingCallback(ProgramStateRef st) : state(st) {} |