From 4e112eca7750a4f530c986be55c178c43c16d3ea Mon Sep 17 00:00:00 2001 From: Elliott Baron Date: Sat, 26 Jun 2010 22:27:34 -0400 Subject: Update codan plugins to CDT 7.0. * org.eclipse.cdt.codan.checkers.ui: Updated. * org.eclipse.cdt.codan.checkers: Updated. * org.eclipse.cdt.codan.core: Updated. * org.eclipse.cdt.codan.ui: Updated. * org.eclipse.cdt.codan.core.cxx: Added. * org.eclipse.cdt.codan.extension/META-INF/MANIFEST.MF: Import org.eclipse.cdt.codan.core.cxx.model. * org.eclipse.cdt.codan.extension/src/org/eclipse/cdt/codan/extension/checkers/AbstractPropSimChecker.java: Superclass moved. --- .../OSGI-INF/CVS/Entries | 1 + .../OSGI-INF/CVS/Repository | 1 + org.eclipse.cdt.codan.checkers/OSGI-INF/CVS/Root | 1 + org.eclipse.cdt.codan.checkers/OSGI-INF/CVS/Tag | 1 + .../OSGI-INF/l10n/CVS/Entries | 1 + .../OSGI-INF/l10n/CVS/Repository | 1 + .../OSGI-INF/l10n/CVS/Root | 1 + .../OSGI-INF/l10n/CVS/Tag | 1 + .../OSGI-INF/l10n/bundle.properties | 47 ++++++++++++++++++++++ 9 files changed, 55 insertions(+) create mode 100644 org.eclipse.cdt.codan.checkers/OSGI-INF/CVS/Entries create mode 100644 org.eclipse.cdt.codan.checkers/OSGI-INF/CVS/Repository create mode 100644 org.eclipse.cdt.codan.checkers/OSGI-INF/CVS/Root create mode 100644 org.eclipse.cdt.codan.checkers/OSGI-INF/CVS/Tag create mode 100644 org.eclipse.cdt.codan.checkers/OSGI-INF/l10n/CVS/Entries create mode 100644 org.eclipse.cdt.codan.checkers/OSGI-INF/l10n/CVS/Repository create mode 100644 org.eclipse.cdt.codan.checkers/OSGI-INF/l10n/CVS/Root create mode 100644 org.eclipse.cdt.codan.checkers/OSGI-INF/l10n/CVS/Tag create mode 100644 org.eclipse.cdt.codan.checkers/OSGI-INF/l10n/bundle.properties (limited to 'org.eclipse.cdt.codan.checkers/OSGI-INF') diff --git a/org.eclipse.cdt.codan.checkers/OSGI-INF/CVS/Entries b/org.eclipse.cdt.codan.checkers/OSGI-INF/CVS/Entries new file mode 100644 index 0000000..2928641 --- /dev/null +++ b/org.eclipse.cdt.codan.checkers/OSGI-INF/CVS/Entries @@ -0,0 +1 @@ +D/l10n//// diff --git a/org.eclipse.cdt.codan.checkers/OSGI-INF/CVS/Repository b/org.eclipse.cdt.codan.checkers/OSGI-INF/CVS/Repository new file mode 100644 index 0000000..0ba340a --- /dev/null +++ b/org.eclipse.cdt.codan.checkers/OSGI-INF/CVS/Repository @@ -0,0 +1 @@ +org.eclipse.cdt/codan/org.eclipse.cdt.codan.checkers/OSGI-INF diff --git a/org.eclipse.cdt.codan.checkers/OSGI-INF/CVS/Root b/org.eclipse.cdt.codan.checkers/OSGI-INF/CVS/Root new file mode 100644 index 0000000..04efa23 --- /dev/null +++ b/org.eclipse.cdt.codan.checkers/OSGI-INF/CVS/Root @@ -0,0 +1 @@ +:pserver:anonymous@dev.eclipse.org:/cvsroot/tools diff --git a/org.eclipse.cdt.codan.checkers/OSGI-INF/CVS/Tag b/org.eclipse.cdt.codan.checkers/OSGI-INF/CVS/Tag new file mode 100644 index 0000000..3cd1ca4 --- /dev/null +++ b/org.eclipse.cdt.codan.checkers/OSGI-INF/CVS/Tag @@ -0,0 +1 @@ +TCDT_7_0_0 diff --git a/org.eclipse.cdt.codan.checkers/OSGI-INF/l10n/CVS/Entries b/org.eclipse.cdt.codan.checkers/OSGI-INF/l10n/CVS/Entries new file mode 100644 index 0000000..6feb6a6 --- /dev/null +++ b/org.eclipse.cdt.codan.checkers/OSGI-INF/l10n/CVS/Entries @@ -0,0 +1 @@ +/bundle.properties/1.2/Thu Jun 3 17:01:33 2010//TCDT_7_0_0 diff --git a/org.eclipse.cdt.codan.checkers/OSGI-INF/l10n/CVS/Repository b/org.eclipse.cdt.codan.checkers/OSGI-INF/l10n/CVS/Repository new file mode 100644 index 0000000..32fbdd6 --- /dev/null +++ b/org.eclipse.cdt.codan.checkers/OSGI-INF/l10n/CVS/Repository @@ -0,0 +1 @@ +org.eclipse.cdt/codan/org.eclipse.cdt.codan.checkers/OSGI-INF/l10n diff --git a/org.eclipse.cdt.codan.checkers/OSGI-INF/l10n/CVS/Root b/org.eclipse.cdt.codan.checkers/OSGI-INF/l10n/CVS/Root new file mode 100644 index 0000000..04efa23 --- /dev/null +++ b/org.eclipse.cdt.codan.checkers/OSGI-INF/l10n/CVS/Root @@ -0,0 +1 @@ +:pserver:anonymous@dev.eclipse.org:/cvsroot/tools diff --git a/org.eclipse.cdt.codan.checkers/OSGI-INF/l10n/CVS/Tag b/org.eclipse.cdt.codan.checkers/OSGI-INF/l10n/CVS/Tag new file mode 100644 index 0000000..49a449a --- /dev/null +++ b/org.eclipse.cdt.codan.checkers/OSGI-INF/l10n/CVS/Tag @@ -0,0 +1 @@ +NCDT_7_0_0 diff --git a/org.eclipse.cdt.codan.checkers/OSGI-INF/l10n/bundle.properties b/org.eclipse.cdt.codan.checkers/OSGI-INF/l10n/bundle.properties new file mode 100644 index 0000000..3f942ae --- /dev/null +++ b/org.eclipse.cdt.codan.checkers/OSGI-INF/l10n/bundle.properties @@ -0,0 +1,47 @@ +############################################################################### +# Copyright (c) 2010 Alena Laskavaia and others. +# All rights reserved. This program and the accompanying materials +# are made available under the terms of the Eclipse Public License v1.0 +# which accompanies this distribution, and is available at +# http://www.eclipse.org/legal/epl-v10.html +# +# Contributors: +# Alena Laskavaia - initial API and implementation +############################################################################### +#Properties file for org.eclipse.cdt.codan.checkers +Bundle-Vendor = Eclipse CDT +Bundle-Name = Codan Checkers +checker.name.AssignmentInCondition = Assignment in condition +problem.description.AssignmentInCondition = Finds statements like 'if (a=b)' +problem.messagePattern.AssignmentInCondition = Possible assignment in condition ''{0}'' +problem.name.AssignmentInCondition = Assignment in condition +checker.name.StatementHasNoEffect = StatementHasNoEffectChecker +problem.description.StatementHasNoEffect = Finds statements like 'a;' or '-a;' or 'a-b;' which do no seems to have any side effect therefore suspicious +problem.messagePattern.StatementHasNoEffect = Statement has no effect ''{0}'' +problem.name.StatementHasNoEffect = Statement has no effect +checker.name.NonVirtualDescructor = NonVirtualDescructorChecker +problem.description.NonVirtualDescructor = If destructor is not declared virtual - destructor of derived class would not be called. +problem.messagePattern.NonVirtualDescructor = Class ''{0}'' has virtual method ''{1}'' but non-virtual destructor ''{2}'' +problem.name.NonVirtualDescructor = Class has a virtual method and non-virtual destructor +checker.name.CatchByReference = CatchByReferenceChecker +problem.description.CatchByReference = Catching by reference is recommended by C++ experts, "Throw by value, catch by reference". For one thing, this avoids copying and potentially slicing the exception. +problem.messagePattern.CatchByReference = Catching by reference is recommended ''{0}'' +problem.name.CatchByReference = Catching by reference is recommended +checker.name.SuggestedParenthesis = SuggestedParenthesisChecker +problem.description.SuggestedParenthesis = This checker finds problems related to either lack of understanding precedence of operators or misspelling of operators in expression. For example (!a<10) or (a && b & c) +problem.messagePattern.SuggestedParenthesis = Suggested parenthesis around expression ''{0}'' +problem.name.SuggestedParenthesis = Suggested parenthesis around expression +checker.name.NamingConventionFunction = NamingConventionFunctionChecker +problem.description.NamingConventionFunction = Finds and reports functions name of which does not match pattern parameter +problem.messagePattern.NamingConventionFunction = Bad function name "{0}" (pattern /{1}/) +problem.name.NamingConventionFunction = Name convention for function +checker.name.ReturnChecker = Return inconsistencies +problem.description.NoReturnValue = Return statment has no return value, if somebody would use return value from this function it would be random +problem.messagePattern.NoReturnValue = Return without value, in function returning non-void +problem.name.NoReturnValue = No return value +problem.description.UnusedReturnValue = Return statement has a value, but function is declared to return void. Did you mean to declare function with return value? +problem.messagePattern.UnusedReturnValue = Return has value, in function returning void +problem.name.UnusedReturnValue = Unused return value +problem.description.NoReturn = No return statement in a function which is declared to return value +problem.messagePattern.NoReturn = No return, in function returning non-void +problem.name.NoReturn = No return \ No newline at end of file -- cgit