[clang-tools-extra] [clang-tidy] Add avoid-pragma-once. (PR #140388)

Baranov Victor via cfe-commits cfe-commits at lists.llvm.org
Sun May 18 06:32:26 PDT 2025


================
@@ -142,6 +142,11 @@ New checks
   Finds potentially erroneous calls to ``reset`` method on smart pointers when
   the pointee type also has a ``reset`` method.
 
+- New :doc:`portability-avoid-pragma-once
+  <clang-tidy/checks/portability/avoid-pragma-once>` check.
+
+  A check that catches pragma once.
----------------
vbvictor wrote:

When you change `portability/avoid-pragma-once.rst` don't forget to sync this line with new docs

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


More information about the cfe-commits mailing list