[clang-tools-extra] [clang-tidy] Add bugprone-smart-ptr-initialization check (PR #181570)

Zeyi Xu via cfe-commits cfe-commits at lists.llvm.org
Tue Aug 25 05:26:58 PDT 2026


================
@@ -0,0 +1,93 @@
+// RUN: %check_clang_tidy -std=c++17-or-later %s bugprone-smart-ptr-initialization %t -- -- -I %S/../Inputs/Headers/std
----------------
zeyi2 wrote:

Nit: this explicit include path is no longer needed. `check_clang_tidy.py` automatically adds `checkers/Inputs/Headers/std` as an `-isystem` include path. Same as other files.

```suggestion
// RUN: %check_clang_tidy -std=c++11-or-later %s bugprone-smart-ptr-initialization %t
```

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


More information about the cfe-commits mailing list