Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSergey Prigogin2012-01-20 18:11:06 -0500
committerSergey Prigogin2012-01-20 18:11:06 -0500
commit9f0e997443c2e764a0296e38f17a85f3c71f1fbd (patch)
tree7e82b50ff26c230d4397c7a048c3eb8e9fc7ca44 /codan/org.eclipse.cdt.codan.checkers
parent50640df3c04fbcf0c59873e18ddedba40e610c11 (diff)
downloadorg.eclipse.cdt-9f0e997443c2e764a0296e38f17a85f3c71f1fbd.tar.gz
org.eclipse.cdt-9f0e997443c2e764a0296e38f17a85f3c71f1fbd.tar.xz
org.eclipse.cdt-9f0e997443c2e764a0296e38f17a85f3c71f1fbd.zip
Fixed a typo.
Diffstat (limited to 'codan/org.eclipse.cdt.codan.checkers')
-rw-r--r--codan/org.eclipse.cdt.codan.checkers/src/org/eclipse/cdt/codan/internal/checkers/NamingConventionFunctionChecker.java20
1 files changed, 4 insertions, 16 deletions
diff --git a/codan/org.eclipse.cdt.codan.checkers/src/org/eclipse/cdt/codan/internal/checkers/NamingConventionFunctionChecker.java b/codan/org.eclipse.cdt.codan.checkers/src/org/eclipse/cdt/codan/internal/checkers/NamingConventionFunctionChecker.java
index 466e688d92..0c341f0706 100644
--- a/codan/org.eclipse.cdt.codan.checkers/src/org/eclipse/cdt/codan/internal/checkers/NamingConventionFunctionChecker.java
+++ b/codan/org.eclipse.cdt.codan.checkers/src/org/eclipse/cdt/codan/internal/checkers/NamingConventionFunctionChecker.java
@@ -6,7 +6,7 @@
* http://www.eclipse.org/legal/epl-v10.html
*
* Contributors:
- * Alena Laskavaia - initial API and implementation
+ * Alena Laskavaia - initial API and implementation
*******************************************************************************/
package org.eclipse.cdt.codan.internal.checkers;
@@ -29,7 +29,6 @@ import org.eclipse.cdt.core.dom.ast.cpp.ICPPASTQualifiedName;
/**
* This is style checker for function name code style. Pattern parameter is
* regular expression defining the style.
- *
*/
public class NamingConventionFunctionChecker extends AbstractIndexAstChecker implements ICheckerWithPreferences {
private static final String ER_ID = "org.eclipse.cdt.codan.internal.checkers.NamingConventionFunctionChecker"; //$NON-NLS-1$
@@ -50,7 +49,7 @@ public class NamingConventionFunctionChecker extends AbstractIndexAstChecker imp
public int visit(IASTDeclaration element) {
if (element instanceof IASTFunctionDefinition) {
IASTName astName = ((IASTFunctionDefinition) element).getDeclarator().getName();
- String name = getSearchibleName(astName);
+ String name = getSearchableName(astName);
if (name != null) {
for (Iterator<IProblem> iterator = pts.iterator(); iterator.hasNext();) {
IProblem pt = iterator.next();
@@ -68,18 +67,14 @@ public class NamingConventionFunctionChecker extends AbstractIndexAstChecker imp
return PROCESS_SKIP;
}
- public boolean shouldReport(IASTName astName, IProblem pt) {
+ private boolean shouldReport(IASTName astName, IProblem pt) {
if (astName instanceof ICPPASTQualifiedName) {
return shouldReportCppMethods(pt);
}
return true;
}
- /**
- * @param astName
- * @return
- */
- public String getSearchibleName(IASTName astName) {
+ private String getSearchableName(IASTName astName) {
String name = astName.toString();
if (astName instanceof ICPPASTQualifiedName) {
ICPPASTQualifiedName cppAstName = (ICPPASTQualifiedName) astName;
@@ -104,13 +99,6 @@ public class NamingConventionFunctionChecker extends AbstractIndexAstChecker imp
}
}
- /*
- * (non-Javadoc)
- *
- * @see
- * org.eclipse.cdt.codan.core.model.ICheckerWithPreferences#initParameters
- * (org.eclipse.cdt.codan.core.model.IProblemWorkingCopy)
- */
@Override
public void initPreferences(IProblemWorkingCopy problem) {
super.initPreferences(problem);

Back to the top