#
abff5f12 |
| 23-Jan-2012 |
Argyrios Kyrtzidis <akyrtzi@gmail.com> |
Improve Lexer::getImmediateMacroName to take into account inner macros of macro arguments.
For "MAC1( MAC2(foo) )" and location of 'foo' token it would return "MAC1" instead of "MAC2".
llvm-svn: 14
Improve Lexer::getImmediateMacroName to take into account inner macros of macro arguments.
For "MAC1( MAC2(foo) )" and location of 'foo' token it would return "MAC1" instead of "MAC2".
llvm-svn: 148704
show more ...
|
#
85e7671b |
| 20-Jan-2012 |
Argyrios Kyrtzidis <akyrtzi@gmail.com> |
Enhance Lexer::makeFileCharRange to check for ranges inside a macro argument expansion, in which case it returns a file range in the location where the argument was spelled.
llvm-svn: 148551
|
#
704fe866 |
| 19-Jan-2012 |
Benjamin Kramer <benny.kra@googlemail.com> |
Silence set-but-unused warning.
llvm-svn: 148496
|
#
7838a2bf |
| 19-Jan-2012 |
Argyrios Kyrtzidis <akyrtzi@gmail.com> |
Introduce Lexer::getSourceText() that returns a string for the source that the given source range encompasses.
llvm-svn: 148481
|
#
a99e02d0 |
| 19-Jan-2012 |
Argyrios Kyrtzidis <akyrtzi@gmail.com> |
Introduce Lexer::makeFileCharRange() that accepts a token source range and returns a character range with file locations.
llvm-svn: 148480
|
#
1b07c344 |
| 19-Jan-2012 |
Argyrios Kyrtzidis <akyrtzi@gmail.com> |
For Lexer's isAt[Start/End]OfMacroExpansion add an out parameter for the macro start/end location.
It is commonly needed after calling the function; with this way we avoid recalculating it.
llvm-sv
For Lexer's isAt[Start/End]OfMacroExpansion add an out parameter for the macro start/end location.
It is commonly needed after calling the function; with this way we avoid recalculating it.
llvm-svn: 148479
show more ...
|
#
d169911c |
| 19-Jan-2012 |
Argyrios Kyrtzidis <akyrtzi@gmail.com> |
Add unit testing for Lexer.
llvm-svn: 148478
|