[PATCH] D48866: [clang-tidy] Add incorrect-pointer-cast checker
    Roman Lebedev via Phabricator via cfe-commits 
    cfe-commits at lists.llvm.org
       
    Tue Nov 20 12:32:20 PST 2018
    
    
  
lebedev.ri added a comment.
`Warn for cases when the pointed to type is wider than the allocated type.`
What does that mean? Is this talking about the size of the allocation, or the alignment?
Are you aware of the previous attempts, namely https://reviews.llvm.org/D33826?
Please incorporate the tests from there.
Please add tests with casts (that should normally be diagnosed) from types with explicitly specified alignment, that silence the warning.
Repository:
  rCTE Clang Tools Extra
https://reviews.llvm.org/D48866
    
    
More information about the cfe-commits
mailing list