Details
Details
- Reviewers
NoQ george.karpenkov xazax.hun rnkovacs - Commits
- rG5a42441d8192: [analyzer][UninitializedObjectChecker] Void pointers are casted back to their…
rL339653: [analyzer][UninitializedObjectChecker] Void pointers are casted back to their…
rC339653: [analyzer][UninitializedObjectChecker] Void pointers are casted back to their…
Diff Detail
Diff Detail
- Repository
- rC Clang
Event Timeline
Comment Actions
Cf. my comments to https://reviews.llvm.org/D49437: while this change looks great, is it possible to separate the pointer chasing from the rest of the checker?
test/Analysis/cxx-uninitialized-object-ptr-ref.cpp | ||
---|---|---|
295 | Shouldn't this rather say something like static_cast<int *>(this->vptr)? That's the normal syntax to do this sort of stuff, i guess. |
test/Analysis/cxx-uninitialized-object-ptr-ref.cpp | ||
---|---|---|
295 | Not just "normal syntax", this syntax of the output does not compile. foo.cpp:6:13: error: expected unqualified-id this->static_cast<int*>(vptr) = new int(); |
Comment Actions
The solution now relies on the refactored version of the checker. Note that it modifies roughly 75% less code ;).
Shouldn't this rather say something like static_cast<int *>(this->vptr)? That's the normal syntax to do this sort of stuff, i guess.