]> granicus.if.org Git - clang/commit
[analyzer] MoveChecker Pt.6: Suppress the warning for the move-safe STL classes.
authorArtem Dergachev <artem.dergachev@gmail.com>
Fri, 14 Dec 2018 20:52:57 +0000 (20:52 +0000)
committerArtem Dergachev <artem.dergachev@gmail.com>
Fri, 14 Dec 2018 20:52:57 +0000 (20:52 +0000)
commite352620b3d648e2bc706467ccb298b541cc1ae1f
treef88a309160fcfe5e240265bc8d317479031b176f
parent87fae78f666cda8a567d98080858cfad013a2589
[analyzer] MoveChecker Pt.6: Suppress the warning for the move-safe STL classes.

Some C++ standard library classes provide additional guarantees about their
state after move. Suppress warnings on such classes until a more precise
behavior is implemented. Warnings for locals are not suppressed anyway
because it's still most likely a bug.

Differential Revision: https://reviews.llvm.org/D55307

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@349191 91177308-0d34-0410-b5e6-96231b3b80d8
lib/StaticAnalyzer/Checkers/MoveChecker.cpp
test/Analysis/Inputs/system-header-simulator-cxx.h
test/Analysis/diagnostics/explicit-suppression.cpp
test/Analysis/use-after-move.cpp