mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-04-29 19:45:01 +02:00
Bug 273525. Reverted the previous change.
This commit is contained in:
parent
ffc86f14b2
commit
baa2c091e7
1 changed files with 0 additions and 15 deletions
|
@ -75,7 +75,6 @@ import org.eclipse.cdt.core.dom.ast.IBinding;
|
||||||
import org.eclipse.cdt.core.dom.ast.ICompositeType;
|
import org.eclipse.cdt.core.dom.ast.ICompositeType;
|
||||||
import org.eclipse.cdt.core.dom.ast.IEnumeration;
|
import org.eclipse.cdt.core.dom.ast.IEnumeration;
|
||||||
import org.eclipse.cdt.core.dom.ast.IEnumerator;
|
import org.eclipse.cdt.core.dom.ast.IEnumerator;
|
||||||
import org.eclipse.cdt.core.dom.ast.IField;
|
|
||||||
import org.eclipse.cdt.core.dom.ast.IFunction;
|
import org.eclipse.cdt.core.dom.ast.IFunction;
|
||||||
import org.eclipse.cdt.core.dom.ast.IFunctionType;
|
import org.eclipse.cdt.core.dom.ast.IFunctionType;
|
||||||
import org.eclipse.cdt.core.dom.ast.ILabel;
|
import org.eclipse.cdt.core.dom.ast.ILabel;
|
||||||
|
@ -1416,20 +1415,6 @@ public class CPPVisitor extends ASTQueries {
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
// Handle the case when one of the bindings is from the index and another
|
|
||||||
// one is from an AST.
|
|
||||||
if ((nameBinding instanceof IIndexBinding) != (binding instanceof IIndexBinding) &&
|
|
||||||
SemanticUtil.isSameOwner(nameBinding.getOwner(), binding.getOwner())) {
|
|
||||||
if (nameBinding instanceof IFunction && binding instanceof IFunction) {
|
|
||||||
if (((IFunction) nameBinding).getType().isSameType(((IFunction) binding).getType())) {
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
} else if (nameBinding instanceof IField && binding instanceof IField) {
|
|
||||||
if (((IField) nameBinding).getType().isSameType(((IField) binding).getType())) {
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return false;
|
return false;
|
||||||
|
|
Loading…
Add table
Reference in a new issue