Commit Graph

5 Commits

Author SHA1 Message Date
Ben Langmuir 1cfec5f606 [index] Add indexing for unresolved-using declarations
In dependent contexts we end up referencing these, so make sure they
have USRs, and have their declarations indexed. For the most part they
behave like typedefs, but we also need to worry about having multiple
using declarations with the same "name".

rdar://problem/33883650

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@311053 91177308-0d34-0410-b5e6-96231b3b80d8
2017-08-16 23:12:21 +00:00
Alex Lorenz b7f27dbfdd [index] Avoid one more crash caused by infinite recursion that happens when
looking up a dependent name in a record that derives from itself

rdar://32273000

Differential Revision: https://reviews.llvm.org/D33324


git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@303366 91177308-0d34-0410-b5e6-96231b3b80d8
2017-05-18 18:06:07 +00:00
Alex Lorenz 3f318c863b [index] Avoid another crash that happens when looking up a dependent name
in a record that has a base without a definition

rdar://32224197


git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@303192 91177308-0d34-0410-b5e6-96231b3b80d8
2017-05-16 17:33:17 +00:00
Alex Lorenz 7c14490d8a [index] Avoid a crash that happens when looking up a dependent name
in a record that has no definition

rdar://32194921


git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@303045 91177308-0d34-0410-b5e6-96231b3b80d8
2017-05-15 10:20:39 +00:00
Alex Lorenz 35fdd442cf [index] Index simple dependent declaration references
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


git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@302632 91177308-0d34-0410-b5e6-96231b3b80d8
2017-05-10 09:47:41 +00:00