[clang] [Clang] Added clang diagnostic when snprintf/vsnprintf uses sizeof(de… (PR #170637)

via cfe-commits cfe-commits at lists.llvm.org
Thu Jan 8 07:13:58 PST 2026


================
@@ -3043,6 +3043,9 @@ class Sema final : public SemaBase {
   void CheckMemaccessArguments(const CallExpr *Call, unsigned BId,
                                IdentifierInfo *FnName);
 
+  bool CheckSizeOfExpression(const Expr *SizeOfArg, const Expr *Dest,
----------------
BgZun wrote:

Makes sense. I uploaded the name change in my latest commit

https://github.com/llvm/llvm-project/pull/170637


More information about the cfe-commits mailing list