Warn about attempts to reinterpret_cast between two types that are
authorJohn McCall <rjmccall@apple.com>
Fri, 22 Mar 2013 02:58:14 +0000 (02:58 +0000)
committerJohn McCall <rjmccall@apple.com>
Fri, 22 Mar 2013 02:58:14 +0000 (02:58 +0000)
commitcda80833090be644d6a44823e22d39f2fbe53a39
tree73c3b9587017c7a9c78ff4616956772d53383c97
parent824e5a2caab795742a816e0a0970d8bc303cd276
Warn about attempts to reinterpret_cast between two types that are
hierarchy-related at a possibly nonzero offset.

Patch by Alexander Zinenko!

llvm-svn: 177698
clang/include/clang/Basic/DiagnosticGroups.td
clang/include/clang/Basic/DiagnosticSemaKinds.td
clang/lib/Sema/SemaCast.cpp
clang/test/SemaCXX/warn-reinterpret-base-class.cpp [new file with mode: 0644]