diff options
| author | Benjamin Kramer <benny.kra@googlemail.com> | 2016-05-27 14:27:13 +0000 |
|---|---|---|
| committer | Benjamin Kramer <benny.kra@googlemail.com> | 2016-05-27 14:27:13 +0000 |
| commit | cfeacf56f03e5ce8bfb32537d64935b2f58e19ee (patch) | |
| tree | b696d27cbd95b40df1221c603b81cb300fc69aae /clang/lib/StaticAnalyzer/Checkers/MallocChecker.cpp | |
| parent | 4ccda502d5c63e13e5f6777cfc1570b5d585b841 (diff) | |
| download | bcm5719-llvm-cfeacf56f03e5ce8bfb32537d64935b2f58e19ee.tar.gz bcm5719-llvm-cfeacf56f03e5ce8bfb32537d64935b2f58e19ee.zip | |
Apply clang-tidy's misc-move-constructor-init throughout Clang.
No functionality change intended, maybe a tiny performance improvement.
llvm-svn: 270996
Diffstat (limited to 'clang/lib/StaticAnalyzer/Checkers/MallocChecker.cpp')
| -rw-r--r-- | clang/lib/StaticAnalyzer/Checkers/MallocChecker.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/clang/lib/StaticAnalyzer/Checkers/MallocChecker.cpp b/clang/lib/StaticAnalyzer/Checkers/MallocChecker.cpp index f365e536676..cf4c011d5a1 100644 --- a/clang/lib/StaticAnalyzer/Checkers/MallocChecker.cpp +++ b/clang/lib/StaticAnalyzer/Checkers/MallocChecker.cpp @@ -31,6 +31,7 @@ #include "llvm/ADT/SmallString.h" #include "llvm/ADT/StringExtras.h" #include <climits> +#include <utility> using namespace clang; using namespace ento; @@ -520,7 +521,7 @@ namespace { class StopTrackingCallback final : public SymbolVisitor { ProgramStateRef state; public: - StopTrackingCallback(ProgramStateRef st) : state(st) {} + StopTrackingCallback(ProgramStateRef st) : state(std::move(st)) {} ProgramStateRef getState() const { return state; } bool VisitSymbol(SymbolRef sym) override { |

