[clang] [clang][sema] Add nonnull attribute to builtin format functions (PR #158626)
Erich Keane via cfe-commits
cfe-commits at lists.llvm.org
Mon Sep 15 11:03:04 PDT 2025
================
@@ -392,6 +392,10 @@ class Context {
bool performsCallback(unsigned ID,
llvm::SmallVectorImpl<int> &Encoding) const;
+ /// Return true if this builtin has parameters at fixed positions
+ /// that must be non-null.
+ bool IsNonNull(unsigned ID, llvm::SmallVectorImpl<int> &Indxs) const;
----------------
erichkeane wrote:
Also, should the `SmallVector` take `unsigned`s instead?
https://github.com/llvm/llvm-project/pull/158626
More information about the cfe-commits
mailing list