mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-06-09 10:46:02 +02:00
Minor bug fix.
This commit is contained in:
parent
3a1214c27a
commit
79dc53a60d
1 changed files with 7 additions and 4 deletions
|
@ -1170,13 +1170,16 @@ public class CodeFormatterVisitor extends ASTVisitor implements ICPPASTVisitor,
|
|||
* </pre>
|
||||
*/
|
||||
private int visit(ICPPASTUsingDeclaration node) {
|
||||
scribe.printNextToken(Token.t_using);
|
||||
if (node.isTypename()) {
|
||||
scribe.printNextToken(Token.t_typename, true);
|
||||
int token = peekNextToken();
|
||||
if (token == Token.t_using)
|
||||
scribe.printNextToken(token);
|
||||
token = peekNextToken();
|
||||
if (token == Token.t_typename) {
|
||||
scribe.printNextToken(token, true);
|
||||
}
|
||||
scribe.space();
|
||||
node.getName().accept(this);
|
||||
int token = peekNextToken();
|
||||
token = peekNextToken();
|
||||
if (token == Token.tSEMI) {
|
||||
scribe.printNextToken(token, preferences.insert_space_before_semicolon);
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue