[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
================
@@ -0,0 +1,5 @@
+// RUN: %check_clang_tidy %s portability-avoid-pragma-once %t \
+// RUN: -- --header-filter='.*' -- -I%S/Inputs/avoid-pragma-once
+
+#include "lib.h"
+// CHECK-MESSAGES: lib.h:1:1: warning: Avoid pragma once.
----------------
vbvictor wrote:
Please add a newline
https://github.com/llvm/llvm-project/pull/140388
More information about the cfe-commits
mailing list