The checker warns if specific stream operation is called in a failed state
(that is called "indeterminate file position condition").
The commit adds indication of location of the previously failed operation
that causes the failed state.
Details
Details
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
Comment Actions
I suppose the counter is outdated, similarly to D104925#2850420?
clang/lib/StaticAnalyzer/Checkers/StreamChecker.cpp | ||
---|---|---|
101–109 | Shouldn't this be all you need to retrieve the fact that the streams position is indeterminate? |
Comment Actions
This will be rebased on D104925 when that is finished.
clang/lib/StaticAnalyzer/Checkers/StreamChecker.cpp | ||
---|---|---|
101–109 | The "problem" can be that the error state can contain a combination of errors, this means FEOF and FERROR together. In this case the "indeterminate" is just not applicable to the FEOF state. |
Shouldn't this be all you need to retrieve the fact that the streams position is indeterminate?