Adding PreCall callback.
Argument validity checks are moved into the PreCall callback.
Code is restructured, functions renamed.
There are "pre" and "eval" functions for the file operations.
And additional state check (validate) functions.
Details
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
Wouldn't it be better just to upload this diff to D75163 by the way? It feels like we're discarding much of the discussion.
clang/lib/StaticAnalyzer/Checkers/StreamChecker.cpp | ||
---|---|---|
324 | Just a quick note here. We are going to be able to do similar arg checks but in a generic way, once apiModeling.StdLibraryFunctionsChecker is clever enough. https://reviews.llvm.org/D75063 |
clang-format: please reformat the code