[clang] [LifetimeSafety] Handle escape through function call (PR #186126)
Gábor Horváth via cfe-commits
cfe-commits at lists.llvm.org
Wed Apr 1 02:54:29 PDT 2026
================
@@ -232,6 +225,34 @@ class GlobalEscapeFact : public OriginEscapesFact {
const OriginManager &OM) const override;
};
+/// Represents escape of an origin through a function call.
+/// Example:
+/// void f(int *i);
+/// void g(int *j[[clang::noescape]]) {f(j)};
----------------
Xazax-hun wrote:
Nit: format the code snippet the same as clang-format would (with respect to where spaces go).
https://github.com/llvm/llvm-project/pull/186126
More information about the cfe-commits
mailing list