12345678910111213141516171819202122232425262728293031323334353637383940414243444546 |
- 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
|