1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-04-29 19:45:01 +02:00
cdt/codan/org.eclipse.cdt.codan.checkers.ui
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 Move the rest of the CDT plugins to java 8 2016-06-22 14:51:43 -04:00
META-INF Fix Codan quick-fixes 2017-05-26 16:35:27 -04:00
OSGI-INF/l10n Fix Codan quick-fixes 2017-05-26 16:35:27 -04:00
src/org/eclipse/cdt/codan/internal/checkers/ui Bug 525250: "Create local variable" offered outside of local scopes 2018-03-14 09:30:42 +01:00
.classpath Move the rest of the CDT plugins to java 8 2016-06-22 14:51:43 -04:00
.project [279740] API scrub 2010-03-08 19:51:33 +00:00
about.html Add missing about.html files. 2010-06-14 18:35:55 +00:00
build.properties Bug 351157 - Codan Source Plugin has incorrect Bundle-Name / 2011-07-05 21:59:02 -04:00
plugin.xml Bug 495842: Add a quick fix for codan problems that ignores them by adding a @suppress comment 2017-10-04 11:13:54 -04:00