[clang-tools-extra] [clang-tidy] Add `llvm-formatv-string` (PR #195974)

Zeyi Xu via cfe-commits cfe-commits at lists.llvm.org
Wed May 6 00:19:34 PDT 2026


================
@@ -0,0 +1,202 @@
+//===----------------------------------------------------------------------===//
+//
+// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
+// See https://llvm.org/LICENSE.txt for license information.
+// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
+//
+//===----------------------------------------------------------------------===//
+
+#include "FormatvStringCheck.h"
+#include "clang/AST/Expr.h"
+#include "clang/ASTMatchers/ASTMatchers.h"
+#include "llvm/ADT/STLExtras.h"
+#include "llvm/ADT/SmallBitVector.h"
+#include "llvm/ADT/SmallVector.h"
+#include "llvm/ADT/StringRef.h"
----------------
zeyi2 wrote:

Nit: no need to include this file, `clang-tidy` already heavily relies on transitive rule for header inclusion :)

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


More information about the cfe-commits mailing list