cmake/Utilities/ClangTidyModule/Tests/cmake-use-pragma-once-stdout.txt

47 lines
1.7 KiB
Plaintext
Raw Normal View History

2023-05-23 16:38:00 +02:00
cmake-use-pragma-once/cmake-use-pragma-once-both.h:1:1: warning: use #pragma once [cmake-use-pragma-once]
2023-12-07 09:12:54 +01:00
1 | #ifndef BOTH_H
| ^~~~~~~~~~~~~~
2 | #define BOTH_H
| ~~~~~~~~~~~~~~
3 | #pragma once
4 |
5 | int both()
6 | {
7 | return 0;
8 | }
9 |
10 | #endif
| ~~~~~~
2023-05-23 16:38:00 +02:00
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
2023-12-07 09:12:54 +01:00
2 | #define BOTH_H
| ^
2023-05-23 16:38:00 +02:00
cmake-use-pragma-once/cmake-use-pragma-once-both.h:10:1: note: FIX-IT applied suggested code changes
2023-12-07 09:12:54 +01:00
10 | #endif
| ^
2023-05-23 16:38:00 +02:00
cmake-use-pragma-once/cmake-use-pragma-once-include-guards.h:1:1: warning: use #pragma once [cmake-use-pragma-once]
2023-12-07 09:12:54 +01:00
1 | #ifndef INCLUDE_GUARDS_H
| ^~~~~~~~~~~~~~~~~~~~~~~~
| #pragma once
2 | #define INCLUDE_GUARDS_H
| ~~~~~~~~~~~~~~~~~~~~~~~~
3 |
4 | int includeGuards()
5 | {
6 | return 0;
7 | }
8 |
9 | #endif
| ~~~~~~
2023-05-23 16:38:00 +02:00
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
2023-12-07 09:12:54 +01:00
2 | #define INCLUDE_GUARDS_H
| ^
2023-05-23 16:38:00 +02:00
cmake-use-pragma-once/cmake-use-pragma-once-include-guards.h:9:1: note: FIX-IT applied suggested code changes
2023-12-07 09:12:54 +01:00
9 | #endif
| ^
2023-05-23 16:38:00 +02:00
cmake-use-pragma-once/cmake-use-pragma-once-neither.h:1:1: warning: use #pragma once [cmake-use-pragma-once]
2023-12-07 09:12:54 +01:00
1 | int neither()
| ^
2023-05-23 16:38:00 +02:00
cmake-use-pragma-once/cmake-use-pragma-once-neither.h:1:1: note: FIX-IT applied suggested code changes