1
0
Fork 0
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:
John Camelon 2005-01-27 02:14:19 +00:00
parent 11f8e7fc7a
commit a047b603b5

View file

@ -589,6 +589,7 @@ public class LocationMap implements ILocationResolver, IScannerPreprocessorLog {
IASTName name = new ScannerASTName(d.name);
name.setPropertyInParent(IASTPreprocessorMacroDefinition.MACRO_NAME);
name.setParent(r);
((ScannerASTNode)name).setOffsetAndLength( d.nameOffset, d.name.length );
r.setName(name);
r.setExpansion(new String(d.expansion));
((ScannerASTNode) r).setOffsetAndLength(d.context_directive_start,