1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-04-29 19:45:01 +02:00

Cosmetics.

This commit is contained in:
Sergey Prigogin 2011-01-16 22:50:14 +00:00
parent e07fbf49f5
commit e5c42af4c9
2 changed files with 79 additions and 80 deletions

View file

@ -36,7 +36,6 @@ import org.eclipse.core.runtime.IStatus;
import org.eclipse.text.edits.TextEdit;
public class CCodeFormatter extends CodeFormatter {
private DefaultCodeFormatterOptions preferences;
private Map<String, ?> options;
@ -78,8 +77,7 @@ public class CCodeFormatter extends CodeFormatter {
case DefaultCodeFormatterOptions.MIXED:
int tabSize= preferences.tab_size;
int spaceEquivalents= indentationLevel
* preferences.indentation_size;
int spaceEquivalents= indentationLevel * preferences.indentation_size;
tabs= spaceEquivalents / tabSize;
spaces= spaceEquivalents % tabSize;
break;

View file

@ -3419,6 +3419,7 @@ public class CodeFormatterVisitor extends ASTVisitor implements ICPPASTVisitor,
private int peekNextToken() {
return peekNextToken(false);
}
private int peekNextToken(boolean ignoreSkip) {
if (!ignoreSkip && scribe.shouldSkip(scribe.scanner.getCurrentPosition())) {
return Token.tBADCHAR;