[PATCH] D48866: [clang-tidy] Add incorrect-pointer-cast checker
Roman Lebedev via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Mon Jun 3 08:33:18 PDT 2019
lebedev.ri added a comment.
In D48866#1527506 <https://reviews.llvm.org/D48866#1527506>, @steakhal wrote:
> The problem with the `-Wcast-align` is that it will only fire for C-style bitcast expressions, not for `reinterpret_cast` ones. example <https://godbolt.org/z/cm3S96>
> Does anyone know why is that behavior?
Because `reinterpret_cast` is by definition allowed to perform these casts, so it is assumed that no warning should be issued.
This part of the check i look forward to.
CHANGES SINCE LAST ACTION
More information about the cfe-commits