Details
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
I've double-checked the return values of each touched summary.
Everything seems fine to me, besides the two I've highlighted.
clang/lib/StaticAnalyzer/Checkers/StdLibraryFunctionsChecker.cpp | ||
---|---|---|
1775 | ||
1788 | Same here. | |
1863 | Aaa, I get it. We deal with this in a single transition. Fine. | |
2068 | BTW, this is quite frequently repeated. I'm thinking of something like ReturnsZeroOrMinusOne. |
clang/lib/StaticAnalyzer/Checkers/StdLibraryFunctionsChecker.cpp | ||
---|---|---|
1775 | The two constraints are applied in the same case (branch), the second is more generic. The first constraint may not have any effect if Arg2 is Unknown. Consequently, [-1, -1] would be too strict in such cases. |
clang/lib/StaticAnalyzer/Checkers/StdLibraryFunctionsChecker.cpp | ||
---|---|---|
2068 | Good idea! |
Awesome, thank you.
clang/lib/StaticAnalyzer/Checkers/StdLibraryFunctionsChecker.cpp | ||
---|---|---|
1775 | I overlooked that we have a single Case, my bad. |