summaryrefslogtreecommitdiffstats
path: root/clang/test/Index/annotate-tokens.cpp
Commit message (Collapse)AuthorAgeFilesLines
* [libclang] For CXXOperatorCallExprs, give a valid source location to the ↵Argyrios Kyrtzidis2012-02-081-3/+3
| | | | | | | | | | DeclRefExpr that is referencing the member function, so we can index the referenced function. Fixes rdar://10762375&10324915 & http://llvm.org/PR11192 llvm-svn: 150033
* Expose more statement, expression, and declaration kinds in libclang,Douglas Gregor2011-10-051-16/+16
| | | | | | from Manuel Holtgrewe! llvm-svn: 141200
* [libclang] Avoid having the cursor of an expression "overwrite" the ↵Argyrios Kyrtzidis2011-06-271-2/+6
| | | | | | | | | | | | | | | annotation of the variable declaration that it belongs to. This can happen for C++ constructor expressions whose range generally include the variable declaration, e.g.: MyCXXClass foo; // Make sure we don't annotate 'foo' as a CallExpr cursor. rdar://9124499. llvm-svn: 133929
* Apply a bug-fix patch from Marcin Kowalczyk to the source locations forChandler Carruth2011-04-021-1/+88
| | | | | | | | | | | a couple of operator overloads which form interesting expressions in the AST. I added test cases for both bugs with the c-index-test's token annotation feature. Also, thanks to John McCall for confirming that this is the correct solution. llvm-svn: 128768
* add missing newlines at end of file.Chris Lattner2010-12-211-1/+1
| | | | llvm-svn: 122309
* Fix bug where annotate tokens was not working for BinaryTypeTraitExpr.Francois Pichet2010-12-081-2/+10
| | | | | | CIndex's EnqueueVisitor must visit elements backward apparently. llvm-svn: 121247
* Fix test that didn't really test anything.Francois Pichet2010-12-081-2/+2
| | | | llvm-svn: 121246
* Visit the children of CXXOperatorCallExprs in source order withinDouglas Gregor2010-07-291-0/+23
libclang, so that clang_annotateTokens() doesn't get confused and miss annotations. llvm-svn: 109706
OpenPOWER on IntegriCloud