================
@@ -0,0 +1,5 @@
+// RUN: %check_clang_tidy %s portability-avoid-pragma-once %t \
+// RUN:   -- -- -isystem %S/Inputs/avoid-pragma-once
+
+#include <lib.h>
+// CHECK-MESSAGES: :[[@LINE-1]]:1: warning: Avoid pragma once. 
[portability-avoid-pragma-once]
----------------
zwuis wrote:

You can refer to this file 
https://github.com/llvm/llvm-project/blob/main/clang-tools-extra%2Ftest%2Fclang-tidy%2Fcheckers%2Fmisc%2Fheader-include-cycle.cpp
 .

https://github.com/llvm/llvm-project/pull/140388
_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to