Whole Tomato Software Forums
Whole Tomato Software Forums
Main Site | Profile | Register | Active Topics | Members | Search | FAQ
 All Forums
 Visual Assist
 Technical Support
 Code Inspection: <xyz.h> is not used directly

You must be registered to post a reply.
Click here to register.

Screensize:
UserName:
Password:
Format: BoldItalicizeUnderlineStrikethrough Align leftCenterAlign right Insert horizontal ruleUpload and insert imageInsert hyperlinkInsert email addressInsert codeInsert quoted textInsert listInsert Emoji
   
Message:

Forum code is on.
Html is off.

 
Check to subscribe to this topic.
   

T O P I C    R E V I E W
azur Posted - Nov 12 2026 : 04:28:33 AM
How can I suppress a specific message?
In my case: "included header stdafx.h is not used directly"
I don't want to suppress the hole 'misc-include-cleaner' because it's helpful.
1   L A T E S T    R E P L I E S    (Newest First)
feline Posted - Nov 12 2026 : 08:11:07 AM
Easy if you know how Consider the following two lines:

#include <set>
#include <vector> // vaCI:skip:misc-include-cleaner - skip the single check "misc-include-cleaner" for this single line


by default both are being flagged by project wide code inspection. The comment disables this single check on this single line.

This is documented here:

https://wholetomato.fogbugz.com/f/page?W760

and you can do quite a few other things, but personally I favour this approach, since it keeps the skipped checks as small and narrow as possible, to make sure you aren't accidentally turning off code inspection across entire functions or files.

© 2023 Whole Tomato Software, LLC Go To Top Of Page
Snitz Forums 2000