================
@@ -441,6 +423,19 @@ class LifetimeSafetySemaHelperImpl : public 
LifetimeSafetySemaHelper {
   }
 
 private:
+  void reportInvalidationNote(const Expr *InvalidationExpr,
+                              StringRef InvalidatedSubject) {
+    if (isa<CXXDeleteExpr>(InvalidationExpr)) {
----------------
NeKon69 wrote:

Ok actually, one more note, can you do something something similar to what we 
did before
```cpp
auto Diag = isa<CXXDeleteExpr>(InvalidationExpr)
                                ? diag::note_lifetime_safety_freed_here
                                : diag::note_lifetime_safety_invalidated_here;
```
This will avoid duplicating the code here.

https://github.com/llvm/llvm-project/pull/204900
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to