1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-06-08 18:26:01 +02:00

added comments

This commit is contained in:
Alena Laskavaia 2009-04-21 00:47:03 +00:00
parent d02fb6433d
commit 86a922370c

View file

@ -63,7 +63,8 @@ public class StatementHasNoEffectChecker extends AbstractIndexAstChecker {
/**
* We consider has not effect binary statements without assignment and
* unary statement which is not dec and inc
* unary statement which is not dec and inc. If operator is overloaded
* we not going to bother.
*
* @param e
* @return
@ -74,6 +75,8 @@ public class StatementHasNoEffectChecker extends AbstractIndexAstChecker {
if (binExpr.getOperator() == IASTBinaryExpression.op_assign)
return false;
if (binExpr instanceof CPPASTBinaryExpression) {
// unfortunately ICPPASTBinaryExpression does not have
// getOverload public method
CPPASTBinaryExpression cppBin = (CPPASTBinaryExpression) binExpr;
ICPPFunction overload = cppBin.getOverload();
if (overload != null)