[analyzer] Add the pointer escaped callback.
Instead of using several callbacks to identify the pointer escape event, checkers now can register for the checkPointerEscape. Converted the Malloc checker to use the new callback. SimpleStreamChecker will be converted next. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@170625 91177308-0d34-0410-b5e6-96231b3b80d8
Showing
- include/clang/StaticAnalyzer/Core/Checker.h 22 additions, 1 deletioninclude/clang/StaticAnalyzer/Core/Checker.h
- include/clang/StaticAnalyzer/Core/CheckerManager.h 27 additions, 2 deletionsinclude/clang/StaticAnalyzer/Core/CheckerManager.h
- include/clang/StaticAnalyzer/Core/PathSensitive/ExprEngine.h 11 additions, 1 deletioninclude/clang/StaticAnalyzer/Core/PathSensitive/ExprEngine.h
- include/clang/StaticAnalyzer/Core/PathSensitive/ProgramState.h 18 additions, 5 deletions...de/clang/StaticAnalyzer/Core/PathSensitive/ProgramState.h
- include/clang/StaticAnalyzer/Core/PathSensitive/Store.h 2 additions, 1 deletioninclude/clang/StaticAnalyzer/Core/PathSensitive/Store.h
- include/clang/StaticAnalyzer/Core/PathSensitive/SubEngine.h 11 additions, 1 deletioninclude/clang/StaticAnalyzer/Core/PathSensitive/SubEngine.h
- lib/StaticAnalyzer/Checkers/CStringChecker.cpp 4 additions, 3 deletionslib/StaticAnalyzer/Checkers/CStringChecker.cpp
- lib/StaticAnalyzer/Checkers/CheckerDocumentation.cpp 20 additions, 1 deletionlib/StaticAnalyzer/Checkers/CheckerDocumentation.cpp
- lib/StaticAnalyzer/Checkers/MallocChecker.cpp 16 additions, 89 deletionslib/StaticAnalyzer/Checkers/MallocChecker.cpp
- lib/StaticAnalyzer/Checkers/RetainCountChecker.cpp 5 additions, 4 deletionslib/StaticAnalyzer/Checkers/RetainCountChecker.cpp
- lib/StaticAnalyzer/Checkers/SimpleStreamChecker.cpp 3 additions, 3 deletionslib/StaticAnalyzer/Checkers/SimpleStreamChecker.cpp
- lib/StaticAnalyzer/Core/CallEvent.cpp 1 addition, 0 deletionslib/StaticAnalyzer/Core/CallEvent.cpp
- lib/StaticAnalyzer/Core/CheckerManager.cpp 22 additions, 3 deletionslib/StaticAnalyzer/Core/CheckerManager.cpp
- lib/StaticAnalyzer/Core/ExprEngine.cpp 116 additions, 6 deletionslib/StaticAnalyzer/Core/ExprEngine.cpp
- lib/StaticAnalyzer/Core/ProgramState.cpp 15 additions, 5 deletionslib/StaticAnalyzer/Core/ProgramState.cpp
- lib/StaticAnalyzer/Core/RegionStore.cpp 2 additions, 2 deletionslib/StaticAnalyzer/Core/RegionStore.cpp
Loading
Please register or sign in to comment