[clang] [Lifetime Safety] Highlight lifetimebound calls in alias chain diagnostics (PR #206337)
via cfe-commits
cfe-commits at lists.llvm.org
Mon Jun 29 03:44:46 PDT 2026
================
@@ -49,6 +49,12 @@ enum class WarningScope {
IntraTU // For warnings on functions local to a Translation Unit.
};
+struct LifetimeSafetyAliasChainEntry {
----------------
iitianpushkar wrote:
Expr *E/*Call points the same call expression, so, i am thinking to make the following changes :
```cpp
struct LifetimeBoundInfo {
const ParmVarDecl *Param = nullptr;
bool IsImplicitObject = false;
};
struct LifetimeSafetyAliasChainEntry {
const Expr *E = nullptr;
std::optional<LifetimeBoundInfo> LifetimeBound;
};
```
Will this be a good idea for deduplication (atleast for Expr) ?
https://github.com/llvm/llvm-project/pull/206337
More information about the cfe-commits
mailing list