@@ -531,13 +531,15 @@ TEST(ClangMove, DumpDecls) {
531
531
" void f2();\n "
532
532
" } // namespace a\n "
533
533
" \n "
534
+ " class ForwardClass;\n "
534
535
" namespace a {\n "
535
536
" namespace b {\n "
536
537
" class Move1 { public : void f(); };\n "
537
538
" void f() {}\n "
538
539
" enum E1 { Green };\n "
539
540
" enum class E2 { Red };\n "
540
541
" typedef int Int2;\n "
542
+ " typedef A<double> A_d;"
541
543
" using Int = int;\n "
542
544
" extern int kGlobalInt;\n "
543
545
" extern const char* const kGlobalStr;\n "
@@ -552,11 +554,20 @@ TEST(ClangMove, DumpDecls) {
552
554
Spec.NewCC = " new_foo.cc" ;
553
555
DeclarationReporter Reporter;
554
556
std::set<DeclarationReporter::DeclarationPair> ExpectedDeclarations = {
555
- {" A" , " Class" }, {" B" , " Class" }, {" a::Move1" , " Class" },
556
- {" a::f1" , " Function" }, {" a::f2" , " Function" }, {" a::b::Move1" , " Class" },
557
- {" a::b::f" , " Function" }, {" a::b::E1" , " Enum" }, {" a::b::E2" , " Enum" },
558
- {" a::b::Int2" , " TypeAlias" }, {" a::b::Int" , " TypeAlias" },
559
- {" a::b::kGlobalInt" , " Variable" }, {" a::b::kGlobalStr" , " Variable" }};
557
+ {" A" , " Class" },
558
+ {" B" , " Class" },
559
+ {" a::Move1" , " Class" },
560
+ {" a::f1" , " Function" },
561
+ {" a::f2" , " Function" },
562
+ {" a::b::Move1" , " Class" },
563
+ {" a::b::f" , " Function" },
564
+ {" a::b::E1" , " Enum" },
565
+ {" a::b::E2" , " Enum" },
566
+ {" a::b::Int2" , " TypeAlias" },
567
+ {" a::b::A_d" , " TypeAlias" },
568
+ {" a::b::Int" , " TypeAlias" },
569
+ {" a::b::kGlobalInt" , " Variable" },
570
+ {" a::b::kGlobalStr" , " Variable" }};
560
571
runClangMoveOnCode (Spec, TestHeader, TestCode, &Reporter);
561
572
std::set<DeclarationReporter::DeclarationPair> Results;
562
573
for (const auto & DelPair : Reporter.getDeclarationList ())
0 commit comments