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:
parent
e679870821
commit
3602ab4d96
1 changed files with 16 additions and 14 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Reference in a new issue