Whole Tomato Software Forums
Whole Tomato Software Forums
Main Site | Profile | Register | Active Topics | Members | Search | FAQ
User name:
Password:
Save Password
Forgot your password?

 All Forums
 Visual Assist
 Technical Support
 Code Inspection: <xyz.h> is not used directly
 New Topic  Reply to Topic
 Printer Friendly
Author  Topic Next Topic  

azur
Ketchup Master

Germany
64 Posts

Posted - Nov 12 2026 :  04:28:33 AM  Show Profile  Reply with Quote
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.

feline
Whole Tomato Software

United Kingdom
19421 Posts

Posted - Nov 12 2026 :  08:11:07 AM  Show Profile  Reply with Quote
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.

zen is the art of being at one with the two'ness
Go to Top of Page
   Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
© 2023 Whole Tomato Software, LLC Go To Top Of Page
Snitz Forums 2000