1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-07-01 06:05:24 +02:00

Fixed insertion of extraneous space character.

This commit is contained in:
Sergey Prigogin 2011-05-10 23:06:24 +00:00
parent 2ba3a82120
commit 21a2b93c96

View file

@ -787,7 +787,8 @@ public class CodeFormatterVisitor extends ASTVisitor implements ICPPASTVisitor,
}
IASTName name= node.getName();
if (name != null && name.getSimpleID().length != 0) {
if (isFirstDeclarator(node)) {
if (node.getPropertyInParent() != IASTDeclarator.NESTED_DECLARATOR &&
isFirstDeclarator(node)) {
// Preserve non-space between pointer operator and name
if (pointerOperators.length == 0 || scribe.printComment()) {
scribe.space();