mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-04-29 19:45:01 +02:00
Cosmetics.
This commit is contained in:
parent
492ad5e111
commit
d7165d0797
3 changed files with 161 additions and 167 deletions
|
@ -114,8 +114,8 @@ public interface ICPPASTFunctionDeclarator extends IASTStandardFunctionDeclarato
|
||||||
public void setTrailingReturnType(IASTTypeId typeId);
|
public void setTrailingReturnType(IASTTypeId typeId);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Get function scope this node represents. Returns <code>null</code>, if this declarator does not
|
* Get function scope this node represents. Returns <code>null</code>, if this declarator
|
||||||
* declare a function-prototype or function-definition.
|
* does not declare a function-prototype or function-definition.
|
||||||
*/
|
*/
|
||||||
@Override
|
@Override
|
||||||
public ICPPFunctionScope getFunctionScope();
|
public ICPPFunctionScope getFunctionScope();
|
||||||
|
|
|
@ -21,7 +21,6 @@ import org.eclipse.cdt.core.dom.ast.IASTFunctionDefinition;
|
||||||
* @noimplement This interface is not intended to be implemented by clients.
|
* @noimplement This interface is not intended to be implemented by clients.
|
||||||
*/
|
*/
|
||||||
public interface ICPPASTFunctionDefinition extends IASTFunctionDefinition {
|
public interface ICPPASTFunctionDefinition extends IASTFunctionDefinition {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* <code>MEMBER_INITIALIZER</code> is the role of a member initializer in the function definition.
|
* <code>MEMBER_INITIALIZER</code> is the role of a member initializer in the function definition.
|
||||||
*/
|
*/
|
||||||
|
|
|
@ -1460,7 +1460,6 @@ public abstract class AbstractGNUSourceCodeParser implements ISourceCodeParser {
|
||||||
protected abstract IASTDeclarator initDeclarator(IASTDeclSpecifier declSpec, DeclarationOptions option)
|
protected abstract IASTDeclarator initDeclarator(IASTDeclSpecifier declSpec, DeclarationOptions option)
|
||||||
throws EndOfFileException, BacktrackException, FoundAggregateInitializer;
|
throws EndOfFileException, BacktrackException, FoundAggregateInitializer;
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Parse an enumeration specifier, as according to the ANSI specs in C &
|
* Parse an enumeration specifier, as according to the ANSI specs in C &
|
||||||
* C++. enumSpecifier: "enum" (name)? "{" (enumerator-list) "}"
|
* C++. enumSpecifier: "enum" (name)? "{" (enumerator-list) "}"
|
||||||
|
@ -1940,7 +1939,6 @@ public abstract class AbstractGNUSourceCodeParser implements ISourceCodeParser {
|
||||||
return setRange(statement, ds);
|
return setRange(statement, ds);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Returns true if the given declaration has unspecified type,
|
* Returns true if the given declaration has unspecified type,
|
||||||
* in this case the type defaults to int and is know as "implicit int".
|
* 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;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
protected abstract IASTAmbiguousStatement createAmbiguousStatement();
|
protected abstract IASTAmbiguousStatement createAmbiguousStatement();
|
||||||
|
|
||||||
protected IASTStatement parseLabelStatement() throws EndOfFileException, BacktrackException {
|
protected IASTStatement parseLabelStatement() throws EndOfFileException, BacktrackException {
|
||||||
|
@ -1966,7 +1963,6 @@ public abstract class AbstractGNUSourceCodeParser implements ISourceCodeParser {
|
||||||
IASTStatement nestedStatement = statement();
|
IASTStatement nestedStatement = statement();
|
||||||
int lastOffset = calculateEndOffset(nestedStatement);
|
int lastOffset = calculateEndOffset(nestedStatement);
|
||||||
|
|
||||||
|
|
||||||
IASTLabelStatement label_statement = nodeFactory.newLabelStatement(name, nestedStatement);
|
IASTLabelStatement label_statement = nodeFactory.newLabelStatement(name, nestedStatement);
|
||||||
setRange(label_statement, offset, lastOffset);
|
setRange(label_statement, offset, lastOffset);
|
||||||
return label_statement;
|
return label_statement;
|
||||||
|
@ -2280,7 +2276,6 @@ public abstract class AbstractGNUSourceCodeParser implements ISourceCodeParser {
|
||||||
if (result1 == null)
|
if (result1 == null)
|
||||||
return result2;
|
return result2;
|
||||||
|
|
||||||
|
|
||||||
IASTAmbiguousExpression ambExpr = createAmbiguousExpression();
|
IASTAmbiguousExpression ambExpr = createAmbiguousExpression();
|
||||||
ambExpr.addExpression(result1);
|
ambExpr.addExpression(result1);
|
||||||
ambExpr.addExpression(result2);
|
ambExpr.addExpression(result2);
|
||||||
|
|
Loading…
Add table
Reference in a new issue