1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-04-23 22:52:11 +02:00
cdt/codan
Felix Morgner 47ceed3cbe Bug 525250: "Create local variable" offered outside of local scopes
When invoked from within 'isApplicable(IMarker)', 'isCodanProblem()' did
not work as expected, since it used a cached value that was only updated
in 'run(IMarker)'. The old API 'isCodanProblem()' has been marked as
deprecated and is replaced by 'isCodanProblem(IMarker)', which works
directly on the marker, instead of using a cached result.

Additionally, two new APIs in 'QuickFixTestCase', called
'calculateQuickFixApplicability()' and
'assertIsApplicableForAllMarkers(boolean)', are introduced. The former
can be used to record the applicability of the QuickFix under test for
every marker in the test code, while the latter provides a way to assert
on the applicability. For finer grained assertions,
'calculateQuickFixApplicability()' returns the calculated map.

Change-Id: I7c53fd26afefa37ff086559acea75a7a33ecd5d7
Signed-off-by: Felix Morgner <fmorgner@hsr.ch>
2018-03-14 09:30:42 +01:00
..
org.eclipse.cdt.codan.checkers Bug 350144 - suppressing the "No break" problem with regexp 2017-12-26 15:08:20 -05:00
org.eclipse.cdt.codan.checkers.ui Bug 525250: "Create local variable" offered outside of local scopes 2018-03-14 09:30:42 +01:00
org.eclipse.cdt.codan.checkers.ui.tests Releng fixes, ensuring legal files are there. Removing projects. 2017-11-21 13:10:50 -05:00
org.eclipse.cdt.codan.core Bug 497670 - Support compiler provided "fix-it" hints 2017-04-17 20:01:27 -04:00
org.eclipse.cdt.codan.core.cxx Remove useless code. 2018-02-08 21:11:59 +02:00
org.eclipse.cdt.codan.core.tests Bug 525250: "Create local variable" offered outside of local scopes 2018-03-14 09:30:42 +01:00
org.eclipse.cdt.codan.examples Fixed copyright 2017-05-02 12:41:40 -04:00
org.eclipse.cdt.codan.ui Bug 526669 - Use the Matcher API correctly in CodanProblemMarkerResolutionGenerator 2017-11-21 14:31:14 -05:00
org.eclipse.cdt.codan.ui.cfgview Bug 510722 - Handle a null AST in ExpandSelectionJob and ControlFlowGraphView 2017-01-21 16:15:52 -05:00
org.eclipse.cdt.codan.ui.cxx Bug 525250: "Create local variable" offered outside of local scopes 2018-03-14 09:30:42 +01:00
pom.xml [releng] Bump version to 9.5.0 2018-02-13 11:25:08 +00:00