mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-04-22 06:02:11 +02:00
Bug 90201 - When completing on a declSpecifier, we didn't bail out on the declaration and added another name for the declarator. Now we do.
This commit is contained in:
parent
4271b7bd80
commit
cb199fd44a
1 changed files with 1 additions and 1 deletions
|
@ -2653,7 +2653,7 @@ public class GNUCPPSourceParser extends AbstractGNUSourceCodeParser {
|
|||
ICPPASTDeclSpecifier declSpec = declSpecifierSeq(false,
|
||||
strategy == SimpleDeclarationStrategy.TRY_CONSTRUCTOR);
|
||||
List declarators = Collections.EMPTY_LIST;
|
||||
if (LT(1) != IToken.tSEMI) {
|
||||
if (LT(1) != IToken.tSEMI && LT(1) != IToken.tEOC) {
|
||||
declarators = new ArrayList(DEFAULT_DECLARATOR_LIST_SIZE);
|
||||
declarators.add(initDeclarator(strategy));
|
||||
while (LT(1) == IToken.tCOMMA) {
|
||||
|
|
Loading…
Add table
Reference in a new issue