llvm-project
a91c7395 - [Lifetime Safety] Name operator calls in alias-chain diagnostics (#221803)

Commit
71 days ago
[Lifetime Safety] Name operator calls in alias-chain diagnostics (#221803) This updates Lifetime Safety alias-chain diagnostics to identify overloaded operator and conversion calls instead of describing them generically as an `expression`. Previously, these calls were reported as `expression aliases the storage of ...`, which could make it unclear which operation introduced the alias. The diagnostic now reports the callee using the existing diagnostic name printer, producing descriptions such as: - `result of call to 'operator->'` - `result of call to 'operator()'` - `result of call to 'operator basic_string_view'` Template arguments are preserved for operator function-template specializations. For example: - `result of call to 'operator+<const int>'` - `result of call to 'operator-<__gnu_cxx::basic_iterator<const int>>'` This makes each aliasing step explicit and identifies the particular call responsible for propagating the alias. References to [#220248#discussion_r3905817437](https://github.com/llvm/llvm-project/pull/220248#discussion_r3905817437)
Author
Parents
Loading