[clang] [clang][ssaf] Add UnsafeBufferUsage summary extractor (PR #182941)
Jan Korous via cfe-commits
cfe-commits at lists.llvm.org
Tue Feb 24 10:54:30 PST 2026
================
@@ -201,7 +201,7 @@ bool anyConflict(const llvm::SmallVectorImpl<FixItHint> &FixIts,
const SourceManager &SM);
} // namespace internal
-std::set<const Expr *> findUnsafePointers(const FunctionDecl *FD);
+std::set<const Expr *> findUnsafePointers(const Decl *FD);
----------------
jkorous-apple wrote:
We should cover cases where the contributing entity is not a function.
`int * my_global_var = get_some_ptr() + 5; `
or
`struct Foo { int * m_ptr = *some_global_ptr_to_ptr + 10; }
https://github.com/llvm/llvm-project/pull/182941
More information about the cfe-commits
mailing list