Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 336554

Summary: Codan shouldn't bother if the file is not under C/C++ project
Product: [Tools] CDT Reporter: Andrew Gvozdev <angvoz.dev>
Component: cdt-codanAssignee: Elena Laskavaia <elaskavaia.cdt>
Status: RESOLVED FIXED QA Contact: Elena Laskavaia <elaskavaia.cdt>
Severity: normal    
Priority: P3 CC: cdtdoug, eclipse.sprigogin, malaperle
Version: 8.0   
Target Milestone: 8.0   
Hardware: All   
OS: All   
Whiteboard:

Description Andrew Gvozdev CLA 2011-02-07 14:00:16 EST
If a C++ file is located under project which is not CDT type it should not be checked for errors by Codan. I just copied a file aside into generic project and get hundreds of errors after opening the file. Java does not do that to you.
Comment 1 Elena Laskavaia CLA 2011-02-08 21:04:06 EST
added check for project nature in c ast reconsiler
Comment 2 CDT Genie CLA 2011-02-10 09:12:59 EST
*** cdt cvs genie on behalf of elaskavaia ***
Bug 336554 - Codan shouldn't bother if the file is not under C/C++ project

[*] CxxCodanReconciler.java 1.4 http://dev.eclipse.org/viewcvs/index.cgi/org.eclipse.cdt/codan/org.eclipse.cdt.codan.core.cxx/src/org/eclipse/cdt/codan/core/cxx/internal/model/CxxCodanReconciler.java?root=Tools_Project&r1=1.3&r2=1.4