mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-06-07 09:46:02 +02:00
Fixed compiler warnings.
Change-Id: I6617c9cf0564c8011da4f35f41cbae29c453adfa
This commit is contained in:
parent
d6d135d701
commit
0937af705b
2 changed files with 20 additions and 15 deletions
|
@ -21,7 +21,6 @@ import org.eclipse.cdt.core.dom.ast.IASTNode;
|
|||
import org.eclipse.cdt.core.dom.ast.IASTStatement;
|
||||
import org.eclipse.cdt.core.dom.ast.IScope;
|
||||
import org.eclipse.cdt.core.dom.ast.cpp.ICPPASTForStatement;
|
||||
import org.eclipse.cdt.internal.core.dom.parser.ASTAttributeOwner;
|
||||
import org.eclipse.cdt.internal.core.dom.parser.cpp.semantics.DestructorCallCollector;
|
||||
|
||||
/**
|
||||
|
|
|
@ -22,7 +22,11 @@ import org.eclipse.cdt.core.parser.Keywords;
|
|||
import org.eclipse.cdt.internal.core.dom.parser.ASTNode;
|
||||
import org.eclipse.cdt.internal.core.dom.parser.ASTNodeSearch;
|
||||
|
||||
|
||||
/**
|
||||
* An implicit name is used to resolve uses of implicit bindings, such as overloaded operators.
|
||||
*
|
||||
* @see IASTImplicitName
|
||||
*/
|
||||
public class CPPASTImplicitName extends CPPASTName implements IASTImplicitName {
|
||||
private boolean alternate;
|
||||
private boolean isOperator;
|
||||
|
@ -150,9 +154,11 @@ public class CPPASTImplicitName extends CPPASTName implements IASTImplicitName {
|
|||
}
|
||||
ASTNode sib = (ASTNode) sibling;
|
||||
ASTNode par = (ASTNode) parent;
|
||||
@SuppressWarnings("null")
|
||||
int start = trailing ? relative.getOffset() + relative.getLength()
|
||||
: sib != null ? sib.getOffset() + sib.getLength()
|
||||
: par.getOffset();
|
||||
@SuppressWarnings("null")
|
||||
int end = trailing ? sib != null ? sib.getOffset()
|
||||
: par.getOffset() + par.getLength()
|
||||
: relative.getOffset();
|
||||
|
|
Loading…
Add table
Reference in a new issue