aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/Index/IndexBody.cpp
AgeCommit message (Collapse)AuthorFilesLines
2017-07-03[index] Remove 'implicit' role for message sends in implicit ObjCAlex Lorenz1-1/+25
property references rdar://32375673 llvm-svn: 307016
2017-05-24[index] The references to explicit class properties should be recordedAlex Lorenz1-0/+12
rdar://32376363 llvm-svn: 303751
2017-05-18[index] Record references to class receivers used in property referencesAlex Lorenz1-0/+3
rdar://32250025 llvm-svn: 303343
2017-05-15[index] Avoid a crash that happens when looking up a dependent nameAlex Lorenz1-0/+3
in a record that has no definition rdar://32194921 llvm-svn: 303045
2017-05-10[index] Index simple dependent declaration referencesAlex Lorenz1-0/+44
This commit implements basic support for indexing of dependent declaration references. Now the indexer tries to find a suitable match in the base template for a dependent member ref/decl ref/dependent type. rdar://29158210 Differential Revision: https://reviews.llvm.org/D32972 llvm-svn: 302632
2017-03-16[index/AST] Add references for ObjC getter=/setter= property attributes and ↵Argyrios Kyrtzidis1-3/+11
related property getter/setter role fixes This enhances the AST to keep track of locations of the names in those ObjC property attributes, and reports them for indexing. Patch by Nathan Hawes! https://reviews.llvm.org/D30907 llvm-svn: 297972
2017-02-26[index] Add 'Parameter' symbol kind and 'Local' symbol property to ↵Argyrios Kyrtzidis1-1/+1
distinguish function-local symbols Parameters have a 'child' relation to their function/method. Also add an option '-include-locals' to 'c-index-test core' to enable indexing of function-local symbols. Original patch from Nathan Hawes with some changes by me. https://reviews.llvm.org/D30304 llvm-svn: 296282
2016-11-01[index] Avoid using a RecursiveASTVisitor for SyntacticFormIndexer and ↵Argyrios Kyrtzidis1-43/+14
iterate the DesignatedInitExprs of the InitListExpr directly. This is more efficient, as per feedback by Richard. llvm-svn: 285666
2016-10-31[index] Fix repeated visitation of the same InitListExpr for indexing.Argyrios Kyrtzidis1-0/+17
It was visited multiple times unnecessarily. rdar://28985038 llvm-svn: 285647
2016-08-17Visit lambda capture inits from RecursiveASTVisitor::TraverseLambdaCapture().Martin Bohme1-1/+2
Summary: rL277342 made RecursiveASTVisitor visit lambda capture initialization expressions (these are the Exprs in LambdaExpr::capture_inits()). jdennett identified two issues with rL277342 (see comments there for details): - It visits initialization expressions for implicit lambda captures, even if shouldVisitImplicitCode() returns false. - It visits initialization expressions for init captures twice (because these were already traveresed in TraverseLambdaCapture() before rL277342) This patch fixes these issues and moves the code for traversing initialization expressions into TraverseLambdaCapture(). This patch also makes two changes required for the tests: - It adds Lang_CXX14 to the Language enum in TestVisitor. - It adds a parameter to ExpectedLocationVisitor::ExpectMatch() that specifies the number of times a match is expected to be seen. Reviewers: klimek, jdennett, alexfh Subscribers: cfe-commits Differential Revision: https://reviews.llvm.org/D23204 llvm-svn: 278933
2016-08-03[index] Fix crash with indexing designated init expressions inside templates.Argyrios Kyrtzidis1-1/+1
rdar://27452869 llvm-svn: 277570
2016-06-23Use ranges to concisely express iterationDavid Majnemer1-12/+7
No functional change is intended, this should just clean things up a little. llvm-svn: 273522
2016-03-01[index] Fix issue where data visitation was disabled with C++ operator call ↵Argyrios Kyrtzidis1-2/+2
expressions, during indexing. llvm-svn: 262290
2016-02-29[index] Add a caller relation for a call reference.Argyrios Kyrtzidis1-16/+29
llvm-svn: 262207
2016-02-13[RecursiveASTVisitor] Introduce dataTraverseStmtPre()/dataTraverseStmtPost() ↵Argyrios Kyrtzidis1-3/+7
to allow clients to do before/after actions during data recursive visitation. This should fix the asan bot that hits stack overflow in a couple of test/Index tests. llvm-svn: 260785
2016-02-12[libclang] Separate the underlying indexing functionality of libclang and ↵Argyrios Kyrtzidis1-0/+347
introduce it into the clangIndex library. It is a general goodness for libclang itself to mostly be a wrapper of functionality provided by the libraries. llvm-svn: 260760