Warnings to determine unsafe casts clang?

I don't think that clang directly warns about the situation you are looking for. However, it is reasonably simple to create a plug-in detecting all uses of C-style casts and/or reinterpret_cast() s. There is an example of how to create a plug-in in the tools/clang/examples/PrintFunctionNames directory if you have a source tree.

If you are located in the London area you might be interested in my presentation next Monday.

Well the easiest way which comes in mind is simply find/replace all reinterpret_cast with static_cast and compile - GCC will give you a bunch of errors about invalid static_cast.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions