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:
parent
2ba3a82120
commit
21a2b93c96
1 changed files with 2 additions and 1 deletions
|
@ -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();
|
||||
|
|
Loading…
Add table
Reference in a new issue