File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -845,14 +845,14 @@ refInTypeLoc(TypeLoc L, const HeuristicResolver *Resolver) {
845845
846846 void VisitUnresolvedUsingTypeLoc (UnresolvedUsingTypeLoc L) {
847847 Refs.push_back (ReferenceLoc{L.getQualifierLoc (),
848- L.getLocalSourceRange (). getBegin (),
848+ L.getNameLoc (),
849849 /* IsDecl=*/ false ,
850850 {L.getDecl ()}});
851851 }
852852
853853 void VisitUsingTypeLoc (UsingTypeLoc L) {
854854 Refs.push_back (ReferenceLoc{L.getQualifierLoc (),
855- L.getLocalSourceRange (). getBegin (),
855+ L.getNameLoc (),
856856 /* IsDecl=*/ false ,
857857 {L.getDecl ()}});
858858 }
Original file line number Diff line number Diff line change @@ -1100,7 +1100,13 @@ sizeof...($TemplateParameter[[Elements]]);
11001100 struct $Class_def[[Inner]] {};
11011101 };
11021102 using $Typedef_decl[[Alias]] = void ($Class[[Outer]]::$Class[[Inner]]:: *)();
1103- )cpp" };
1103+ )cpp" ,
1104+ // Forwarded typedef
1105+ R"cpp(
1106+ using $Primitive_decl[[MyInt]] = int;
1107+ namespace $Namespace_decl[[N]] { using ::MyInt; }
1108+ using $Primitive_decl[[X]] = $Namespace[[N]]::$Primitive[[MyInt]];
1109+ )cpp" };
11041110 for (const auto &TestCase : TestCases)
11051111 // Mask off scope modifiers to keep the tests manageable.
11061112 // They're tested separately.
You can’t perform that action at this time.
0 commit comments