[clang] [Clang] Added clang diagnostic when snprintf/vsnprintf uses sizeof(de… (PR #170637)
via cfe-commits
cfe-commits at lists.llvm.org
Tue Dec 9 07:32:16 PST 2025
================
@@ -1140,6 +1139,37 @@ static bool ProcessFormatStringLiteral(const Expr *FormatExpr,
return false;
}
+static const UnaryExprOrTypeTraitExpr *getAsSizeOfExpr(const Expr *E) {
----------------
BgZun wrote:
In my newest commit I moved the diagnostics from CheckMemaccessArguments to its own function. Then used it here
https://github.com/llvm/llvm-project/pull/170637
More information about the cfe-commits
mailing list