1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-07-30 20:35:38 +02:00

Cosmetics.

This commit is contained in:
Sergey Prigogin 2009-05-02 20:42:10 +00:00
parent eb549137f7
commit a8bfc893f3
2 changed files with 6 additions and 6 deletions

View file

@ -31,5 +31,5 @@ public interface ICPPNamespace extends ICPPBinding {
* get an array of the all the bindings declared in this namespace.
* @throws DOMException
*/
public IBinding [] getMemberBindings() throws DOMException;
public IBinding[] getMemberBindings() throws DOMException;
}

View file

@ -48,7 +48,7 @@ import org.eclipse.core.runtime.PlatformObject;
* @author aniefer
*/
public class CPPVariable extends PlatformObject implements ICPPVariable, ICPPInternalBinding, IInternalVariable {
public static class CPPVariableProblem extends ProblemBinding implements ICPPVariable{
public static class CPPVariableProblem extends ProblemBinding implements ICPPVariable {
public CPPVariableProblem(IASTNode node, int id, char[] arg) {
super(node, id, arg);
}
@ -122,11 +122,11 @@ public class CPPVariable extends PlatformObject implements ICPPVariable, ICPPInt
IASTSimpleDeclaration simpleDecl = (IASTSimpleDeclaration) dtor.getParent();
IASTDeclSpecifier declSpec = simpleDecl.getDeclSpecifier();
//(3.1-1) A declaration is a definition unless ...
//it contains the extern specifier or a linkage-spec and does not contain an initializer
// (3.1-1) A declaration is a definition unless ...
// it contains the extern specifier or a linkage-spec and does not contain an initializer
if (dtor.getInitializer() == null && declSpec.getStorageClass() == IASTDeclSpecifier.sc_extern)
return false;
//or it declares a static data member in a class declaration
// or it declares a static data member in a class declaration
if (simpleDecl.getParent() instanceof ICPPASTCompositeTypeSpecifier &&
declSpec.getStorageClass() == IASTDeclSpecifier.sc_static) {
return false;
@ -274,7 +274,7 @@ public class CPPVariable extends PlatformObject implements ICPPVariable, ICPPInt
parent = parent.getParent();
if (parent instanceof IASTSimpleDeclaration) {
IASTDeclSpecifier declSpec = ((IASTSimpleDeclaration)parent).getDeclSpecifier();
IASTDeclSpecifier declSpec = ((IASTSimpleDeclaration) parent).getDeclSpecifier();
if (declSpec.getStorageClass() == storage) {
return true;
}