cmake-string-concatenation-use-cmstrcat-stdout.txt 8.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124
  1. cmake-string-concatenation-use-cmstrcat.cxx:17:12: warning: use cmStrCat() instead of string concatenation [cmake-string-concatenation-use-cmstrcat]
  2. 17 | concat = a + b;
  3. | ^ ~
  4. | cmStrCat( , )
  5. cmake-string-concatenation-use-cmstrcat.cxx:17:12: note: FIX-IT applied suggested code changes
  6. cmake-string-concatenation-use-cmstrcat.cxx:17:14: note: FIX-IT applied suggested code changes
  7. 17 | concat = a + b;
  8. | ^
  9. cmake-string-concatenation-use-cmstrcat.cxx:17:17: note: FIX-IT applied suggested code changes
  10. 17 | concat = a + b;
  11. | ^
  12. cmake-string-concatenation-use-cmstrcat.cxx:18:12: warning: use cmStrCat() instead of string concatenation [cmake-string-concatenation-use-cmstrcat]
  13. 18 | concat = a + " and this is a string literal";
  14. | ^ ~
  15. | cmStrCat( , )
  16. cmake-string-concatenation-use-cmstrcat.cxx:18:12: note: FIX-IT applied suggested code changes
  17. cmake-string-concatenation-use-cmstrcat.cxx:18:14: note: FIX-IT applied suggested code changes
  18. 18 | concat = a + " and this is a string literal";
  19. | ^
  20. cmake-string-concatenation-use-cmstrcat.cxx:18:47: note: FIX-IT applied suggested code changes
  21. 18 | concat = a + " and this is a string literal";
  22. | ^
  23. cmake-string-concatenation-use-cmstrcat.cxx:19:12: warning: use cmStrCat() instead of string concatenation [cmake-string-concatenation-use-cmstrcat]
  24. 19 | concat = a + 'O';
  25. | ^ ~
  26. | cmStrCat( , )
  27. cmake-string-concatenation-use-cmstrcat.cxx:19:12: note: FIX-IT applied suggested code changes
  28. cmake-string-concatenation-use-cmstrcat.cxx:19:14: note: FIX-IT applied suggested code changes
  29. 19 | concat = a + 'O';
  30. | ^
  31. cmake-string-concatenation-use-cmstrcat.cxx:19:19: note: FIX-IT applied suggested code changes
  32. 19 | concat = a + 'O';
  33. | ^
  34. cmake-string-concatenation-use-cmstrcat.cxx:20:12: warning: use cmStrCat() instead of string concatenation [cmake-string-concatenation-use-cmstrcat]
  35. 20 | concat = "This is a string literal" + b;
  36. | ^ ~
  37. | cmStrCat( , )
  38. cmake-string-concatenation-use-cmstrcat.cxx:20:12: note: FIX-IT applied suggested code changes
  39. cmake-string-concatenation-use-cmstrcat.cxx:20:39: note: FIX-IT applied suggested code changes
  40. 20 | concat = "This is a string literal" + b;
  41. | ^
  42. cmake-string-concatenation-use-cmstrcat.cxx:20:42: note: FIX-IT applied suggested code changes
  43. 20 | concat = "This is a string literal" + b;
  44. | ^
  45. cmake-string-concatenation-use-cmstrcat.cxx:21:12: warning: use cmStrCat() instead of string concatenation [cmake-string-concatenation-use-cmstrcat]
  46. 21 | concat = 'O' + a;
  47. | ^ ~
  48. | cmStrCat( , )
  49. cmake-string-concatenation-use-cmstrcat.cxx:21:12: note: FIX-IT applied suggested code changes
  50. cmake-string-concatenation-use-cmstrcat.cxx:21:16: note: FIX-IT applied suggested code changes
  51. 21 | concat = 'O' + a;
  52. | ^
  53. cmake-string-concatenation-use-cmstrcat.cxx:21:19: note: FIX-IT applied suggested code changes
  54. 21 | concat = 'O' + a;
  55. | ^
  56. cmake-string-concatenation-use-cmstrcat.cxx:22:12: warning: use cmStrCat() instead of string concatenation [cmake-string-concatenation-use-cmstrcat]
  57. 22 | concat = a + " and this is a string literal" + 'O' + b;
  58. | ^ ~ ~ ~
  59. | cmStrCat( , , , )
  60. cmake-string-concatenation-use-cmstrcat.cxx:22:12: note: FIX-IT applied suggested code changes
  61. cmake-string-concatenation-use-cmstrcat.cxx:22:14: note: FIX-IT applied suggested code changes
  62. 22 | concat = a + " and this is a string literal" + 'O' + b;
  63. | ^
  64. cmake-string-concatenation-use-cmstrcat.cxx:22:48: note: FIX-IT applied suggested code changes
  65. 22 | concat = a + " and this is a string literal" + 'O' + b;
  66. | ^
  67. cmake-string-concatenation-use-cmstrcat.cxx:22:54: note: FIX-IT applied suggested code changes
  68. 22 | concat = a + " and this is a string literal" + 'O' + b;
  69. | ^
  70. cmake-string-concatenation-use-cmstrcat.cxx:22:57: note: FIX-IT applied suggested code changes
  71. 22 | concat = a + " and this is a string literal" + 'O' + b;
  72. | ^
  73. cmake-string-concatenation-use-cmstrcat.cxx:24:10: warning: use cmStrCat() instead of string append [cmake-string-concatenation-use-cmstrcat]
  74. 24 | concat += b;
  75. | ^~
  76. | = cmStrCat(concat, )
  77. cmake-string-concatenation-use-cmstrcat.cxx:24:10: note: FIX-IT applied suggested code changes
  78. cmake-string-concatenation-use-cmstrcat.cxx:24:14: note: FIX-IT applied suggested code changes
  79. 24 | concat += b;
  80. | ^
  81. cmake-string-concatenation-use-cmstrcat.cxx:25:10: warning: use cmStrCat() instead of string append [cmake-string-concatenation-use-cmstrcat]
  82. 25 | concat += " and this is a string literal";
  83. | ^~
  84. | = cmStrCat(concat, )
  85. cmake-string-concatenation-use-cmstrcat.cxx:25:10: note: FIX-IT applied suggested code changes
  86. cmake-string-concatenation-use-cmstrcat.cxx:25:44: note: FIX-IT applied suggested code changes
  87. 25 | concat += " and this is a string literal";
  88. | ^
  89. cmake-string-concatenation-use-cmstrcat.cxx:26:10: warning: use cmStrCat() instead of string append [cmake-string-concatenation-use-cmstrcat]
  90. 26 | concat += 'o';
  91. | ^~
  92. | = cmStrCat(concat, )
  93. cmake-string-concatenation-use-cmstrcat.cxx:26:10: note: FIX-IT applied suggested code changes
  94. cmake-string-concatenation-use-cmstrcat.cxx:26:16: note: FIX-IT applied suggested code changes
  95. 26 | concat += 'o';
  96. | ^
  97. cmake-string-concatenation-use-cmstrcat.cxx:27:10: warning: use cmStrCat() instead of string append [cmake-string-concatenation-use-cmstrcat]
  98. 27 | concat += b + " and this is a string literal " + 'o' + b;
  99. | ^~ ~ ~ ~
  100. | = cmStrCat(concat, , , , )
  101. cmake-string-concatenation-use-cmstrcat.cxx:27:10: note: FIX-IT applied suggested code changes
  102. cmake-string-concatenation-use-cmstrcat.cxx:27:15: note: FIX-IT applied suggested code changes
  103. 27 | concat += b + " and this is a string literal " + 'o' + b;
  104. | ^
  105. cmake-string-concatenation-use-cmstrcat.cxx:27:50: note: FIX-IT applied suggested code changes
  106. 27 | concat += b + " and this is a string literal " + 'o' + b;
  107. | ^
  108. cmake-string-concatenation-use-cmstrcat.cxx:27:56: note: FIX-IT applied suggested code changes
  109. 27 | concat += b + " and this is a string literal " + 'o' + b;
  110. | ^
  111. cmake-string-concatenation-use-cmstrcat.cxx:27:59: note: FIX-IT applied suggested code changes
  112. 27 | concat += b + " and this is a string literal " + 'o' + b;
  113. | ^
  114. cmake-string-concatenation-use-cmstrcat.cxx:30:12: warning: use cmStrCat() instead of string concatenation [cmake-string-concatenation-use-cmstrcat]
  115. 30 | concat = p.first + p.second;
  116. | ^ ~
  117. | cmStrCat( , )
  118. cmake-string-concatenation-use-cmstrcat.cxx:30:12: note: FIX-IT applied suggested code changes
  119. cmake-string-concatenation-use-cmstrcat.cxx:30:20: note: FIX-IT applied suggested code changes
  120. 30 | concat = p.first + p.second;
  121. | ^
  122. cmake-string-concatenation-use-cmstrcat.cxx:30:30: note: FIX-IT applied suggested code changes
  123. 30 | concat = p.first + p.second;
  124. | ^