summaryrefslogtreecommitdiffstats
path: root/clang/test/Index/find-defs.c
Commit message (Collapse)AuthorAgeFilesLines
* Teach CIndex's cursor visitor to restrict its traversal to a specificDouglas Gregor2010-01-221-18/+0
| | | | | | | | | | | | | | region of interest (if provided). Implement clang_getCursor() in terms of this traversal rather than using the Index library; the unified cursor visitor is more complete, and will be The Way Forward. Minor other tweaks needed to make this work: - Extend Preprocessor::getLocForEndOfToken() to accept an offset from the end, making it easy to move to the last character in the token (rather than just past the end of the token). - In Lexer::MeasureTokenLength(), the length of whitespace is zero. llvm-svn: 94200
* Update tests to use %clang_cc1 instead of 'clang-cc' or 'clang -cc1'.Daniel Dunbar2009-12-151-2/+2
| | | | | | | | | - This is designed to make it obvious that %clang_cc1 is a "test variable" which is substituted. It is '%clang_cc1' instead of '%clang -cc1' because it can be useful to redefine what gets run as 'clang -cc1' (for example, to set a default target). llvm-svn: 91446
* Move test/Index input files into a sub directory (not scanned as tests).Daniel Dunbar2009-11-081-6/+6
| | | | llvm-svn: 86431
* Eliminate &&s in tests.Daniel Dunbar2009-11-081-13/+13
| | | | | | - 'for i in $(find . -type f); do sed -e 's#\(RUN:.*[^ ]\) *&& *$#\1#g' $i | FileUpdate $i; done', for the curious. llvm-svn: 86430
* Add -fblocks.Daniel Dunbar2009-07-301-2/+2
| | | | llvm-svn: 77571
* Use temporary output to avoid running index-test with the same commands ↵Argyrios Kyrtzidis2009-07-211-8/+16
| | | | | | multiple times. llvm-svn: 76513
* Having tests that depend on previously created files is bad idea. Fix them ↵Argyrios Kyrtzidis2009-07-061-8/+10
| | | | | | to be self-sufficient. llvm-svn: 74810
* Make use of the Index library through the index-test tool.Argyrios Kyrtzidis2009-07-051-0/+8
'index-test' is now able to provide additional info for a Decl, through multiple AST files: -Find declarations -Find definitions -Find references llvm-svn: 74803
OpenPOWER on IntegriCloud