Commit fedc982
authored
[clang][Diagnostics] Add source range to uninitialized diagnostics (#65896)
Before:
```
array.cpp:319:10: note: read of uninitialized object is not allowed in a constant expression
319 | return aaa;
| ^
```
After:
```
array.cpp:319:10: note: read of uninitialized object is not allowed in a constant expression
319 | return aaa;
| ^~~
```1 parent 8a58407 commit fedc982
File tree
4 files changed
+17
-5
lines changed- clang
- lib/AST
- Interp
- test/Misc
4 files changed
+17
-5
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3711 | 3711 | | |
3712 | 3712 | | |
3713 | 3713 | | |
3714 | | - | |
| 3714 | + | |
| 3715 | + | |
3715 | 3716 | | |
3716 | 3717 | | |
3717 | 3718 | | |
| |||
4443 | 4444 | | |
4444 | 4445 | | |
4445 | 4446 | | |
4446 | | - | |
| 4447 | + | |
| 4448 | + | |
4447 | 4449 | | |
4448 | 4450 | | |
4449 | 4451 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
261 | 261 | | |
262 | 262 | | |
263 | 263 | | |
264 | | - | |
265 | | - | |
266 | | - | |
| 264 | + | |
| 265 | + | |
267 | 266 | | |
268 | 267 | | |
269 | 268 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
230 | 230 | | |
231 | 231 | | |
232 | 232 | | |
| 233 | + | |
| 234 | + | |
| 235 | + | |
233 | 236 | | |
234 | 237 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
41 | 41 | | |
42 | 42 | | |
43 | 43 | | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
0 commit comments