[cfe-dev] scan-build -analyze-headers issue?

Ted Kremenek kremenek at apple.com
Mon Feb 2 12:30:52 PST 2009


Sascha,

Please let me know if the following patch against Clang solves the  
issue for you.  It does for me.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: AnalysisConsumer.patch
Type: application/octet-stream
Size: 1270 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20090202/94bd8686/attachment.obj>
-------------- next part --------------


On Jan 31, 2009, at 4:45 PM, Sascha Wildner wrote:

> Hi,
>
> scan-build with the -analyze-headers option will not analyze foo() if
> defined as follows. Code compiles fine with gcc.
>
> test.h:
> ------------------------
> void
> FUNCTIONNAME(void)
> {
>         return;
> }
> ------------------------
>
> test.c:
> ------------------------
> #define FUNCTIONNAME foo
> #include "test.h"
>
> int
> main(void)
> {
>         foo();
> }
> ------------------------
>
> Regards,
> Sascha
>
> _______________________________________________
> cfe-dev mailing list
> cfe-dev at cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/cfe-dev



More information about the cfe-dev mailing list