-
Notifications
You must be signed in to change notification settings - Fork 243
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(cxx_indexer): Index dependent template specialization types.
This should help us on the path to better handling e.g. type_traits and associates, which in turn should help us find dependent references. At the moment the indexer does not emit a node for template T::S; this is left for future work.
- Loading branch information
Showing
4 changed files
with
59 additions
and
12 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
9 changes: 9 additions & 0 deletions
9
kythe/cxx/indexer/cxx/testdata/template/template_dependent_template_specialization_type.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,9 @@ | ||
// We index dependent template specialization types. | ||
//- @U defines/binding TvarU | ||
template <typename T, typename U> | ||
//- @A defines/binding AliasA | ||
using A = T::template S<U>; | ||
//- AliasA aliases TAppTSU | ||
//- TAppTSU.node/kind tapp | ||
//- TAppTSU param.0 _DependentTS // Dependent struct not yet indexed. | ||
//- TAppTSU param.1 TvarU |