Emits a warning if a called function writes into a (heuristically determined) error out-parameter, and then the caller does not read from it.
Work-in-progress dump of the code I had previously written,
so that it does not get lost.
Paths
| Differential D48999
[analyzer] [WIP] Checker for pointers-written-into and then not read from. Needs ReviewPublic Authored by george.karpenkov on Jul 5 2018, 2:45 PM.
Details
Diff Detail Event TimelineHerald added subscribers: mikhail.ramalho, a.sidorin, szepet and 3 others. · View Herald TranscriptJul 5 2018, 2:45 PM
Revision Contents
Diff 154323 clang/include/clang/StaticAnalyzer/Checkers/Checkers.td
clang/lib/StaticAnalyzer/Checkers/CMakeLists.txt
clang/lib/StaticAnalyzer/Checkers/PointerParamIgnoredChecker.cpp
clang/test/Analysis/pointerparamignoredchecker-test.cpp
|