Idea Detail view

 
 
 

Be able to suppress for derived classes

 

Sometimes it would be nice to suppress a message for all derived classes.

For example:

 

class X
{
 virtual void f() = 0;
};
class Y : public X
{
 void f() {}
};
class Z : public X
{
 int i;
 void f(){++i;}
};

 

I would like to be able to put the following comment with the declaration of X:
//lint -esym(1961,[X]::f)    //1961 - virtual member function 'Symbol' could be made const

Where I use [X] as syntax to define X and all classes derived from it.
So when a sub class dos not use the function f to the full extend lint knows from the comments that came with X

Also for other messages it would be nice to inhibit it for a family of classes.

 

Pending

5 Votes