mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-07-23 08:55:25 +02:00

- add new FixitErrorParser that extends RegexErrorParser and is used to replace the error parser for GNUCErrorParser - add new FixManager class to bind a fixit message with its problem marker - modify ProblemMarkerFilterManager to register the last accepted ProblemMarkerInfo for a particular resource so the FixitErrorParser can find the last error marker for the file that precedes the fixit message - FixitErrorParser looks for fix-it messages and binds them via FixitManager to the last error marker for the file - add new Fixit class to contain the details of a gcc fix-it - add new QuickFixForFixit which applies the gcc fix-it for the file - add new (.*) regex in codan.ui.checkers patterns that will trigger before any other error and will look for the fix-it message format - change cdt.core to expose cdt.internal.errorparsers to codan.checkers.ui - change codan.core to expose codan.internal.core.model to codan.checkers.ui - fix CDocumentProvider.setOverlay method to not overlay a CMarkerAnnotation that has a quick fix - when deleting all C problem markers, also make a call to FixManager.deleteAllMarkers() so markers aren't left referenced Change-Id: Ibf8ff7d8addb1bf092dc4ef35de0d92de0309589
79 lines
3.9 KiB
XML
79 lines
3.9 KiB
XML
<?xml version="1.0" encoding="UTF-8"?>
|
|
<?eclipse version="3.4"?>
|
|
<plugin>
|
|
<extension
|
|
point="org.eclipse.cdt.codan.ui.codanMarkerResolution">
|
|
<resolution
|
|
class="org.eclipse.cdt.codan.internal.checkers.ui.quickfix.QuickFixForFixit"
|
|
messagePattern=".*">
|
|
</resolution>
|
|
<resolution
|
|
class="org.eclipse.cdt.codan.internal.checkers.ui.quickfix.CatchByReferenceQuickFix"
|
|
problemId="org.eclipse.cdt.codan.internal.checkers.CatchByReference">
|
|
</resolution>
|
|
<resolution
|
|
class="org.eclipse.cdt.codan.internal.checkers.ui.quickfix.CatchByConstReferenceQuickFix"
|
|
problemId="org.eclipse.cdt.codan.internal.checkers.CatchByReference">
|
|
</resolution>
|
|
<resolution
|
|
class="org.eclipse.cdt.codan.internal.checkers.ui.quickfix.QuickFixAssignmentInCondition"
|
|
problemId="org.eclipse.cdt.codan.internal.checkers.AssignmentInConditionProblem">
|
|
</resolution>
|
|
<resolution
|
|
class="org.eclipse.cdt.codan.internal.checkers.ui.quickfix.SuggestedParenthesisQuickFix"
|
|
problemId="org.eclipse.cdt.codan.internal.checkers.SuggestedParenthesisProblem">
|
|
</resolution>
|
|
<resolution
|
|
class="org.eclipse.cdt.codan.internal.checkers.ui.quickfix.QuickFixCreateLocalVariable"
|
|
problemId="org.eclipse.cdt.codan.internal.checkers.VariableResolutionProblem">
|
|
</resolution>
|
|
<resolution
|
|
class="org.eclipse.cdt.codan.internal.checkers.ui.quickfix.QuickFixCreateNewClass"
|
|
problemId="org.eclipse.cdt.codan.internal.checkers.TypeResolutionProblem"
|
|
/>
|
|
<resolution
|
|
class="org.eclipse.cdt.codan.internal.checkers.ui.quickfix.QuickFixCreateLocalVariable"
|
|
messagePattern="`(.*)' undeclared \(first use in this function\)">
|
|
</resolution>
|
|
<resolution
|
|
class="org.eclipse.cdt.codan.internal.checkers.ui.quickfix.QuickFixRenameMember"
|
|
messagePattern="%GCCFixitNoMember.errormsg">
|
|
</resolution>
|
|
<resolution
|
|
class="org.eclipse.cdt.codan.internal.checkers.ui.quickfix.QuickFixAddSemicolon"
|
|
messagePattern="%GCCFixitMissingSemicolon.errormsg">
|
|
</resolution>
|
|
<resolution
|
|
class="org.eclipse.cdt.codan.internal.checkers.ui.quickfix.QuickFixUsePointer"
|
|
messagePattern="%GCCFixitNoPointerOpCPP">
|
|
</resolution>
|
|
<resolution
|
|
class="org.eclipse.cdt.codan.internal.checkers.ui.quickfix.QuickFixUsePointer"
|
|
messagePattern="%GCCFixitNoPointerOperator.errormsg">
|
|
</resolution>
|
|
<resolution
|
|
class="org.eclipse.cdt.codan.internal.checkers.ui.quickfix.QuickFixUseDotOperator"
|
|
messagePattern="%GCCFixitInvalidPtrTypeCPP">
|
|
</resolution>
|
|
<resolution
|
|
class="org.eclipse.cdt.codan.internal.checkers.ui.quickfix.QuickFixUseDotOperator"
|
|
messagePattern="%GCCFixitInvalidPtrStruct.errormsg">
|
|
</resolution>
|
|
<resolution
|
|
class="org.eclipse.cdt.codan.internal.checkers.ui.quickfix.QuickFixCreateField"
|
|
problemId="org.eclipse.cdt.codan.internal.checkers.VariableResolutionProblem">
|
|
</resolution>
|
|
<resolution
|
|
class="org.eclipse.cdt.codan.internal.checkers.ui.quickfix.QuickFixCreateParameter"
|
|
problemId="org.eclipse.cdt.codan.internal.checkers.VariableResolutionProblem">
|
|
</resolution>
|
|
<resolution
|
|
class="org.eclipse.cdt.codan.internal.checkers.ui.quickfix.CaseBreakQuickFixBreak"
|
|
problemId="org.eclipse.cdt.codan.internal.checkers.CaseBreakProblem">
|
|
</resolution>
|
|
<resolution
|
|
class="org.eclipse.cdt.codan.internal.checkers.ui.quickfix.CaseBreakQuickFixComment"
|
|
problemId="org.eclipse.cdt.codan.internal.checkers.CaseBreakProblem">
|
|
</resolution>
|
|
</extension>
|
|
</plugin>
|