1
0
Fork 0
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:
Doug Schaefer 2005-04-04 18:59:14 +00:00
parent 4271b7bd80
commit cb199fd44a

View file

@ -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) {