Commit adde9f1
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 4eab219 commit adde9f1
File tree
18 files changed
+208
-161
lines changed- clang
- docs
- include/clang/Sema
- lib/Sema
- test
- CXX
- drs
- temp/temp.arg/temp.arg.type
- SemaCXX
- SemaTemplate
18 files changed
+208
-161
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
146 | 146 | | |
147 | 147 | | |
148 | 148 | | |
| 149 | + | |
| 150 | + | |
149 | 151 | | |
150 | 152 | | |
151 | 153 | | |
| |||
| 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 | | |
| |||
13263 | 13275 | | |
13264 | 13276 | | |
13265 | 13277 | | |
13266 | | - | |
| 13278 | + | |
13267 | 13279 | | |
13268 | 13280 | | |
13269 | | - | |
| 13281 | + | |
13270 | 13282 | | |
13271 | 13283 | | |
13272 | 13284 | | |
13273 | | - | |
| 13285 | + | |
13274 | 13286 | | |
| 13287 | + | |
13275 | 13288 | | |
13276 | 13289 | | |
13277 | | - | |
| 13290 | + | |
| 13291 | + | |
| 13292 | + | |
| 13293 | + | |
13278 | 13294 | | |
13279 | 13295 | | |
13280 | 13296 | | |
| |||
| 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 | |
|---|---|---|---|
| |||
1216 | 1216 | | |
1217 | 1217 | | |
1218 | 1218 | | |
1219 | | - | |
| 1219 | + | |
1220 | 1220 | | |
1221 | | - | |
1222 | | - | |
| 1221 | + | |
| 1222 | + | |
1223 | 1223 | | |
1224 | 1224 | | |
1225 | 1225 | | |
| |||
| 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