Open kuznetsss opened 9 months ago
Tried to use clang-analyzer-core
and clang-analyzer-cplusplus
(in particular core.NullDereference).
Unfortunately it does not seem to catch the cases we want even with this option disabled as suggested in the above link:
CheckOptions:
core.NullDereference:SuppressAddressSpaces: false
Currently there are places (mostly in tests) with code like:
and clang-tidy is fine with it. We should force clang-tidy to fail on such places to force to check pointer after
dynamic_cast
.