summaryrefslogtreecommitdiffstats
path: root/clang/test/Index/annotate-tokens.c
Commit message (Collapse)AuthorAgeFilesLines
* Rework clang_annotateTokens() to annotate tokens with information that more ↵Ted Kremenek2010-05-051-39/+39
| | | | | | | | | closely matches clang_getCursor(). Tokens are now annotated with the cursor (for the matching AST element) that most closely encompasses that token. llvm-svn: 103064
* Robustify SourceManager::getLocation(), so that it returns anDouglas Gregor2010-02-271-1/+2
| | | | | | | | | end-of-line source location when given a column number beyond the length of the line, or an end-of-file source location when given a line number beyond the length of the file. Previously, we would return an invalid location. llvm-svn: 97299
* c-index-test: Unify and always print half-open extents.Daniel Dunbar2010-02-141-51/+52
| | | | llvm-svn: 96160
* Implement clang_annotateTokens(), which associates cursors with eachDouglas Gregor2010-01-261-12/+12
| | | | | | | of the tokens within a raw token stream. This does not even attempt to handle macros yet. llvm-svn: 94561
* Introduce a CIndex API for lexing the raw tokens within a given sourceDouglas Gregor2010-01-261-0/+63
range. The token-annotation function does nothing, yet. llvm-svn: 94551
OpenPOWER on IntegriCloud