Community
Participate
Working Groups
I have some cpp files in my project which are not included in build and I don't want them to generate errors. Now each time I open them to view I see tons of errors.
In project preferences, C/C++->General->Code Analysis Click on error that shows up, click Customize switch to Scope tab and your your files to exclusion filter. Currently there is global filter for all errors, it on per error base.
(In reply to Elena Laskavaia from comment #1) > Currently there is global > filter for all errors, it on per error base. Did you mean to say currently there is *no* global filter for all errors?
(In reply to Nathan Ridge from comment #2) > (In reply to Elena Laskavaia from comment #1) > > Currently there is global > > filter for all errors, it on per error base. > > Did you mean to say currently there is *no* global filter for all errors? Yes I missed the essential word as usual. No global filter.
(In reply to Elena Laskavaia from comment #3) > > Did you mean to say currently there is *no* global filter for all errors? > > Yes I missed the essential word as usual. No global filter. Thanks for clarifying. Should we close this bug, or keep it open to track the addition of such a global filter?
I don't think it should be closed. the same feature was requested for JDT (https://bugs.eclipse.org/bugs/show_bug.cgi?id=220928 40 subscribers!) and PHP (https://bugs.eclipse.org/bugs/show_bug.cgi?id=286397)
Another approach might be to automatically disable code analysis in files that are not included in the build, or at least have an option to do so.