[clang] [-Wunsafe-buffer-usage] Support safe patterns of "%.*s" in printf functions (PR #145862)

2025-07-22 Thread Aviral Goel via cfe-commits
@@ -743,28 +808,81 @@ static bool hasUnsafeFormatOrSArg(const CallExpr *Call, const Expr *&UnsafeArg, const CallExpr *Call; unsigned FmtArgIdx; const Expr *&UnsafeArg; +ASTContext &Ctx; + +// Returns an `Expr` representing the precision if specified, null +

[clang] [clang-tools-extra] [clang-tidy] bugprone-infinite-loop: Add support for tuple structured bindings (PR #147410)

2025-07-16 Thread Aviral Goel via cfe-commits
https://github.com/aviralg ready_for_review https://github.com/llvm/llvm-project/pull/147410 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang-tools-extra] [clang-tidy] bugprone-infinite-loop: Add support for tuple structured bindings (PR #147410)

2025-07-16 Thread Aviral Goel via cfe-commits
https://github.com/aviralg updated https://github.com/llvm/llvm-project/pull/147410 >From be9fc41e5b1b52cf3f0bfb6acc4debae5561575a Mon Sep 17 00:00:00 2001 From: Aviral Goel Date: Mon, 7 Jul 2025 14:38:00 -0700 Subject: [PATCH] [clang-tidy] bugprone-infinite-loop: Add support for tuple structu

[clang-tools-extra] [clang-tidy] bugprone-infinite-loop: Add support for tuple structured bindings (PR #147410)

2025-07-07 Thread Aviral Goel via cfe-commits
https://github.com/aviralg created https://github.com/llvm/llvm-project/pull/147410 Tuple structured bindings can introduce new variable declarations under `BindingDecl` nodes which are currently ignored by the infinite loop checker. This PR implements support for extracting variables from the