[PATCH] D33826: [clang-tidy] avoid pointer cast to more strict alignment check
Roman Lebedev via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Fri Jun 2 06:40:47 PDT 2017
lebedev.ri added inline comments.
================
Comment at: test/clang-tidy/cert-avoid-pointer-cast-to-more-strict-alignment.c:17
+
+ tmp = (struct foo_header *)(data + offset);
+ // CHECK-MESSAGES: :[[@LINE-1]]:9: warning: do not cast pointers into more strictly aligned pointer types [cert-exp36-c]
----------------
Shouldn't there be at least one test for C++-style cast?
Repository:
rL LLVM
https://reviews.llvm.org/D33826
More information about the cfe-commits
mailing list