-
Notifications
You must be signed in to change notification settings - Fork 253
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(cxx_indexer): dereference member templates (#5381)
* fix(cxx_indexer): dereference member templates This PR also cleans up BuildNodeIdForTemplateName, since it no longer has to dereference member templates itself. * fix: address comments
- Loading branch information
Showing
6 changed files
with
132 additions
and
27 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
12 changes: 12 additions & 0 deletions
12
kythe/cxx/indexer/cxx/testdata/template/template_alias_tvar_alias.cc
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
template <typename T2> | ||
class C { | ||
public: | ||
template <typename T> | ||
//- @A defines/binding ADef | ||
using A = T; | ||
}; | ||
|
||
void g() { | ||
//- @A ref ADef | ||
C<int>::A<int> x; | ||
} |
12 changes: 12 additions & 0 deletions
12
kythe/cxx/indexer/cxx/testdata/template/template_alias_tvar_class.cc
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
template <typename T2> | ||
class C { | ||
public: | ||
template <typename T> | ||
//- @S defines/binding SDef | ||
struct S {}; | ||
}; | ||
|
||
void g() { | ||
//- @S ref SDef | ||
C<int>::S<int> s; | ||
} |