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 - Suppres suggestions for .C files
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

alex.postlethwaite
Senior Member

35 Posts

Posted - Jun 20 2017 :  06:27:30 AM  Show Profile  Reply with Quote
I have a code base with a mixture of .c and .cpp files.

In the .c files, there are instances of NULL and the code inspection highlights these for replacement with nullptr.

This is invalid for C, so the ruleset for .C files should be different, or if clang-tidy doesn't support .C code, then analysis should be suppressed for .c files.

What do you think?

accord
Whole Tomato Software

United Kingdom
3212 Posts

Posted - Jun 20 2017 :  06:43:56 AM  Show Profile  Reply with Quote
Thank you for the feedback. I've put in a bug report for this:

case=109043
Go to Top of Page

alex.postlethwaite
Senior Member

35 Posts

Posted - Jun 20 2017 :  11:27:30 AM  Show Profile  Reply with Quote
Great, thank you.
Go to Top of Page

sean
Whole Tomato Software

USA
2698 Posts

Posted - Aug 16 2017 :  01:42:14 AM  Show Profile  Reply with Quote
case=109043 is fixed in build 2231
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
© 2019 Whole Tomato Software, LLC Go To Top Of Page
Snitz Forums 2000