[PATCH] D33826: [clang-tidy] avoid pointer cast to more strict alignment check

Aaron Ballman via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Tue Sep 5 10:20:20 PDT 2017


aaron.ballman added a comment.

Have you run this check over any large code bases to see what the quality of the diagnostics are?



================
Comment at: docs/clang-tidy/checks/cert-exp36-c.rst:9
+ 
+This check is the same as `-Wcast-align`, except it checks for `reinterpret_cast` as well.
+
----------------
Can you update the tests to include the ones from -Wcast-align (llvm\tools\clang\test\Sema\warn-cast-align.c) to make sure those are properly triggered by this check?


Repository:
  rL LLVM

https://reviews.llvm.org/D33826





More information about the cfe-commits mailing list