You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
cmake/Utilities/ClangTidyModule/Tests/cmake-use-pragma-once-stdou...

47 lines
1.7 KiB

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