]> granicus.if.org Git - clang/commit
Provide a fixit to static_cast for reinterpret_casts within a class hierarchy.
authorJordan Rose <jordan_rose@apple.com>
Thu, 28 Mar 2013 19:09:40 +0000 (19:09 +0000)
committerJordan Rose <jordan_rose@apple.com>
Thu, 28 Mar 2013 19:09:40 +0000 (19:09 +0000)
commit5fd1fac0104e22533bc0284fdd0f42f843c975f5
tree2e61a74e5238a459d13bd6b84557098f4641fc9f
parent25ffbef84450f0c666957a2d00cdf928c61b44d7
Provide a fixit to static_cast for reinterpret_casts within a class hierarchy.

The suggestion was already in the text of the note; this just adds the
actual fixit and the appropriate test cases.

Patch by Alexander Zinenko!

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@178274 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Sema/SemaCast.cpp
test/SemaCXX/warn-reinterpret-base-class.cpp