[cfe-commits] {Review Request]C++ C Style Cast Checker

Jim Goodnow II Jim at TheGoodnows.net
Fri May 20 15:47:01 PDT 2011


I still think it's useful to detect them all since part of the idea for 
the C++ style casts is to make them stand out more. However, it might be 
useful to have different messages for static_cast's versus potentially 
more dangerous ones.

  - jim

On 5/20/2011 3:33 PM, Eli Friedman wrote:
> On Fri, May 20, 2011 at 3:19 PM, Jim Goodnow II<Jim at thegoodnows.net>  wrote:
>> Using "Effective C++" as a guide, I'm adding a number of static analysis
>> checks for C++. The first is a simple check that warns about the use of
>> C-Style casts instead of C++ style casts. This is useful because it is hard
>> to search for C-Style casts. There is a patch to a couple of files, the
>> checker itself and a test.
> A variant more like the proposed warning at
> http://llvm.org/bugs/show_bug.cgi?id=7103 would probably be more
> generally useful...
>
> -Eli
> _______________________________________________
> cfe-commits mailing list
> cfe-commits at cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits
>
>



More information about the cfe-commits mailing list