| Disable code analysis on a per file basis? [message #734842] |
Mon, 10 October 2011 03:08  |
Gonzague Reydet Messages: 3 Registered: July 2009 |
Junior Member |
|
|
Hi all!
I am trying to disable the code analysis tool on a per file basis.
I found two different ways to ignore files for the "Run C/C++ code analysis" context menu operation.
In the build configuration, we can either exclude files to be ignored from build or we can add the to the code analysis rules' exclusion pattern.
But in both case if the user opens an ignored file, the code analysis is performed anyway at file opening. Is there a way to avoid performing this code analysis when opening an editor on a file that should be ignored by the code analysis tool?
Is it a bug?
Thanks for any help
[Updated on: Mon, 10 October 2011 03:09] Report message to a moderator
|
|
|
|
|
|
| Re: Disable code analysis on a per file basis? [message #934107 is a reply to message #931533] |
Fri, 05 October 2012 12:59  |
John Stile Messages: 18 Registered: July 2009 |
Junior Member |
|
|
Open "Windows -> Preferences -> C/C++ -> File Types"
and remove the *.m4" from the list of the files types.
.m4 is not listed.
Open "Windows -> Preferences -> General -> Editors -> File Association"
and add a new file type *.m4 to this list and associate the file type to your preferred editor, probably C/C++ Editor.
.m4 already exists, associated with "Autoconf Editor (default)".
Changing to /C++ Editor and reopening the file, I don't see the errors any longer.
No need to re-index (Right click Project->Index->Rebuild)
Perfect. Thank you.
|
|
|
Powered by
FUDForum. Page generated in 0.01693 seconds