Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Basic: import IntrusiveRefCntPtr<> into clang namespace | Dylan Noblesmith | 2012-02-20 | 1 | -2/+2 |
| | | | | | | | The class name is long enough without the llvm:: added. Also bring in RefCountedBase and RefCountedBaseVPTR. llvm-svn: 150958 | ||||
* | Change Lexer::makeFileCharRange() to have it accept a CharSourceRange | Argyrios Kyrtzidis | 2012-02-03 | 1 | -11/+13 |
| | | | | | | | instead of a SourceRange, and handle the case where the range is a char (not token) range. llvm-svn: 149677 | ||||
* | Thread a TargetInfo through to the module map; we'll need it for | Douglas Gregor | 2012-01-30 | 1 | -1/+1 |
| | | | | | | target-specific module requirements. llvm-svn: 149224 | ||||
* | Improve Lexer::getImmediateMacroName to take into account inner macros | Argyrios Kyrtzidis | 2012-01-23 | 1 | -2/+21 |
| | | | | | | | | | of macro arguments. For "MAC1( MAC2(foo) )" and location of 'foo' token it would return "MAC1" instead of "MAC2". llvm-svn: 148704 | ||||
* | Enhance Lexer::makeFileCharRange to check for ranges inside a macro argument | Argyrios Kyrtzidis | 2012-01-20 | 1 | -2/+34 |
| | | | | | | | expansion, in which case it returns a file range in the location where the argument was spelled. llvm-svn: 148551 | ||||
* | Silence set-but-unused warning. | Benjamin Kramer | 2012-01-19 | 1 | -1/+1 |
| | | | | llvm-svn: 148496 | ||||
* | Introduce Lexer::getSourceText() that returns a string for the source | Argyrios Kyrtzidis | 2012-01-19 | 1 | -0/+5 |
| | | | | | | that the given source range encompasses. llvm-svn: 148481 | ||||
* | Introduce Lexer::makeFileCharRange() that accepts a token source range | Argyrios Kyrtzidis | 2012-01-19 | 1 | -3/+19 |
| | | | | | | and returns a character range with file locations. llvm-svn: 148480 | ||||
* | For Lexer's isAt[Start/End]OfMacroExpansion add an out parameter for the macro | Argyrios Kyrtzidis | 2012-01-19 | 1 | -2/+5 |
| | | | | | | | | | start/end location. It is commonly needed after calling the function; with this way we avoid recalculating it. llvm-svn: 148479 | ||||
* | Add unit testing for Lexer. | Argyrios Kyrtzidis | 2012-01-19 | 1 | -0/+100 |
llvm-svn: 148478 |