mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-04-29 19:45:01 +02:00
Bug 320575 - fallback for add variable should use int not void
This commit is contained in:
parent
83a58cd77c
commit
9dde9a4f28
1 changed files with 1 additions and 1 deletions
|
@ -177,7 +177,7 @@ public final class CxxAstUtils {
|
|||
} else { // Fallback - return a `void` declaration
|
||||
IASTDeclarator declarator = factory.newDeclarator(astName.copy());
|
||||
IASTSimpleDeclSpecifier declspec = factory.newSimpleDeclSpecifier();
|
||||
declspec.setType(Kind.eVoid);
|
||||
declspec.setType(Kind.eInt);
|
||||
IASTSimpleDeclaration simpleDeclaration = factory
|
||||
.newSimpleDeclaration(declspec);
|
||||
simpleDeclaration.addDeclarator(declarator);
|
||||
|
|
Loading…
Add table
Reference in a new issue