I suggest you ...

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.

5 votes
Vote
Sign in
(thinking…)
Sign in with: Facebook Google
Signed in as (Sign out)
You have left! (?) (thinking…)
J. van Hoorn shared this idea  ·   ·  Flag idea as inappropriate…  ·  Admin →

0 comments

Sign in
(thinking…)
Sign in with: Facebook Google
Signed in as (Sign out)
Submitting...

Feedback and Knowledge Base