mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-04-29 19:45:01 +02:00
Add offset to IASTMacroDefinition name.
This commit is contained in:
parent
11f8e7fc7a
commit
a047b603b5
1 changed files with 1 additions and 0 deletions
|
@ -589,6 +589,7 @@ public class LocationMap implements ILocationResolver, IScannerPreprocessorLog {
|
||||||
IASTName name = new ScannerASTName(d.name);
|
IASTName name = new ScannerASTName(d.name);
|
||||||
name.setPropertyInParent(IASTPreprocessorMacroDefinition.MACRO_NAME);
|
name.setPropertyInParent(IASTPreprocessorMacroDefinition.MACRO_NAME);
|
||||||
name.setParent(r);
|
name.setParent(r);
|
||||||
|
((ScannerASTNode)name).setOffsetAndLength( d.nameOffset, d.name.length );
|
||||||
r.setName(name);
|
r.setName(name);
|
||||||
r.setExpansion(new String(d.expansion));
|
r.setExpansion(new String(d.expansion));
|
||||||
((ScannerASTNode) r).setOffsetAndLength(d.context_directive_start,
|
((ScannerASTNode) r).setOffsetAndLength(d.context_directive_start,
|
||||||
|
|
Loading…
Add table
Reference in a new issue