mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-07-23 17:05:26 +02:00
bug - 144096. Don't omit implicit methods from index if they came off a name that wasn't a reference
This commit is contained in:
parent
8df1d9249d
commit
49790ba344
1 changed files with 5 additions and 2 deletions
|
@ -137,8 +137,11 @@ public class PDOMCPPLinkage extends PDOMLinkage {
|
|||
pdomBinding = new PDOMCPPVariable(pdom, parent, name);
|
||||
} else if (binding instanceof CPPMethod && parent instanceof PDOMCPPClassType) {
|
||||
pdomBinding = new PDOMCPPMethod(pdom, (PDOMCPPClassType)parent, name);
|
||||
} else if (binding instanceof CPPImplicitMethod) {
|
||||
// skip these for now
|
||||
} else if (binding instanceof CPPImplicitMethod && parent instanceof PDOMCPPClassType) {
|
||||
if(!name.isReference()) {
|
||||
//because we got the implicit method off of an IASTName that is not a reference, it is no longer completly implicit and it should be treated as a normal method.
|
||||
pdomBinding = new PDOMCPPMethod(pdom, (PDOMCPPClassType)parent, name);
|
||||
}
|
||||
} else if (binding instanceof CPPFunction) {
|
||||
pdomBinding = new PDOMCPPFunction(pdom, parent, name);
|
||||
} else if (binding instanceof CPPClassType) {
|
||||
|
|
Loading…
Add table
Reference in a new issue