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): emit ref to class from ctor (#4400)
* fix(cxx_indexer): emit ref to class from ctor * fix(cxx_indexer): don't add TypeSourceInfo for implicit constructors * chore: remove debug logging statement
- Loading branch information
Showing
4 changed files
with
53 additions
and
5 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
15 changes: 15 additions & 0 deletions
15
kythe/cxx/indexer/cxx/testdata/rec/rec_ctor_dtor_ref_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,15 @@ | ||
// Tests that class constructor and destructor reference the class. | ||
|
||
//- @C defines/binding CStruct | ||
struct C { | ||
//- @C ref CStruct | ||
C(); | ||
//- @C ref CStruct | ||
explicit C(int); | ||
//- @C ref CStruct | ||
~C(); | ||
}; | ||
|
||
//- @#0C ref CStruct | ||
//- @#1C ref CStruct | ||
C::C() {} |