[PATCH] [Analyzer] Implementation of UnaryPlusChecker

Adam Schnitzer adamschn at umich.edu
Fri Apr 12 23:53:35 PDT 2013

This patch is an implementation of the
proposed "different.UnaryPlusWithUnsigned", which I implemented
as "alpha.deadcode.UnaryPlusWithUnsigned".

It is implemented as a simple AST checker. However, it seems that unary '+'
is often removed from the AST
as dead code. So some of the basic test cases don't work.

This is my first (real) patch, so any feedback or criticism is appreciated.

Adam Schnitzer
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20130413/14a717bd/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: UnaryPlusChecker.patch
Type: application/octet-stream
Size: 4443 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20130413/14a717bd/attachment.obj>

More information about the cfe-commits mailing list