================
@@ -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
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to