[PATCH] D157477: [clang-repl] Additional test for disambiguation of templates
This revision was landed with ongoing or failed builds. This revision was automatically updated to reflect the committed changes. Closed by commit rGda555f750ab2: [clang-repl] Additional test for disambiguation of templates (authored by Hahnfeld). Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTION https://reviews.llvm.org/D157477/new/ https://reviews.llvm.org/D157477 Files: clang/test/Interpreter/disambiguate-decl-stmt.cpp Index: clang/test/Interpreter/disambiguate-decl-stmt.cpp === --- clang/test/Interpreter/disambiguate-decl-stmt.cpp +++ clang/test/Interpreter/disambiguate-decl-stmt.cpp @@ -11,6 +11,10 @@ namespace ns1 { template void tmplt(T &) {}} int arg_tmplt = 12; ns1::tmplt(arg_tmplt); +namespace ns2 { template struct S {}; } +namespace ns3 { struct A { public: using S = int; }; } +namespace ns3 { A::S f(A::S a); } + // ParseStatementOrDeclaration returns multiple statements. #ifdef MS int g_bFlag = 1; Index: clang/test/Interpreter/disambiguate-decl-stmt.cpp === --- clang/test/Interpreter/disambiguate-decl-stmt.cpp +++ clang/test/Interpreter/disambiguate-decl-stmt.cpp @@ -11,6 +11,10 @@ namespace ns1 { template void tmplt(T &) {}} int arg_tmplt = 12; ns1::tmplt(arg_tmplt); +namespace ns2 { template struct S {}; } +namespace ns3 { struct A { public: using S = int; }; } +namespace ns3 { A::S f(A::S a); } + // ParseStatementOrDeclaration returns multiple statements. #ifdef MS int g_bFlag = 1; ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
[PATCH] D157477: [clang-repl] Additional test for disambiguation of templates
Hahnfeld added inline comments. Comment at: clang/test/Interpreter/namespace-template-disambiguate.cpp:7 +namespace NS2 { struct A { public: using S = int; }; } +namespace NS2 { A::S f(A::S a); } + v.g.vassilev wrote: > It might be a good idea to add this test to `disambiguate-decl-stmt.cpp` > where we track these things. done CHANGES SINCE LAST ACTION https://reviews.llvm.org/D157477/new/ https://reviews.llvm.org/D157477 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
[PATCH] D157477: [clang-repl] Additional test for disambiguation of templates
Hahnfeld updated this revision to Diff 548558. Hahnfeld retitled this revision from "[clang-repl] Add test for disambiguation of templates" to "[clang-repl] Additional test for disambiguation of templates". Hahnfeld edited the summary of this revision. CHANGES SINCE LAST ACTION https://reviews.llvm.org/D157477/new/ https://reviews.llvm.org/D157477 Files: clang/test/Interpreter/disambiguate-decl-stmt.cpp Index: clang/test/Interpreter/disambiguate-decl-stmt.cpp === --- clang/test/Interpreter/disambiguate-decl-stmt.cpp +++ clang/test/Interpreter/disambiguate-decl-stmt.cpp @@ -11,6 +11,10 @@ namespace ns1 { template void tmplt(T &) {}} int arg_tmplt = 12; ns1::tmplt(arg_tmplt); +namespace ns2 { template struct S {}; } +namespace ns3 { struct A { public: using S = int; }; } +namespace ns3 { A::S f(A::S a); } + // ParseStatementOrDeclaration returns multiple statements. #ifdef MS int g_bFlag = 1; Index: clang/test/Interpreter/disambiguate-decl-stmt.cpp === --- clang/test/Interpreter/disambiguate-decl-stmt.cpp +++ clang/test/Interpreter/disambiguate-decl-stmt.cpp @@ -11,6 +11,10 @@ namespace ns1 { template void tmplt(T &) {}} int arg_tmplt = 12; ns1::tmplt(arg_tmplt); +namespace ns2 { template struct S {}; } +namespace ns3 { struct A { public: using S = int; }; } +namespace ns3 { A::S f(A::S a); } + // ParseStatementOrDeclaration returns multiple statements. #ifdef MS int g_bFlag = 1; ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits