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

Cosmetics.

This commit is contained in:
Sergey Prigogin 2012-08-16 18:22:06 -07:00
parent 492ad5e111
commit d7165d0797
3 changed files with 161 additions and 167 deletions

View file

@ -114,8 +114,8 @@ public interface ICPPASTFunctionDeclarator extends IASTStandardFunctionDeclarato
public void setTrailingReturnType(IASTTypeId typeId);
/**
* Get function scope this node represents. Returns <code>null</code>, if this declarator does not
* declare a function-prototype or function-definition.
* Get function scope this node represents. Returns <code>null</code>, if this declarator
* does not declare a function-prototype or function-definition.
*/
@Override
public ICPPFunctionScope getFunctionScope();

View file

@ -21,7 +21,6 @@ import org.eclipse.cdt.core.dom.ast.IASTFunctionDefinition;
* @noimplement This interface is not intended to be implemented by clients.
*/
public interface ICPPASTFunctionDefinition extends IASTFunctionDefinition {
/**
* <code>MEMBER_INITIALIZER</code> is the role of a member initializer in the function definition.
*/

View file

@ -1460,7 +1460,6 @@ public abstract class AbstractGNUSourceCodeParser implements ISourceCodeParser {
protected abstract IASTDeclarator initDeclarator(IASTDeclSpecifier declSpec, DeclarationOptions option)
throws EndOfFileException, BacktrackException, FoundAggregateInitializer;
/**
* Parse an enumeration specifier, as according to the ANSI specs in C &
* C++. enumSpecifier: "enum" (name)? "{" (enumerator-list) "}"
@ -1940,7 +1939,6 @@ public abstract class AbstractGNUSourceCodeParser implements ISourceCodeParser {
return setRange(statement, ds);
}
/**
* Returns true if the given declaration has unspecified type,
* in this case the type defaults to int and is know as "implicit int".
@ -1956,7 +1954,6 @@ public abstract class AbstractGNUSourceCodeParser implements ISourceCodeParser {
return false;
}
protected abstract IASTAmbiguousStatement createAmbiguousStatement();
protected IASTStatement parseLabelStatement() throws EndOfFileException, BacktrackException {
@ -1966,7 +1963,6 @@ public abstract class AbstractGNUSourceCodeParser implements ISourceCodeParser {
IASTStatement nestedStatement = statement();
int lastOffset = calculateEndOffset(nestedStatement);
IASTLabelStatement label_statement = nodeFactory.newLabelStatement(name, nestedStatement);
setRange(label_statement, offset, lastOffset);
return label_statement;
@ -2280,7 +2276,6 @@ public abstract class AbstractGNUSourceCodeParser implements ISourceCodeParser {
if (result1 == null)
return result2;
IASTAmbiguousExpression ambExpr = createAmbiguousExpression();
ambExpr.addExpression(result1);
ambExpr.addExpression(result2);