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

Bug 397496. A missing piece of the previous fix.

This commit is contained in:
Sergey Prigogin 2013-01-06 21:26:24 -08:00
parent e679870821
commit 3602ab4d96

View file

@ -3885,6 +3885,7 @@ public class CodeFormatterVisitor extends ASTVisitor implements ICPPASTVisitor,
if (currentOffset > nodeEndOffset) {
return;
}
if (!fInsideMacroArguments) {
IASTNodeLocation[] locations= node.getNodeLocations();
for (int i= 0; i < locations.length; i++) {
IASTNodeLocation nodeLocation= locations[i];
@ -3903,6 +3904,7 @@ public class CodeFormatterVisitor extends ASTVisitor implements ICPPASTVisitor,
}
}
}
}
private int getNextTokenOffset() {
localScanner.resetTo(getCurrentPosition(), scribe.scannerEndPosition);