summaryrefslogtreecommitdiffstats
path: root/clang/test/Index/get-cursor.cpp
Commit message (Collapse)AuthorAgeFilesLines
* When modifying an implicit instantiation with information from an explicit ↵Argyrios Kyrtzidis2013-04-221-0/+13
| | | | | | | | | | one, make sure to reset the "right brace" location. Otherwise the source range of the explicit instantiation may become invalid (begin location will be after the end location). rdar://13706991 llvm-svn: 180070
* [libclang] Fix cursor visitation to not ignore template arguments in ↵Argyrios Kyrtzidis2013-04-051-0/+12
| | | | | | | | out-of-line member functions. rdar://13535645 llvm-svn: 178911
* [libclang/AST] When declaring a local class, don't neglect to set the end ↵Argyrios Kyrtzidis2012-05-161-0/+10
| | | | | | | | | | | location of the DeclStmt node, otherwise libclang will not work for anything inside that class. rdar://10837710 llvm-svn: 156966
* [libclang] Fix infinite loop when doing visitation of an OpaqueValueExpr.Argyrios Kyrtzidis2011-12-031-0/+4
| | | | llvm-svn: 145751
* [libclang] Allow indexing/get-cursor/etc. for the exception variable in a ↵Argyrios Kyrtzidis2011-12-031-0/+9
| | | | | | C++ catch. llvm-svn: 145750
* Add a new libclang API to return a CXCompletionString for an arbitraryDouglas Gregor2011-08-041-0/+12
| | | | | | cursor, from Connor Wakamo! Addresses <rdar://problem/9087798>. llvm-svn: 136911
* [libclang] Avoid having the cursor of an expression replace the declaration ↵Argyrios Kyrtzidis2011-06-271-0/+7
| | | | | | | | | | | | | | | cursor when the expression source range overlaps the declaration range. This can happen for C++ constructor expressions whose range generally include the variable declaration, e.g.: MyCXXClass foo; // Make sure pointing at 'foo' returns a VarDecl cursor. rdar://9124499. llvm-svn: 133930
* When libclang is walking a member access expression, don't walk intoDouglas Gregor2010-11-171-0/+30
| | | | | | | | an implicit "this"; it causes clang_getCursor() to find the implicit "this" expression (which isn't written in the source!) rather than the actual member. llvm-svn: 119516
* Teach clang_getCursorReferenced() that aDouglas Gregor2010-11-051-4/+7
| | | | | | | | CXXConstructorExpr/CXXTemporaryObjectExpr references the constructor it calls. Then, tweak clang_getCursor() to prefer such a call over a type reference to the type being called. llvm-svn: 118297
* Improve source-location information for CXXConstructExpr nodes, byDouglas Gregor2010-11-031-0/+30
ensuring that they cover all of their child nodes. There's still a clang_getCursor()-related issue with CXXFunctionalCastExprs with CXXConstructExprs as children (see FIXME in the test case); I'll look at that separately. llvm-svn: 118132
OpenPOWER on IntegriCloud