mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-08-02 05:45:58 +02:00
Added call to super() to initialize common parameters
This commit is contained in:
parent
70a8342263
commit
21c3683028
3 changed files with 3 additions and 0 deletions
|
@ -67,6 +67,7 @@ public class NamingConventionFunctionChecker extends AbstractIndexAstChecker
|
||||||
* (org.eclipse.cdt.codan.core.model.IProblemWorkingCopy)
|
* (org.eclipse.cdt.codan.core.model.IProblemWorkingCopy)
|
||||||
*/
|
*/
|
||||||
public void initPreferences(IProblemWorkingCopy problem) {
|
public void initPreferences(IProblemWorkingCopy problem) {
|
||||||
|
super.initPreferences(problem);
|
||||||
addPreference(
|
addPreference(
|
||||||
problem,
|
problem,
|
||||||
PARAM_KEY,
|
PARAM_KEY,
|
||||||
|
|
|
@ -164,6 +164,7 @@ public class ReturnChecker extends AbstractAstFunctionChecker {
|
||||||
|
|
||||||
/* checker must implement @link ICheckerWithPreferences */
|
/* checker must implement @link ICheckerWithPreferences */
|
||||||
public void initPreferences(IProblemWorkingCopy problem) {
|
public void initPreferences(IProblemWorkingCopy problem) {
|
||||||
|
super.initPreferences(problem);
|
||||||
if (problem.getId().equals(RET_NO_VALUE_ID)
|
if (problem.getId().equals(RET_NO_VALUE_ID)
|
||||||
|| problem.getId().equals(RET_NORET_ID)) {
|
|| problem.getId().equals(RET_NORET_ID)) {
|
||||||
addPreference(problem, PARAM_IMPLICIT,
|
addPreference(problem, PARAM_IMPLICIT,
|
||||||
|
|
|
@ -127,6 +127,7 @@ public class StatementHasNoEffectChecker extends AbstractIndexAstChecker {
|
||||||
}
|
}
|
||||||
|
|
||||||
public void initPreferences(IProblemWorkingCopy problem) {
|
public void initPreferences(IProblemWorkingCopy problem) {
|
||||||
|
super.initPreferences(problem);
|
||||||
addPreference(problem, PARAM_MACRO_ID,
|
addPreference(problem, PARAM_MACRO_ID,
|
||||||
CheckersMessages.StatementHasNoEffectChecker_ParameterMacro,
|
CheckersMessages.StatementHasNoEffectChecker_ParameterMacro,
|
||||||
Boolean.TRUE);
|
Boolean.TRUE);
|
||||||
|
|
Loading…
Add table
Reference in a new issue