summaryrefslogtreecommitdiffstats
path: root/Utilities/ClangTidyModule/Tests/cmake-use-pragma-once-stdout.txt
diff options
context:
space:
mode:
authorSean Orner <sorner@albany.edu>2022-11-16 19:51:12 (GMT)
committerKyle Edwards <kyle.edwards@kitware.com>2022-11-17 18:55:52 (GMT)
commitaa0c99c55c44c131f8f971a3a43178396036e5d5 (patch)
treecd7e9688d4a861e097299424cb160f0ab12fcc09 /Utilities/ClangTidyModule/Tests/cmake-use-pragma-once-stdout.txt
parentc9af6f2ff671163c8ed2c17daf43cd815eeef74f (diff)
downloadCMake-aa0c99c55c44c131f8f971a3a43178396036e5d5.zip
CMake-aa0c99c55c44c131f8f971a3a43178396036e5d5.tar.gz
CMake-aa0c99c55c44c131f8f971a3a43178396036e5d5.tar.bz2
clang-tidy module: add test for #pragma once check
Diffstat (limited to 'Utilities/ClangTidyModule/Tests/cmake-use-pragma-once-stdout.txt')
-rw-r--r--Utilities/ClangTidyModule/Tests/cmake-use-pragma-once-stdout.txt25
1 files changed, 25 insertions, 0 deletions
diff --git a/Utilities/ClangTidyModule/Tests/cmake-use-pragma-once-stdout.txt b/Utilities/ClangTidyModule/Tests/cmake-use-pragma-once-stdout.txt
new file mode 100644
index 0000000..e80e4a4
--- /dev/null
+++ b/Utilities/ClangTidyModule/Tests/cmake-use-pragma-once-stdout.txt
@@ -0,0 +1,25 @@
+cmake-use-pragma-once/cmake-use-pragma-once-both.h:1:1: warning: use #pragma once [cmake-use-pragma-once]
+#ifndef BOTH_H
+^~~~~~~~~~~~~~
+cmake-use-pragma-once/cmake-use-pragma-once-both.h:1:1: note: FIX-IT applied suggested code changes
+cmake-use-pragma-once/cmake-use-pragma-once-both.h:2:1: note: FIX-IT applied suggested code changes
+#define BOTH_H
+^
+cmake-use-pragma-once/cmake-use-pragma-once-both.h:10:1: note: FIX-IT applied suggested code changes
+#endif
+^
+cmake-use-pragma-once/cmake-use-pragma-once-include-guards.h:1:1: warning: use #pragma once [cmake-use-pragma-once]
+#ifndef INCLUDE_GUARDS_H
+^~~~~~~~~~~~~~~~~~~~~~~~
+#pragma once
+cmake-use-pragma-once/cmake-use-pragma-once-include-guards.h:1:1: note: FIX-IT applied suggested code changes
+cmake-use-pragma-once/cmake-use-pragma-once-include-guards.h:2:1: note: FIX-IT applied suggested code changes
+#define INCLUDE_GUARDS_H
+^
+cmake-use-pragma-once/cmake-use-pragma-once-include-guards.h:9:1: note: FIX-IT applied suggested code changes
+#endif
+^
+cmake-use-pragma-once/cmake-use-pragma-once-neither.h:1:1: warning: use #pragma once [cmake-use-pragma-once]
+int neither()
+^
+cmake-use-pragma-once/cmake-use-pragma-once-neither.h:1:1: note: FIX-IT applied suggested code changes