[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
Thu Jul 6 05:52:35 PDT 2017
lebedev.ri added a comment.
What will this check say about the following code?
c++
void function(void) {
char c = 'x';
int *ip = reinterpret_cast<int *>(&c);
}
The clang'g `-Wcast-align` does not warn: https://godbolt.org/g/hVwD5S
Repository:
rL LLVM
https://reviews.llvm.org/D33826
More information about the cfe-commits
mailing list