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)
commit04a94d14422a83bd6883c8a4a6837b04108b0742
tree3fd0eb0812012bcb123ba5d9afb5e1e3e50f09d7
parent6fffec6fd463453bb27ecc93339fd999cc9dca74
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!

llvm-svn: 178274
clang/lib/Sema/SemaCast.cpp
clang/test/SemaCXX/warn-reinterpret-base-class.cpp