1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-04-29 19:45:01 +02:00

Fixed typos.

This commit is contained in:
Sergey Prigogin 2010-08-09 01:22:13 +00:00
parent f546ade7fc
commit 0583881ce1

View file

@ -196,7 +196,6 @@ public class CConventions {
* object indicating what is wrong with the name * object indicating what is wrong with the name
*/ */
public static IStatus validateScopeName(String name) { public static IStatus validateScopeName(String name) {
if (name == null) { if (name == null) {
return new Status(IStatus.ERROR, CCorePlugin.PLUGIN_ID, -1, Messages.convention_scope_nullName, null); return new Status(IStatus.ERROR, CCorePlugin.PLUGIN_ID, -1, Messages.convention_scope_nullName, null);
} }
@ -230,6 +229,7 @@ public class CConventions {
} }
return CModelStatus.VERIFIED_OK; return CModelStatus.VERIFIED_OK;
} }
/** /**
* Validate the given field name. * Validate the given field name.
* <p> * <p>
@ -291,7 +291,7 @@ public class CConventions {
/** /**
* Validate the given include name. * Validate the given include name.
* <p> * <p>
* The name of an include without the surroounding double quotes or brakets * The name of an include without the surrounding double quotes or brackets
* For example, <code>stdio.h</code> or <code>iostream</code>. * For example, <code>stdio.h</code> or <code>iostream</code>.
* *
* @param name the include declaration * @param name the include declaration
@ -317,7 +317,7 @@ public class CConventions {
} }
public static boolean isValidIdentifier(String name){ public static boolean isValidIdentifier(String name){
// create a scanner and get the type of the token // Create a scanner and get the type of the token
// assuming that you are given a valid identifier // assuming that you are given a valid identifier
IToken token = null; IToken token = null;
Lexer lexer= new Lexer(name.toCharArray(), new Lexer.LexerOptions(), ILexerLog.NULL, null); Lexer lexer= new Lexer(name.toCharArray(), new Lexer.LexerOptions(), ILexerLog.NULL, null);
@ -365,7 +365,7 @@ public class CConventions {
* the name * the name
*/ */
public static IStatus validateFileName(String name) { public static IStatus validateFileName(String name) {
//TODO could use a prefs option for file naming conventions //TODO could use a preferences option for file naming conventions
if (name == null || name.length() == 0) { if (name == null || name.length() == 0) {
return new Status(IStatus.ERROR, CCorePlugin.PLUGIN_ID, -1, Messages.convention_filename_nullName, null); return new Status(IStatus.ERROR, CCorePlugin.PLUGIN_ID, -1, Messages.convention_filename_nullName, null);
} }
@ -397,7 +397,7 @@ public class CConventions {
* the name * the name
*/ */
public static IStatus validateHeaderFileName(IProject project, String name) { public static IStatus validateHeaderFileName(IProject project, String name) {
//TODO could use a prefs option for header file naming conventions //TODO could use a preferences option for header file naming conventions
IStatus val = validateFileName(name); IStatus val = validateFileName(name);
if (val.getSeverity() == IStatus.ERROR) { if (val.getSeverity() == IStatus.ERROR) {
return val; return val;
@ -424,7 +424,7 @@ public class CConventions {
* the name * the name
*/ */
public static IStatus validateSourceFileName(IProject project, String name) { public static IStatus validateSourceFileName(IProject project, String name) {
//TODO could use a prefs option for source file naming conventions //TODO could use a preferences option for source file naming conventions
IStatus val = validateFileName(name); IStatus val = validateFileName(name);
if (val.getSeverity() == IStatus.ERROR) { if (val.getSeverity() == IStatus.ERROR) {
return val; return val;