Commit ff34c10
committed
[clang] print correct context for diagnostics suppressed by deduction
This patch makes it so the correct instantiation context is printed
for diagnostics suppessed by template argument deduction.
The context is saved along with the suppressed diagnostic, and
when the declaration they were attached to becomes used, we print
the correct context, instead of whatever context was at this point.1 parent 0caba6c commit ff34c10
File tree
18 files changed
+209
-161
lines changed- clang
- docs
- include/clang/Sema
- lib/Sema
- test
- CXX
- drs
- temp/temp.arg/temp.arg.type
- SemaCXX
- SemaTemplate
18 files changed
+209
-161
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
128 | 128 | | |
129 | 129 | | |
130 | 130 | | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
131 | 134 | | |
132 | 135 | | |
133 | 136 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1909 | 1909 | | |
1910 | 1910 | | |
1911 | 1911 | | |
1912 | | - | |
| 1912 | + | |
| 1913 | + | |
| 1914 | + | |
| 1915 | + | |
| 1916 | + | |
| 1917 | + | |
| 1918 | + | |
| 1919 | + | |
| 1920 | + | |
| 1921 | + | |
| 1922 | + | |
| 1923 | + | |
| 1924 | + | |
1913 | 1925 | | |
1914 | 1926 | | |
1915 | 1927 | | |
| |||
13260 | 13272 | | |
13261 | 13273 | | |
13262 | 13274 | | |
13263 | | - | |
| 13275 | + | |
13264 | 13276 | | |
13265 | 13277 | | |
13266 | | - | |
| 13278 | + | |
13267 | 13279 | | |
13268 | 13280 | | |
13269 | 13281 | | |
13270 | | - | |
| 13282 | + | |
13271 | 13283 | | |
| 13284 | + | |
13272 | 13285 | | |
13273 | 13286 | | |
13274 | | - | |
| 13287 | + | |
| 13288 | + | |
| 13289 | + | |
| 13290 | + | |
13275 | 13291 | | |
13276 | 13292 | | |
13277 | 13293 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1654 | 1654 | | |
1655 | 1655 | | |
1656 | 1656 | | |
| 1657 | + | |
| 1658 | + | |
| 1659 | + | |
| 1660 | + | |
1657 | 1661 | | |
1658 | 1662 | | |
1659 | 1663 | | |
1660 | | - | |
1661 | | - | |
| 1664 | + | |
| 1665 | + | |
| 1666 | + | |
| 1667 | + | |
| 1668 | + | |
| 1669 | + | |
| 1670 | + | |
1662 | 1671 | | |
1663 | 1672 | | |
1664 | 1673 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1217 | 1217 | | |
1218 | 1218 | | |
1219 | 1219 | | |
1220 | | - | |
| 1220 | + | |
1221 | 1221 | | |
1222 | | - | |
1223 | | - | |
| 1222 | + | |
| 1223 | + | |
1224 | 1224 | | |
1225 | 1225 | | |
1226 | 1226 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
225 | 225 | | |
226 | 226 | | |
227 | 227 | | |
228 | | - | |
229 | | - | |
230 | | - | |
| 228 | + | |
| 229 | + | |
| 230 | + | |
| 231 | + | |
231 | 232 | | |
232 | 233 | | |
233 | 234 | | |
| |||
0 commit comments