1
0

cmake-use-pragma-once-stdout.txt 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. cmake-use-pragma-once/cmake-use-pragma-once-both.h:1:1: warning: use #pragma once [cmake-use-pragma-once]
  2. 1 | #ifndef BOTH_H
  3. | ^~~~~~~~~~~~~~
  4. 2 | #define BOTH_H
  5. | ~~~~~~~~~~~~~~
  6. 3 | #pragma once
  7. 4 |
  8. 5 | int both()
  9. 6 | {
  10. 7 | return 0;
  11. 8 | }
  12. 9 |
  13. 10 | #endif
  14. | ~~~~~~
  15. cmake-use-pragma-once/cmake-use-pragma-once-both.h:1:1: note: FIX-IT applied suggested code changes
  16. cmake-use-pragma-once/cmake-use-pragma-once-both.h:2:1: note: FIX-IT applied suggested code changes
  17. 2 | #define BOTH_H
  18. | ^
  19. cmake-use-pragma-once/cmake-use-pragma-once-both.h:10:1: note: FIX-IT applied suggested code changes
  20. 10 | #endif
  21. | ^
  22. cmake-use-pragma-once/cmake-use-pragma-once-include-guards.h:1:1: warning: use #pragma once [cmake-use-pragma-once]
  23. 1 | #ifndef INCLUDE_GUARDS_H
  24. | ^~~~~~~~~~~~~~~~~~~~~~~~
  25. | #pragma once
  26. 2 | #define INCLUDE_GUARDS_H
  27. | ~~~~~~~~~~~~~~~~~~~~~~~~
  28. 3 |
  29. 4 | int includeGuards()
  30. 5 | {
  31. 6 | return 0;
  32. 7 | }
  33. 8 |
  34. 9 | #endif
  35. | ~~~~~~
  36. cmake-use-pragma-once/cmake-use-pragma-once-include-guards.h:1:1: note: FIX-IT applied suggested code changes
  37. cmake-use-pragma-once/cmake-use-pragma-once-include-guards.h:2:1: note: FIX-IT applied suggested code changes
  38. 2 | #define INCLUDE_GUARDS_H
  39. | ^
  40. cmake-use-pragma-once/cmake-use-pragma-once-include-guards.h:9:1: note: FIX-IT applied suggested code changes
  41. 9 | #endif
  42. | ^
  43. cmake-use-pragma-once/cmake-use-pragma-once-neither.h:1:1: warning: use #pragma once [cmake-use-pragma-once]
  44. 1 | int neither()
  45. | ^
  46. cmake-use-pragma-once/cmake-use-pragma-once-neither.h:1:1: note: FIX-IT applied suggested code changes