mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-04-29 19:45:01 +02:00
[77233] Fixed up assist in ambiguous declarator case, I guess...
This commit is contained in:
parent
6480af5085
commit
fa843ff2ed
1 changed files with 4 additions and 3 deletions
|
@ -2498,10 +2498,11 @@ public class GNUCPPSourceParser extends AbstractGNUSourceCodeParser {
|
|||
for (int i = 0; i < parms.length; ++i) {
|
||||
if (!(parms[i].getDeclSpecifier() instanceof IASTNamedTypeSpecifier))
|
||||
return d1;
|
||||
if (((ASTNode) parms[i].getDeclarator().getName())
|
||||
.getLength() > 0)
|
||||
return d1;
|
||||
IASTDeclarator d = parms[i].getDeclarator();
|
||||
if (d == null) // must be an EOC
|
||||
return d1;
|
||||
if (((ASTNode)d.getName()).getLength() > 0)
|
||||
return d1;
|
||||
while (d.getNestedDeclarator() != null)
|
||||
d = d.getNestedDeclarator();
|
||||
if (((ASTNode) d.getName()).getLength() > 0)
|
||||
|
|
Loading…
Add table
Reference in a new issue