Static Analysis Tooling / Effective D

Dicebot public at dicebot.lv
Tue Jan 21 01:22:19 PST 2014


On Tuesday, 21 January 2014 at 09:11:37 UTC, Brian Schott wrote:
> On Tuesday, 21 January 2014 at 08:58:19 UTC, Dicebot wrote:
>> That reminds me about related topic - do we have any pragma / 
>> attribute reserved for external tools? So that one could, for 
>> example, disable analysis error for specific part of sourc 
>> code without disabling it globally?
>
> I assume you're talking about something like @SuppressWarnings 
> in Java? 
> http://docs.oracle.com/javase/7/docs/api/java/lang/SuppressWarnings.html

I was thinking of a more fine-tuned thing, similar to gcc 
`__attribute__ (unused)` but generalised a bit to not interfere 
with normal attributes by using reserved namespace.

Single @SuppressWarnings (analysis reports in our case) can be a 
simpler compromise though.


More information about the Digitalmars-d mailing list