whisperity added inline comments.
================
Comment at: test/Analysis/cxx-uninitialized-object-ptr-ref.cpp:290
struct IntDynTypedVoidPointerTest1 {
- void *vptr; // expected-note{{uninitialized pointee 'this->vptr'}}
+ void *vptr; // expected-note{{uninitialized pointee 'this->static_cast<int
*>(vptr)'}}
int dontGetFilteredByNonPedanticMode = 0;
----------------
NoQ wrote:
> 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.
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();
```
https://reviews.llvm.org/D49228
_______________________________________________
cfe-commits mailing list
[email protected]
http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits