diff options
author | Jan Voung <jvoung@google.com> | 2025-03-17 16:04:15 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-03-17 16:04:15 -0400 |
commit | 6f659b0060d615435ceec53de407a8084656bc98 (patch) | |
tree | dd93f075abf488a0b9634016f9109f14bd9dbc6a /clang/lib/CodeGen/CodeGenFunction.cpp | |
parent | d2e1e3034801da85c495adfffadf1de87f8b4734 (diff) | |
download | llvm-6f659b0060d615435ceec53de407a8084656bc98.zip llvm-6f659b0060d615435ceec53de407a8084656bc98.tar.gz llvm-6f659b0060d615435ceec53de407a8084656bc98.tar.bz2 |
[clang][dataflow] For bugprone-unchecked-optional-access report range (#131055)
Report the range in diagnostics, in addition to the location
in case the range helps disambiguate a little in chained `->`
expressions.
```
b->a->f->x = 1;
^~~~~~~
```
instead of just:
```
b->a->f->x = 1;
^
```
As a followup we should probably also report the location/range
of an `->` if that operator is used. Like:
```
b->a->f->x = 1;
^~
```
Diffstat (limited to 'clang/lib/CodeGen/CodeGenFunction.cpp')
0 files changed, 0 insertions, 0 deletions