1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-06-06 17:26:01 +02:00
cdt/codan/org.eclipse.cdt.codan.core.tests
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
..
.settings releng: Make use of Tycho POM-less functionality 2017-02-13 23:19:56 -04:00
META-INF releng: Make use of Tycho POM-less functionality 2017-02-13 23:19:56 -04:00
OSGI-INF/l10n releng: Make use of Tycho POM-less functionality 2017-02-13 23:19:56 -04:00
src/org/eclipse/cdt/codan Bug 525250: "Create local variable" offered outside of local scopes 2018-03-14 09:30:42 +01:00
.classpath releng: Make use of Tycho POM-less functionality 2017-02-13 23:19:56 -04:00
.project releng: Make use of Tycho POM-less functionality 2017-02-13 23:19:56 -04:00
about.html releng: Make use of Tycho POM-less functionality 2017-02-13 23:19:56 -04:00
build.properties releng: Make use of Tycho POM-less functionality 2017-02-13 23:19:56 -04:00
test.xml releng: Make use of Tycho POM-less functionality 2017-02-13 23:19:56 -04:00
ui-test-plugin.properties releng: Make use of Tycho POM-less functionality 2017-02-13 23:19:56 -04:00