mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-06-08 18:26:01 +02:00
Skip over parameters when adding names. Done to match the last update in PDOMCPPLinkage.
This commit is contained in:
parent
811ff311aa
commit
e081e89bd0
1 changed files with 10 additions and 1 deletions
|
@ -86,11 +86,20 @@ public class PDOMCLinkage extends PDOMLinkage {
|
|||
}
|
||||
|
||||
public PDOMBinding addName(IASTName name, PDOMFile file) throws CoreException {
|
||||
if (name == null || name.toCharArray().length == 0)
|
||||
if (name == null)
|
||||
return null;
|
||||
|
||||
char[] namechars = name.toCharArray();
|
||||
if (namechars == null || name.toCharArray().length == 0)
|
||||
return null;
|
||||
|
||||
IBinding binding = name.resolveBinding();
|
||||
if (binding == null || binding instanceof IProblemBinding)
|
||||
// can't tell what it is
|
||||
return null;
|
||||
|
||||
if (binding instanceof IParameter)
|
||||
// skip parameters
|
||||
return null;
|
||||
|
||||
PDOMBinding pdomBinding = adaptBinding(binding);
|
||||
|
|
Loading…
Add table
Reference in a new issue