]> granicus.if.org Git - clang/commit
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)
commit437da054125a1e5cdd8c9765e09e42da922482f3
treee2d704e43de3062759ff242bf618fcebf7dc3e65
parentb760f11fae94e3003b9241ac50c02617465f2fa2
Warn about attempts to reinterpret_cast between two types that are
hierarchy-related at a possibly nonzero offset.

Patch by Alexander Zinenko!

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@177698 91177308-0d34-0410-b5e6-96231b3b80d8
include/clang/Basic/DiagnosticGroups.td
include/clang/Basic/DiagnosticSemaKinds.td
lib/Sema/SemaCast.cpp
test/SemaCXX/warn-reinterpret-base-class.cpp [new file with mode: 0644]