[clang] [Clang][diagnostics] Fix structured binding shadows template param loc (PR #129116)
Amr Hesham via cfe-commits
cfe-commits at lists.llvm.org
Fri Feb 28 10:38:01 PST 2025
================
@@ -162,3 +162,10 @@ struct A {
};
A<0>::B a;
}
+
+template <typename T> void shadow() { // expected-note{{template parameter is declared here}}
----------------
AmrDeveloper wrote:
You mean something like 'template <int T> void shadow2() { ... }` or creating a sample with function call
https://github.com/llvm/llvm-project/pull/129116
More information about the cfe-commits
mailing list