File tree Expand file tree Collapse file tree 2 files changed +11
-0
lines changed Expand file tree Collapse file tree 2 files changed +11
-0
lines changed Original file line number Diff line number Diff line change @@ -374,6 +374,10 @@ struct TargetFinder {
374374 Outer.add (TT->getAsTagDecl (), Flags);
375375 }
376376
377+ void VisitElaboratedType (const ElaboratedType *ET) {
378+ Outer.add (ET->desugar (), Flags);
379+ }
380+
377381 void VisitInjectedClassNameType (const InjectedClassNameType *ICNT) {
378382 Outer.add (ICNT->getDecl (), Flags);
379383 }
Original file line number Diff line number Diff line change @@ -242,6 +242,13 @@ TEST_F(TargetDeclTest, Types) {
242242 )cpp" ;
243243 EXPECT_DECLS (" TypedefTypeLoc" , {" typedef S X" , Rel::Alias},
244244 {" struct S" , Rel::Underlying});
245+ Code = R"cpp(
246+ namespace ns { struct S{}; }
247+ typedef ns::S X;
248+ [[X]] x;
249+ )cpp" ;
250+ EXPECT_DECLS (" TypedefTypeLoc" , {" typedef ns::S X" , Rel::Alias},
251+ {" struct S" , Rel::Underlying});
245252
246253 // FIXME: Auto-completion in a template requires disabling delayed template
247254 // parsing.
You can’t perform that action at this time.
0 commit comments