Community
Participate
Working Groups
Build Identifier: 20110204-0611 If I change the severity of a problem in the Codan Preference UI, Codan does not use the updated severity for existing markers. I'm submitting a patch with a solution. Reproducible: Always Steps to Reproduce: 1. Create a C/C++ Project 2. Create a C++ file and type "asdadfasdf" 3. Codan will create a "warning" marker like "Statement has no effect..." 4. Go to Codan Preferences (Project properties -> C/C++ General -> Code Analysis) 5. Change the severity of the problem "Statement has no effect" to "Error" 6. Go back to the file and add a new line and save (this will trigger Codan) 7. The "Statement has no effect" marker is still a "warning" and it should be "error"
Created attachment 191248 [details] Proposed patch Proposed solution.
Patch applied to HEAD > 20110322.
*** cdt cvs genie on behalf of sprigogin *** Bug 340092 - Codan does not update severity in markers when a problem's severity has been changed in Preferences. Patch by Alex Ruiz. [*] CodanMarkerProblemReporter.java 1.24 http://dev.eclipse.org/viewcvs/index.cgi/org.eclipse.cdt/codan/org.eclipse.cdt.codan.core/src/org/eclipse/cdt/codan/internal/core/model/CodanMarkerProblemReporter.java?root=Tools_Project&r1=1.23&r2=1.24