[analyzer] Move taint API from ProgramState to a separate header. NFC.
authorArtem Dergachev <artem.dergachev@gmail.com>
Fri, 29 Mar 2019 22:49:30 +0000 (22:49 +0000)
committerArtem Dergachev <artem.dergachev@gmail.com>
Fri, 29 Mar 2019 22:49:30 +0000 (22:49 +0000)
commit44551cf69380549205e386ae8b1d5518bafd44eb
tree5b2e773d0faf984ef5cbdd62a1eef7bd34b64d64
parent60cde76f70f9699d592b19eb3eb1aa29122b3e89
[analyzer] Move taint API from ProgramState to a separate header. NFC.

It is now an inter-checker communication API, similar to the one that
connects MallocChecker/CStringChecker/InnerPointerChecker: simply a set of
setters and getters for a state trait.

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

llvm-svn: 357326
17 files changed:
clang/include/clang/StaticAnalyzer/Core/BugReporter/BugReporterVisitors.h
clang/include/clang/StaticAnalyzer/Core/PathSensitive/ProgramState.h
clang/include/clang/StaticAnalyzer/Core/PathSensitive/TaintManager.h [deleted file]
clang/include/clang/StaticAnalyzer/Core/PathSensitive/TaintTag.h [deleted file]
clang/lib/StaticAnalyzer/Checkers/ArrayBoundCheckerV2.cpp
clang/lib/StaticAnalyzer/Checkers/CMakeLists.txt
clang/lib/StaticAnalyzer/Checkers/DivZeroChecker.cpp
clang/lib/StaticAnalyzer/Checkers/GenericTaintChecker.cpp
clang/lib/StaticAnalyzer/Checkers/Taint.cpp [new file with mode: 0644]
clang/lib/StaticAnalyzer/Checkers/Taint.h [new file with mode: 0644]
clang/lib/StaticAnalyzer/Checkers/TaintTesterChecker.cpp
clang/lib/StaticAnalyzer/Checkers/VLASizeChecker.cpp
clang/lib/StaticAnalyzer/Core/BugReporterVisitors.cpp
clang/lib/StaticAnalyzer/Core/CMakeLists.txt
clang/lib/StaticAnalyzer/Core/ProgramState.cpp
clang/lib/StaticAnalyzer/Core/TaintManager.cpp [deleted file]
clang/test/Analysis/taint-dumps.c [new file with mode: 0644]