================
@@ -723,6 +723,17 @@ void FactsGenerator::handleInvalidatingCall(const Expr
*Call,
ThisList->getOuterOriginID(), Call));
}
+void FactsGenerator::handleImplicitObjectFieldUses(const Expr *Call,
+ const FunctionDecl *FD) {
+ const auto *MD = dyn_cast<CXXMethodDecl>(FD);
+ if (!MD || !MD->isInstance())
+ return;
+
+ for (const auto *Field : MD->getParent()->fields())
----------------
usx95 wrote:
Is the direct use detected ?
```cpp
struct X {
int* x;
};
struct Y : X {
int* y;
int foo();
void bar() {
{
int a;
x = &a;
}
(void)x; // use-after-scope!
}
};
```
https://github.com/llvm/llvm-project/pull/191731
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits