Commit 228d525
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 7781e10 commit 228d525
File tree
18 files changed
+214
-162
lines changed- clang
- docs
- include/clang/Sema
- lib/Sema
- test
- CXX
- drs
- temp/temp.arg/temp.arg.type
- SemaCXX
- SemaTemplate
18 files changed
+214
-162
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
168 | 168 | | |
169 | 169 | | |
170 | 170 | | |
| 171 | + | |
| 172 | + | |
171 | 173 | | |
172 | 174 | | |
173 | 175 | | |
| |||
271 | 273 | | |
272 | 274 | | |
273 | 275 | | |
274 | | - | |
| 276 | + | |
275 | 277 | | |
276 | 278 | | |
277 | 279 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1908 | 1908 | | |
1909 | 1909 | | |
1910 | 1910 | | |
1911 | | - | |
| 1911 | + | |
| 1912 | + | |
| 1913 | + | |
| 1914 | + | |
| 1915 | + | |
| 1916 | + | |
| 1917 | + | |
| 1918 | + | |
| 1919 | + | |
| 1920 | + | |
| 1921 | + | |
| 1922 | + | |
| 1923 | + | |
| 1924 | + | |
| 1925 | + | |
| 1926 | + | |
| 1927 | + | |
1912 | 1928 | | |
1913 | 1929 | | |
1914 | 1930 | | |
| |||
13263 | 13279 | | |
13264 | 13280 | | |
13265 | 13281 | | |
13266 | | - | |
| 13282 | + | |
13267 | 13283 | | |
13268 | 13284 | | |
13269 | | - | |
| 13285 | + | |
13270 | 13286 | | |
13271 | 13287 | | |
13272 | 13288 | | |
13273 | | - | |
| 13289 | + | |
13274 | 13290 | | |
| 13291 | + | |
13275 | 13292 | | |
13276 | 13293 | | |
13277 | | - | |
| 13294 | + | |
| 13295 | + | |
| 13296 | + | |
| 13297 | + | |
13278 | 13298 | | |
13279 | 13299 | | |
13280 | 13300 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1655 | 1655 | | |
1656 | 1656 | | |
1657 | 1657 | | |
| 1658 | + | |
| 1659 | + | |
| 1660 | + | |
| 1661 | + | |
1658 | 1662 | | |
1659 | 1663 | | |
1660 | 1664 | | |
1661 | | - | |
1662 | | - | |
| 1665 | + | |
| 1666 | + | |
| 1667 | + | |
| 1668 | + | |
| 1669 | + | |
| 1670 | + | |
| 1671 | + | |
1663 | 1672 | | |
1664 | 1673 | | |
1665 | 1674 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1221 | 1221 | | |
1222 | 1222 | | |
1223 | 1223 | | |
1224 | | - | |
| 1224 | + | |
| 1225 | + | |
1225 | 1226 | | |
1226 | | - | |
1227 | | - | |
| 1227 | + | |
| 1228 | + | |
1228 | 1229 | | |
1229 | 1230 | | |
1230 | 1231 | | |
| |||
| 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