mirror of
https://github.com/Kitware/CMake.git
synced 2025-10-19 11:18:40 +08:00
clang-tidy module: Update to build against LLVM/Clang 17
This commit is contained in:
@@ -47,6 +47,7 @@ if(NOT result EQUAL 0)
|
|||||||
string(APPEND RunClangTidy_TEST_FAILED "Expected result: 0, actual result: ${result}\n")
|
string(APPEND RunClangTidy_TEST_FAILED "Expected result: 0, actual result: ${result}\n")
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
|
string(REGEX REPLACE " +\n" "\n" actual_stdout "${actual_stdout}")
|
||||||
string(REGEX REPLACE "\n+$" "" actual_stdout "${actual_stdout}")
|
string(REGEX REPLACE "\n+$" "" actual_stdout "${actual_stdout}")
|
||||||
if(NOT actual_stdout STREQUAL expect_stdout)
|
if(NOT actual_stdout STREQUAL expect_stdout)
|
||||||
string(REPLACE "\n" "\n " expect_stdout_formatted " ${expect_stdout}")
|
string(REPLACE "\n" "\n " expect_stdout_formatted " ${expect_stdout}")
|
||||||
|
@@ -1,6 +1,6 @@
|
|||||||
cmake-ostringstream-use-cmstrcat.cxx:5:3: warning: use strings and cmStrCat() instead of std::ostringstream [cmake-ostringstream-use-cmstrcat]
|
cmake-ostringstream-use-cmstrcat.cxx:5:3: warning: use strings and cmStrCat() instead of std::ostringstream [cmake-ostringstream-use-cmstrcat]
|
||||||
std::ostringstream test;
|
5 | std::ostringstream test;
|
||||||
^
|
| ^
|
||||||
cmake-ostringstream-use-cmstrcat.cxx:8:13: warning: use strings and cmStrCat() instead of std::ostringstream [cmake-ostringstream-use-cmstrcat]
|
cmake-ostringstream-use-cmstrcat.cxx:8:13: warning: use strings and cmStrCat() instead of std::ostringstream [cmake-ostringstream-use-cmstrcat]
|
||||||
void check2(std::ostringstream& test2)
|
8 | void check2(std::ostringstream& test2)
|
||||||
^
|
| ^
|
||||||
|
@@ -1,124 +1,124 @@
|
|||||||
cmake-string-concatenation-use-cmstrcat.cxx:17:12: warning: use cmStrCat() instead of string concatenation [cmake-string-concatenation-use-cmstrcat]
|
cmake-string-concatenation-use-cmstrcat.cxx:17:12: warning: use cmStrCat() instead of string concatenation [cmake-string-concatenation-use-cmstrcat]
|
||||||
concat = a + b;
|
17 | concat = a + b;
|
||||||
^ ~
|
| ^ ~
|
||||||
cmStrCat( , )
|
| cmStrCat( , )
|
||||||
cmake-string-concatenation-use-cmstrcat.cxx:17:12: note: FIX-IT applied suggested code changes
|
cmake-string-concatenation-use-cmstrcat.cxx:17:12: note: FIX-IT applied suggested code changes
|
||||||
cmake-string-concatenation-use-cmstrcat.cxx:17:14: note: FIX-IT applied suggested code changes
|
cmake-string-concatenation-use-cmstrcat.cxx:17:14: note: FIX-IT applied suggested code changes
|
||||||
concat = a + b;
|
17 | concat = a + b;
|
||||||
^
|
| ^
|
||||||
cmake-string-concatenation-use-cmstrcat.cxx:17:17: note: FIX-IT applied suggested code changes
|
cmake-string-concatenation-use-cmstrcat.cxx:17:17: note: FIX-IT applied suggested code changes
|
||||||
concat = a + b;
|
17 | concat = a + b;
|
||||||
^
|
| ^
|
||||||
cmake-string-concatenation-use-cmstrcat.cxx:18:12: warning: use cmStrCat() instead of string concatenation [cmake-string-concatenation-use-cmstrcat]
|
cmake-string-concatenation-use-cmstrcat.cxx:18:12: warning: use cmStrCat() instead of string concatenation [cmake-string-concatenation-use-cmstrcat]
|
||||||
concat = a + " and this is a string literal";
|
18 | concat = a + " and this is a string literal";
|
||||||
^ ~
|
| ^ ~
|
||||||
cmStrCat( , )
|
| cmStrCat( , )
|
||||||
cmake-string-concatenation-use-cmstrcat.cxx:18:12: note: FIX-IT applied suggested code changes
|
cmake-string-concatenation-use-cmstrcat.cxx:18:12: note: FIX-IT applied suggested code changes
|
||||||
cmake-string-concatenation-use-cmstrcat.cxx:18:14: note: FIX-IT applied suggested code changes
|
cmake-string-concatenation-use-cmstrcat.cxx:18:14: note: FIX-IT applied suggested code changes
|
||||||
concat = a + " and this is a string literal";
|
18 | concat = a + " and this is a string literal";
|
||||||
^
|
| ^
|
||||||
cmake-string-concatenation-use-cmstrcat.cxx:18:47: note: FIX-IT applied suggested code changes
|
cmake-string-concatenation-use-cmstrcat.cxx:18:47: note: FIX-IT applied suggested code changes
|
||||||
concat = a + " and this is a string literal";
|
18 | concat = a + " and this is a string literal";
|
||||||
^
|
| ^
|
||||||
cmake-string-concatenation-use-cmstrcat.cxx:19:12: warning: use cmStrCat() instead of string concatenation [cmake-string-concatenation-use-cmstrcat]
|
cmake-string-concatenation-use-cmstrcat.cxx:19:12: warning: use cmStrCat() instead of string concatenation [cmake-string-concatenation-use-cmstrcat]
|
||||||
concat = a + 'O';
|
19 | concat = a + 'O';
|
||||||
^ ~
|
| ^ ~
|
||||||
cmStrCat( , )
|
| cmStrCat( , )
|
||||||
cmake-string-concatenation-use-cmstrcat.cxx:19:12: note: FIX-IT applied suggested code changes
|
cmake-string-concatenation-use-cmstrcat.cxx:19:12: note: FIX-IT applied suggested code changes
|
||||||
cmake-string-concatenation-use-cmstrcat.cxx:19:14: note: FIX-IT applied suggested code changes
|
cmake-string-concatenation-use-cmstrcat.cxx:19:14: note: FIX-IT applied suggested code changes
|
||||||
concat = a + 'O';
|
19 | concat = a + 'O';
|
||||||
^
|
| ^
|
||||||
cmake-string-concatenation-use-cmstrcat.cxx:19:19: note: FIX-IT applied suggested code changes
|
cmake-string-concatenation-use-cmstrcat.cxx:19:19: note: FIX-IT applied suggested code changes
|
||||||
concat = a + 'O';
|
19 | concat = a + 'O';
|
||||||
^
|
| ^
|
||||||
cmake-string-concatenation-use-cmstrcat.cxx:20:12: warning: use cmStrCat() instead of string concatenation [cmake-string-concatenation-use-cmstrcat]
|
cmake-string-concatenation-use-cmstrcat.cxx:20:12: warning: use cmStrCat() instead of string concatenation [cmake-string-concatenation-use-cmstrcat]
|
||||||
concat = "This is a string literal" + b;
|
20 | concat = "This is a string literal" + b;
|
||||||
^ ~
|
| ^ ~
|
||||||
cmStrCat( , )
|
| cmStrCat( , )
|
||||||
cmake-string-concatenation-use-cmstrcat.cxx:20:12: note: FIX-IT applied suggested code changes
|
cmake-string-concatenation-use-cmstrcat.cxx:20:12: note: FIX-IT applied suggested code changes
|
||||||
cmake-string-concatenation-use-cmstrcat.cxx:20:39: note: FIX-IT applied suggested code changes
|
cmake-string-concatenation-use-cmstrcat.cxx:20:39: note: FIX-IT applied suggested code changes
|
||||||
concat = "This is a string literal" + b;
|
20 | concat = "This is a string literal" + b;
|
||||||
^
|
| ^
|
||||||
cmake-string-concatenation-use-cmstrcat.cxx:20:42: note: FIX-IT applied suggested code changes
|
cmake-string-concatenation-use-cmstrcat.cxx:20:42: note: FIX-IT applied suggested code changes
|
||||||
concat = "This is a string literal" + b;
|
20 | concat = "This is a string literal" + b;
|
||||||
^
|
| ^
|
||||||
cmake-string-concatenation-use-cmstrcat.cxx:21:12: warning: use cmStrCat() instead of string concatenation [cmake-string-concatenation-use-cmstrcat]
|
cmake-string-concatenation-use-cmstrcat.cxx:21:12: warning: use cmStrCat() instead of string concatenation [cmake-string-concatenation-use-cmstrcat]
|
||||||
concat = 'O' + a;
|
21 | concat = 'O' + a;
|
||||||
^ ~
|
| ^ ~
|
||||||
cmStrCat( , )
|
| cmStrCat( , )
|
||||||
cmake-string-concatenation-use-cmstrcat.cxx:21:12: note: FIX-IT applied suggested code changes
|
cmake-string-concatenation-use-cmstrcat.cxx:21:12: note: FIX-IT applied suggested code changes
|
||||||
cmake-string-concatenation-use-cmstrcat.cxx:21:16: note: FIX-IT applied suggested code changes
|
cmake-string-concatenation-use-cmstrcat.cxx:21:16: note: FIX-IT applied suggested code changes
|
||||||
concat = 'O' + a;
|
21 | concat = 'O' + a;
|
||||||
^
|
| ^
|
||||||
cmake-string-concatenation-use-cmstrcat.cxx:21:19: note: FIX-IT applied suggested code changes
|
cmake-string-concatenation-use-cmstrcat.cxx:21:19: note: FIX-IT applied suggested code changes
|
||||||
concat = 'O' + a;
|
21 | concat = 'O' + a;
|
||||||
^
|
| ^
|
||||||
cmake-string-concatenation-use-cmstrcat.cxx:22:12: warning: use cmStrCat() instead of string concatenation [cmake-string-concatenation-use-cmstrcat]
|
cmake-string-concatenation-use-cmstrcat.cxx:22:12: warning: use cmStrCat() instead of string concatenation [cmake-string-concatenation-use-cmstrcat]
|
||||||
concat = a + " and this is a string literal" + 'O' + b;
|
22 | concat = a + " and this is a string literal" + 'O' + b;
|
||||||
^ ~ ~ ~
|
| ^ ~ ~ ~
|
||||||
cmStrCat( , , , )
|
| cmStrCat( , , , )
|
||||||
cmake-string-concatenation-use-cmstrcat.cxx:22:12: note: FIX-IT applied suggested code changes
|
cmake-string-concatenation-use-cmstrcat.cxx:22:12: note: FIX-IT applied suggested code changes
|
||||||
cmake-string-concatenation-use-cmstrcat.cxx:22:14: note: FIX-IT applied suggested code changes
|
cmake-string-concatenation-use-cmstrcat.cxx:22:14: note: FIX-IT applied suggested code changes
|
||||||
concat = a + " and this is a string literal" + 'O' + b;
|
22 | concat = a + " and this is a string literal" + 'O' + b;
|
||||||
^
|
| ^
|
||||||
cmake-string-concatenation-use-cmstrcat.cxx:22:48: note: FIX-IT applied suggested code changes
|
cmake-string-concatenation-use-cmstrcat.cxx:22:48: note: FIX-IT applied suggested code changes
|
||||||
concat = a + " and this is a string literal" + 'O' + b;
|
22 | concat = a + " and this is a string literal" + 'O' + b;
|
||||||
^
|
| ^
|
||||||
cmake-string-concatenation-use-cmstrcat.cxx:22:54: note: FIX-IT applied suggested code changes
|
cmake-string-concatenation-use-cmstrcat.cxx:22:54: note: FIX-IT applied suggested code changes
|
||||||
concat = a + " and this is a string literal" + 'O' + b;
|
22 | concat = a + " and this is a string literal" + 'O' + b;
|
||||||
^
|
| ^
|
||||||
cmake-string-concatenation-use-cmstrcat.cxx:22:57: note: FIX-IT applied suggested code changes
|
cmake-string-concatenation-use-cmstrcat.cxx:22:57: note: FIX-IT applied suggested code changes
|
||||||
concat = a + " and this is a string literal" + 'O' + b;
|
22 | concat = a + " and this is a string literal" + 'O' + b;
|
||||||
^
|
| ^
|
||||||
cmake-string-concatenation-use-cmstrcat.cxx:24:10: warning: use cmStrCat() instead of string append [cmake-string-concatenation-use-cmstrcat]
|
cmake-string-concatenation-use-cmstrcat.cxx:24:10: warning: use cmStrCat() instead of string append [cmake-string-concatenation-use-cmstrcat]
|
||||||
concat += b;
|
24 | concat += b;
|
||||||
^~
|
| ^~
|
||||||
= cmStrCat(concat, )
|
| = cmStrCat(concat, )
|
||||||
cmake-string-concatenation-use-cmstrcat.cxx:24:10: note: FIX-IT applied suggested code changes
|
cmake-string-concatenation-use-cmstrcat.cxx:24:10: note: FIX-IT applied suggested code changes
|
||||||
cmake-string-concatenation-use-cmstrcat.cxx:24:14: note: FIX-IT applied suggested code changes
|
cmake-string-concatenation-use-cmstrcat.cxx:24:14: note: FIX-IT applied suggested code changes
|
||||||
concat += b;
|
24 | concat += b;
|
||||||
^
|
| ^
|
||||||
cmake-string-concatenation-use-cmstrcat.cxx:25:10: warning: use cmStrCat() instead of string append [cmake-string-concatenation-use-cmstrcat]
|
cmake-string-concatenation-use-cmstrcat.cxx:25:10: warning: use cmStrCat() instead of string append [cmake-string-concatenation-use-cmstrcat]
|
||||||
concat += " and this is a string literal";
|
25 | concat += " and this is a string literal";
|
||||||
^~
|
| ^~
|
||||||
= cmStrCat(concat, )
|
| = cmStrCat(concat, )
|
||||||
cmake-string-concatenation-use-cmstrcat.cxx:25:10: note: FIX-IT applied suggested code changes
|
cmake-string-concatenation-use-cmstrcat.cxx:25:10: note: FIX-IT applied suggested code changes
|
||||||
cmake-string-concatenation-use-cmstrcat.cxx:25:44: note: FIX-IT applied suggested code changes
|
cmake-string-concatenation-use-cmstrcat.cxx:25:44: note: FIX-IT applied suggested code changes
|
||||||
concat += " and this is a string literal";
|
25 | concat += " and this is a string literal";
|
||||||
^
|
| ^
|
||||||
cmake-string-concatenation-use-cmstrcat.cxx:26:10: warning: use cmStrCat() instead of string append [cmake-string-concatenation-use-cmstrcat]
|
cmake-string-concatenation-use-cmstrcat.cxx:26:10: warning: use cmStrCat() instead of string append [cmake-string-concatenation-use-cmstrcat]
|
||||||
concat += 'o';
|
26 | concat += 'o';
|
||||||
^~
|
| ^~
|
||||||
= cmStrCat(concat, )
|
| = cmStrCat(concat, )
|
||||||
cmake-string-concatenation-use-cmstrcat.cxx:26:10: note: FIX-IT applied suggested code changes
|
cmake-string-concatenation-use-cmstrcat.cxx:26:10: note: FIX-IT applied suggested code changes
|
||||||
cmake-string-concatenation-use-cmstrcat.cxx:26:16: note: FIX-IT applied suggested code changes
|
cmake-string-concatenation-use-cmstrcat.cxx:26:16: note: FIX-IT applied suggested code changes
|
||||||
concat += 'o';
|
26 | concat += 'o';
|
||||||
^
|
| ^
|
||||||
cmake-string-concatenation-use-cmstrcat.cxx:27:10: warning: use cmStrCat() instead of string append [cmake-string-concatenation-use-cmstrcat]
|
cmake-string-concatenation-use-cmstrcat.cxx:27:10: warning: use cmStrCat() instead of string append [cmake-string-concatenation-use-cmstrcat]
|
||||||
concat += b + " and this is a string literal " + 'o' + b;
|
27 | concat += b + " and this is a string literal " + 'o' + b;
|
||||||
^~ ~ ~ ~
|
| ^~ ~ ~ ~
|
||||||
= cmStrCat(concat, , , , )
|
| = cmStrCat(concat, , , , )
|
||||||
cmake-string-concatenation-use-cmstrcat.cxx:27:10: note: FIX-IT applied suggested code changes
|
cmake-string-concatenation-use-cmstrcat.cxx:27:10: note: FIX-IT applied suggested code changes
|
||||||
cmake-string-concatenation-use-cmstrcat.cxx:27:15: note: FIX-IT applied suggested code changes
|
cmake-string-concatenation-use-cmstrcat.cxx:27:15: note: FIX-IT applied suggested code changes
|
||||||
concat += b + " and this is a string literal " + 'o' + b;
|
27 | concat += b + " and this is a string literal " + 'o' + b;
|
||||||
^
|
| ^
|
||||||
cmake-string-concatenation-use-cmstrcat.cxx:27:50: note: FIX-IT applied suggested code changes
|
cmake-string-concatenation-use-cmstrcat.cxx:27:50: note: FIX-IT applied suggested code changes
|
||||||
concat += b + " and this is a string literal " + 'o' + b;
|
27 | concat += b + " and this is a string literal " + 'o' + b;
|
||||||
^
|
| ^
|
||||||
cmake-string-concatenation-use-cmstrcat.cxx:27:56: note: FIX-IT applied suggested code changes
|
cmake-string-concatenation-use-cmstrcat.cxx:27:56: note: FIX-IT applied suggested code changes
|
||||||
concat += b + " and this is a string literal " + 'o' + b;
|
27 | concat += b + " and this is a string literal " + 'o' + b;
|
||||||
^
|
| ^
|
||||||
cmake-string-concatenation-use-cmstrcat.cxx:27:59: note: FIX-IT applied suggested code changes
|
cmake-string-concatenation-use-cmstrcat.cxx:27:59: note: FIX-IT applied suggested code changes
|
||||||
concat += b + " and this is a string literal " + 'o' + b;
|
27 | concat += b + " and this is a string literal " + 'o' + b;
|
||||||
^
|
| ^
|
||||||
cmake-string-concatenation-use-cmstrcat.cxx:30:12: warning: use cmStrCat() instead of string concatenation [cmake-string-concatenation-use-cmstrcat]
|
cmake-string-concatenation-use-cmstrcat.cxx:30:12: warning: use cmStrCat() instead of string concatenation [cmake-string-concatenation-use-cmstrcat]
|
||||||
concat = p.first + p.second;
|
30 | concat = p.first + p.second;
|
||||||
^ ~
|
| ^ ~
|
||||||
cmStrCat( , )
|
| cmStrCat( , )
|
||||||
cmake-string-concatenation-use-cmstrcat.cxx:30:12: note: FIX-IT applied suggested code changes
|
cmake-string-concatenation-use-cmstrcat.cxx:30:12: note: FIX-IT applied suggested code changes
|
||||||
cmake-string-concatenation-use-cmstrcat.cxx:30:20: note: FIX-IT applied suggested code changes
|
cmake-string-concatenation-use-cmstrcat.cxx:30:20: note: FIX-IT applied suggested code changes
|
||||||
concat = p.first + p.second;
|
30 | concat = p.first + p.second;
|
||||||
^
|
| ^
|
||||||
cmake-string-concatenation-use-cmstrcat.cxx:30:30: note: FIX-IT applied suggested code changes
|
cmake-string-concatenation-use-cmstrcat.cxx:30:30: note: FIX-IT applied suggested code changes
|
||||||
concat = p.first + p.second;
|
30 | concat = p.first + p.second;
|
||||||
^
|
| ^
|
||||||
|
@@ -1,18 +1,18 @@
|
|||||||
cmake-use-bespoke-enum-class.cxx:3:16: warning: use a bespoke enum class instead of booleans as parameters [cmake-use-bespoke-enum-class]
|
cmake-use-bespoke-enum-class.cxx:3:16: warning: use a bespoke enum class instead of booleans as parameters [cmake-use-bespoke-enum-class]
|
||||||
bool function1(bool i)
|
3 | bool function1(bool i)
|
||||||
^
|
| ^
|
||||||
cmake-use-bespoke-enum-class.cxx:8:15: warning: use a bespoke enum class instead of booleans as parameters [cmake-use-bespoke-enum-class]
|
cmake-use-bespoke-enum-class.cxx:8:15: warning: use a bespoke enum class instead of booleans as parameters [cmake-use-bespoke-enum-class]
|
||||||
int function2(bool i)
|
8 | int function2(bool i)
|
||||||
^
|
| ^
|
||||||
cmake-use-bespoke-enum-class.cxx:13:16: warning: use a bespoke enum class instead of booleans as parameters [cmake-use-bespoke-enum-class]
|
cmake-use-bespoke-enum-class.cxx:13:16: warning: use a bespoke enum class instead of booleans as parameters [cmake-use-bespoke-enum-class]
|
||||||
char function3(bool i)
|
13 | char function3(bool i)
|
||||||
^
|
| ^
|
||||||
cmake-use-bespoke-enum-class.cxx:18:16: warning: use a bespoke enum class instead of booleans as parameters [cmake-use-bespoke-enum-class]
|
cmake-use-bespoke-enum-class.cxx:18:16: warning: use a bespoke enum class instead of booleans as parameters [cmake-use-bespoke-enum-class]
|
||||||
void function4(bool i)
|
18 | void function4(bool i)
|
||||||
^
|
| ^
|
||||||
cmake-use-bespoke-enum-class.cxx:22:17: warning: use a bespoke enum class instead of booleans as parameters [cmake-use-bespoke-enum-class]
|
cmake-use-bespoke-enum-class.cxx:22:17: warning: use a bespoke enum class instead of booleans as parameters [cmake-use-bespoke-enum-class]
|
||||||
float function5(bool i)
|
22 | float function5(bool i)
|
||||||
^
|
| ^
|
||||||
cmake-use-bespoke-enum-class.cxx:27:18: warning: use a bespoke enum class instead of booleans as parameters [cmake-use-bespoke-enum-class]
|
cmake-use-bespoke-enum-class.cxx:27:18: warning: use a bespoke enum class instead of booleans as parameters [cmake-use-bespoke-enum-class]
|
||||||
double function6(bool i)
|
27 | double function6(bool i)
|
||||||
^
|
| ^
|
||||||
|
@@ -1,52 +1,52 @@
|
|||||||
cmake-use-cmstrlen.cxx:26:9: warning: use cmStrLen() for string literals [cmake-use-cmstrlen]
|
cmake-use-cmstrlen.cxx:26:9: warning: use cmStrLen() for string literals [cmake-use-cmstrlen]
|
||||||
(void)strlen("Hello");
|
26 | (void)strlen("Hello");
|
||||||
^~~~~~
|
| ^~~~~~
|
||||||
cmStrLen
|
| cmStrLen
|
||||||
cmake-use-cmstrlen.cxx:26:9: note: FIX-IT applied suggested code changes
|
cmake-use-cmstrlen.cxx:26:9: note: FIX-IT applied suggested code changes
|
||||||
cmake-use-cmstrlen.cxx:27:9: warning: use cmStrLen() for string literals [cmake-use-cmstrlen]
|
cmake-use-cmstrlen.cxx:27:9: warning: use cmStrLen() for string literals [cmake-use-cmstrlen]
|
||||||
(void)::strlen("Goodbye");
|
27 | (void)::strlen("Goodbye");
|
||||||
^~~~~~~~
|
| ^~~~~~~~
|
||||||
cmStrLen
|
| cmStrLen
|
||||||
cmake-use-cmstrlen.cxx:27:9: note: FIX-IT applied suggested code changes
|
cmake-use-cmstrlen.cxx:27:9: note: FIX-IT applied suggested code changes
|
||||||
cmake-use-cmstrlen.cxx:28:9: warning: use cmStrLen() for string literals [cmake-use-cmstrlen]
|
cmake-use-cmstrlen.cxx:28:9: warning: use cmStrLen() for string literals [cmake-use-cmstrlen]
|
||||||
(void)std::strlen("Hola");
|
28 | (void)std::strlen("Hola");
|
||||||
^~~~~~~~~~~
|
| ^~~~~~~~~~~
|
||||||
cmStrLen
|
| cmStrLen
|
||||||
cmake-use-cmstrlen.cxx:28:9: note: FIX-IT applied suggested code changes
|
cmake-use-cmstrlen.cxx:28:9: note: FIX-IT applied suggested code changes
|
||||||
cmake-use-cmstrlen.cxx:29:9: warning: use cmStrLen() for string literals [cmake-use-cmstrlen]
|
cmake-use-cmstrlen.cxx:29:9: warning: use cmStrLen() for string literals [cmake-use-cmstrlen]
|
||||||
(void)ns1::strlen("Bonjour");
|
29 | (void)ns1::strlen("Bonjour");
|
||||||
^~~~~~~~~~~
|
| ^~~~~~~~~~~
|
||||||
cmStrLen
|
| cmStrLen
|
||||||
cmake-use-cmstrlen.cxx:29:9: note: FIX-IT applied suggested code changes
|
cmake-use-cmstrlen.cxx:29:9: note: FIX-IT applied suggested code changes
|
||||||
cmake-use-cmstrlen.cxx:30:10: warning: use cmStrLen() for string literals [cmake-use-cmstrlen]
|
cmake-use-cmstrlen.cxx:30:10: warning: use cmStrLen() for string literals [cmake-use-cmstrlen]
|
||||||
(void)(sizeof("Hallo") - 1);
|
30 | (void)(sizeof("Hallo") - 1);
|
||||||
^~~~~~ ~~~
|
| ^~~~~~ ~~~
|
||||||
cmStrLen
|
| cmStrLen
|
||||||
cmake-use-cmstrlen.cxx:30:10: note: FIX-IT applied suggested code changes
|
cmake-use-cmstrlen.cxx:30:10: note: FIX-IT applied suggested code changes
|
||||||
cmake-use-cmstrlen.cxx:30:26: note: FIX-IT applied suggested code changes
|
cmake-use-cmstrlen.cxx:30:26: note: FIX-IT applied suggested code changes
|
||||||
(void)(sizeof("Hallo") - 1);
|
30 | (void)(sizeof("Hallo") - 1);
|
||||||
^
|
| ^
|
||||||
cmake-use-cmstrlen.cxx:31:14: warning: use cmStrLen() for string literals [cmake-use-cmstrlen]
|
cmake-use-cmstrlen.cxx:31:14: warning: use cmStrLen() for string literals [cmake-use-cmstrlen]
|
||||||
(void)(4 + sizeof("Hallo") - 1);
|
31 | (void)(4 + sizeof("Hallo") - 1);
|
||||||
^~~~~~ ~~~
|
| ^~~~~~ ~~~
|
||||||
cmStrLen
|
| cmStrLen
|
||||||
cmake-use-cmstrlen.cxx:31:14: note: FIX-IT applied suggested code changes
|
cmake-use-cmstrlen.cxx:31:14: note: FIX-IT applied suggested code changes
|
||||||
cmake-use-cmstrlen.cxx:31:30: note: FIX-IT applied suggested code changes
|
cmake-use-cmstrlen.cxx:31:30: note: FIX-IT applied suggested code changes
|
||||||
(void)(4 + sizeof("Hallo") - 1);
|
31 | (void)(4 + sizeof("Hallo") - 1);
|
||||||
^
|
| ^
|
||||||
cmake-use-cmstrlen.cxx:32:10: warning: use cmStrLen() for string literals [cmake-use-cmstrlen]
|
cmake-use-cmstrlen.cxx:32:10: warning: use cmStrLen() for string literals [cmake-use-cmstrlen]
|
||||||
(void)(sizeof "Hallo" - 1);
|
32 | (void)(sizeof "Hallo" - 1);
|
||||||
^~~~~~ ~~~
|
| ^~~~~~ ~~~
|
||||||
cmStrLen( )
|
| cmStrLen( )
|
||||||
cmake-use-cmstrlen.cxx:32:10: note: FIX-IT applied suggested code changes
|
cmake-use-cmstrlen.cxx:32:10: note: FIX-IT applied suggested code changes
|
||||||
cmake-use-cmstrlen.cxx:32:25: note: FIX-IT applied suggested code changes
|
cmake-use-cmstrlen.cxx:32:25: note: FIX-IT applied suggested code changes
|
||||||
(void)(sizeof "Hallo" - 1);
|
32 | (void)(sizeof "Hallo" - 1);
|
||||||
^
|
| ^
|
||||||
cmake-use-cmstrlen.cxx:33:14: warning: use cmStrLen() for string literals [cmake-use-cmstrlen]
|
cmake-use-cmstrlen.cxx:33:14: warning: use cmStrLen() for string literals [cmake-use-cmstrlen]
|
||||||
(void)(4 + sizeof "Hallo" - 1);
|
33 | (void)(4 + sizeof "Hallo" - 1);
|
||||||
^~~~~~ ~~~
|
| ^~~~~~ ~~~
|
||||||
cmStrLen( )
|
| cmStrLen( )
|
||||||
cmake-use-cmstrlen.cxx:33:14: note: FIX-IT applied suggested code changes
|
cmake-use-cmstrlen.cxx:33:14: note: FIX-IT applied suggested code changes
|
||||||
cmake-use-cmstrlen.cxx:33:29: note: FIX-IT applied suggested code changes
|
cmake-use-cmstrlen.cxx:33:29: note: FIX-IT applied suggested code changes
|
||||||
(void)(4 + sizeof "Hallo" - 1);
|
33 | (void)(4 + sizeof "Hallo" - 1);
|
||||||
^
|
| ^
|
||||||
|
@@ -1,155 +1,155 @@
|
|||||||
cmake-use-cmsys-fstream.cxx:24:20: warning: use cmsys::ifstream [cmake-use-cmsys-fstream]
|
cmake-use-cmsys-fstream.cxx:24:20: warning: use cmsys::ifstream [cmake-use-cmsys-fstream]
|
||||||
using ifstream = std::ifstream;
|
24 | using ifstream = std::ifstream;
|
||||||
^~~~~~~~~~~~~
|
| ^~~~~~~~~~~~~
|
||||||
cmsys::ifstream
|
| cmsys::ifstream
|
||||||
cmake-use-cmsys-fstream.cxx:24:20: note: FIX-IT applied suggested code changes
|
cmake-use-cmsys-fstream.cxx:24:20: note: FIX-IT applied suggested code changes
|
||||||
cmake-use-cmsys-fstream.cxx:25:20: warning: use cmsys::ofstream [cmake-use-cmsys-fstream]
|
cmake-use-cmsys-fstream.cxx:25:20: warning: use cmsys::ofstream [cmake-use-cmsys-fstream]
|
||||||
using ofstream = std::ofstream;
|
25 | using ofstream = std::ofstream;
|
||||||
^~~~~~~~~~~~~
|
| ^~~~~~~~~~~~~
|
||||||
cmsys::ofstream
|
| cmsys::ofstream
|
||||||
cmake-use-cmsys-fstream.cxx:25:20: note: FIX-IT applied suggested code changes
|
cmake-use-cmsys-fstream.cxx:25:20: note: FIX-IT applied suggested code changes
|
||||||
cmake-use-cmsys-fstream.cxx:26:19: warning: use cmsys::fstream [cmake-use-cmsys-fstream]
|
cmake-use-cmsys-fstream.cxx:26:19: warning: use cmsys::fstream [cmake-use-cmsys-fstream]
|
||||||
using fstream = std::fstream;
|
26 | using fstream = std::fstream;
|
||||||
^~~~~~~~~~~~
|
| ^~~~~~~~~~~~
|
||||||
cmsys::fstream
|
| cmsys::fstream
|
||||||
cmake-use-cmsys-fstream.cxx:26:19: note: FIX-IT applied suggested code changes
|
cmake-use-cmsys-fstream.cxx:26:19: note: FIX-IT applied suggested code changes
|
||||||
cmake-use-cmsys-fstream.cxx:29:13: warning: use cmsys::ifstream [cmake-use-cmsys-fstream]
|
cmake-use-cmsys-fstream.cxx:29:13: warning: use cmsys::ifstream [cmake-use-cmsys-fstream]
|
||||||
using ifs = std::ifstream;
|
29 | using ifs = std::ifstream;
|
||||||
^~~~~~~~~~~~~
|
| ^~~~~~~~~~~~~
|
||||||
cmsys::ifstream
|
| cmsys::ifstream
|
||||||
cmake-use-cmsys-fstream.cxx:29:13: note: FIX-IT applied suggested code changes
|
cmake-use-cmsys-fstream.cxx:29:13: note: FIX-IT applied suggested code changes
|
||||||
cmake-use-cmsys-fstream.cxx:30:13: warning: use cmsys::ofstream [cmake-use-cmsys-fstream]
|
cmake-use-cmsys-fstream.cxx:30:13: warning: use cmsys::ofstream [cmake-use-cmsys-fstream]
|
||||||
using ofs = std::ofstream;
|
30 | using ofs = std::ofstream;
|
||||||
^~~~~~~~~~~~~
|
| ^~~~~~~~~~~~~
|
||||||
cmsys::ofstream
|
| cmsys::ofstream
|
||||||
cmake-use-cmsys-fstream.cxx:30:13: note: FIX-IT applied suggested code changes
|
cmake-use-cmsys-fstream.cxx:30:13: note: FIX-IT applied suggested code changes
|
||||||
cmake-use-cmsys-fstream.cxx:31:12: warning: use cmsys::fstream [cmake-use-cmsys-fstream]
|
cmake-use-cmsys-fstream.cxx:31:12: warning: use cmsys::fstream [cmake-use-cmsys-fstream]
|
||||||
using fs = std::fstream;
|
31 | using fs = std::fstream;
|
||||||
^~~~~~~~~~~~
|
| ^~~~~~~~~~~~
|
||||||
cmsys::fstream
|
| cmsys::fstream
|
||||||
cmake-use-cmsys-fstream.cxx:31:12: note: FIX-IT applied suggested code changes
|
cmake-use-cmsys-fstream.cxx:31:12: note: FIX-IT applied suggested code changes
|
||||||
cmake-use-cmsys-fstream.cxx:41:3: warning: use cmsys::ifstream [cmake-use-cmsys-fstream]
|
cmake-use-cmsys-fstream.cxx:41:3: warning: use cmsys::ifstream [cmake-use-cmsys-fstream]
|
||||||
ifstream ifsUnqual;
|
41 | ifstream ifsUnqual;
|
||||||
^~~~~~~~
|
| ^~~~~~~~
|
||||||
cmsys::ifstream
|
| cmsys::ifstream
|
||||||
cmake-use-cmsys-fstream.cxx:41:3: note: FIX-IT applied suggested code changes
|
cmake-use-cmsys-fstream.cxx:41:3: note: FIX-IT applied suggested code changes
|
||||||
cmake-use-cmsys-fstream.cxx:42:3: warning: use cmsys::ifstream [cmake-use-cmsys-fstream]
|
cmake-use-cmsys-fstream.cxx:42:3: warning: use cmsys::ifstream [cmake-use-cmsys-fstream]
|
||||||
std::ifstream ifsQual;
|
42 | std::ifstream ifsQual;
|
||||||
^~~~~~~~~~~~~
|
| ^~~~~~~~~~~~~
|
||||||
cmsys::ifstream
|
| cmsys::ifstream
|
||||||
cmake-use-cmsys-fstream.cxx:42:3: note: FIX-IT applied suggested code changes
|
cmake-use-cmsys-fstream.cxx:42:3: note: FIX-IT applied suggested code changes
|
||||||
cmake-use-cmsys-fstream.cxx:43:3: warning: use cmsys::ifstream [cmake-use-cmsys-fstream]
|
cmake-use-cmsys-fstream.cxx:43:3: warning: use cmsys::ifstream [cmake-use-cmsys-fstream]
|
||||||
ns::ifstream ifsNS;
|
43 | ns::ifstream ifsNS;
|
||||||
^~~~~~~~~~~~
|
| ^~~~~~~~~~~~
|
||||||
cmsys::ifstream
|
| cmsys::ifstream
|
||||||
cmake-use-cmsys-fstream.cxx:43:3: note: FIX-IT applied suggested code changes
|
cmake-use-cmsys-fstream.cxx:43:3: note: FIX-IT applied suggested code changes
|
||||||
cmake-use-cmsys-fstream.cxx:44:3: warning: use cmsys::ifstream [cmake-use-cmsys-fstream]
|
cmake-use-cmsys-fstream.cxx:44:3: warning: use cmsys::ifstream [cmake-use-cmsys-fstream]
|
||||||
ns::ns::ifstream ifsNested;
|
44 | ns::ns::ifstream ifsNested;
|
||||||
^~~~~~~~~~~~~~~~
|
| ^~~~~~~~~~~~~~~~
|
||||||
cmsys::ifstream
|
| cmsys::ifstream
|
||||||
cmake-use-cmsys-fstream.cxx:44:3: note: FIX-IT applied suggested code changes
|
cmake-use-cmsys-fstream.cxx:44:3: note: FIX-IT applied suggested code changes
|
||||||
cmake-use-cmsys-fstream.cxx:45:3: warning: use cmsys::ifstream [cmake-use-cmsys-fstream]
|
cmake-use-cmsys-fstream.cxx:45:3: warning: use cmsys::ifstream [cmake-use-cmsys-fstream]
|
||||||
ns::cl::ifstream ifsClass;
|
45 | ns::cl::ifstream ifsClass;
|
||||||
^~~~~~~~~~~~~~~~
|
| ^~~~~~~~~~~~~~~~
|
||||||
cmsys::ifstream
|
| cmsys::ifstream
|
||||||
cmake-use-cmsys-fstream.cxx:45:3: note: FIX-IT applied suggested code changes
|
cmake-use-cmsys-fstream.cxx:45:3: note: FIX-IT applied suggested code changes
|
||||||
cmake-use-cmsys-fstream.cxx:46:3: warning: use cmsys::ifstream [cmake-use-cmsys-fstream]
|
cmake-use-cmsys-fstream.cxx:46:3: warning: use cmsys::ifstream [cmake-use-cmsys-fstream]
|
||||||
ns::ifs ifsRenamed;
|
46 | ns::ifs ifsRenamed;
|
||||||
^~~~~~~
|
| ^~~~~~~
|
||||||
cmsys::ifstream
|
| cmsys::ifstream
|
||||||
cmake-use-cmsys-fstream.cxx:46:3: note: FIX-IT applied suggested code changes
|
cmake-use-cmsys-fstream.cxx:46:3: note: FIX-IT applied suggested code changes
|
||||||
cmake-use-cmsys-fstream.cxx:48:3: warning: use cmsys::ofstream [cmake-use-cmsys-fstream]
|
cmake-use-cmsys-fstream.cxx:48:3: warning: use cmsys::ofstream [cmake-use-cmsys-fstream]
|
||||||
ofstream ofsUnqual;
|
48 | ofstream ofsUnqual;
|
||||||
^~~~~~~~
|
| ^~~~~~~~
|
||||||
cmsys::ofstream
|
| cmsys::ofstream
|
||||||
cmake-use-cmsys-fstream.cxx:48:3: note: FIX-IT applied suggested code changes
|
cmake-use-cmsys-fstream.cxx:48:3: note: FIX-IT applied suggested code changes
|
||||||
cmake-use-cmsys-fstream.cxx:49:3: warning: use cmsys::ofstream [cmake-use-cmsys-fstream]
|
cmake-use-cmsys-fstream.cxx:49:3: warning: use cmsys::ofstream [cmake-use-cmsys-fstream]
|
||||||
std::ofstream ofsQual;
|
49 | std::ofstream ofsQual;
|
||||||
^~~~~~~~~~~~~
|
| ^~~~~~~~~~~~~
|
||||||
cmsys::ofstream
|
| cmsys::ofstream
|
||||||
cmake-use-cmsys-fstream.cxx:49:3: note: FIX-IT applied suggested code changes
|
cmake-use-cmsys-fstream.cxx:49:3: note: FIX-IT applied suggested code changes
|
||||||
cmake-use-cmsys-fstream.cxx:50:3: warning: use cmsys::ofstream [cmake-use-cmsys-fstream]
|
cmake-use-cmsys-fstream.cxx:50:3: warning: use cmsys::ofstream [cmake-use-cmsys-fstream]
|
||||||
ns::ofstream ofsNS;
|
50 | ns::ofstream ofsNS;
|
||||||
^~~~~~~~~~~~
|
| ^~~~~~~~~~~~
|
||||||
cmsys::ofstream
|
| cmsys::ofstream
|
||||||
cmake-use-cmsys-fstream.cxx:50:3: note: FIX-IT applied suggested code changes
|
cmake-use-cmsys-fstream.cxx:50:3: note: FIX-IT applied suggested code changes
|
||||||
cmake-use-cmsys-fstream.cxx:51:3: warning: use cmsys::ofstream [cmake-use-cmsys-fstream]
|
cmake-use-cmsys-fstream.cxx:51:3: warning: use cmsys::ofstream [cmake-use-cmsys-fstream]
|
||||||
ns::ns::ofstream ofsNested;
|
51 | ns::ns::ofstream ofsNested;
|
||||||
^~~~~~~~~~~~~~~~
|
| ^~~~~~~~~~~~~~~~
|
||||||
cmsys::ofstream
|
| cmsys::ofstream
|
||||||
cmake-use-cmsys-fstream.cxx:51:3: note: FIX-IT applied suggested code changes
|
cmake-use-cmsys-fstream.cxx:51:3: note: FIX-IT applied suggested code changes
|
||||||
cmake-use-cmsys-fstream.cxx:52:3: warning: use cmsys::ofstream [cmake-use-cmsys-fstream]
|
cmake-use-cmsys-fstream.cxx:52:3: warning: use cmsys::ofstream [cmake-use-cmsys-fstream]
|
||||||
ns::cl::ofstream ofsClass;
|
52 | ns::cl::ofstream ofsClass;
|
||||||
^~~~~~~~~~~~~~~~
|
| ^~~~~~~~~~~~~~~~
|
||||||
cmsys::ofstream
|
| cmsys::ofstream
|
||||||
cmake-use-cmsys-fstream.cxx:52:3: note: FIX-IT applied suggested code changes
|
cmake-use-cmsys-fstream.cxx:52:3: note: FIX-IT applied suggested code changes
|
||||||
cmake-use-cmsys-fstream.cxx:53:3: warning: use cmsys::ofstream [cmake-use-cmsys-fstream]
|
cmake-use-cmsys-fstream.cxx:53:3: warning: use cmsys::ofstream [cmake-use-cmsys-fstream]
|
||||||
ns::ofs ofsRenamed;
|
53 | ns::ofs ofsRenamed;
|
||||||
^~~~~~~
|
| ^~~~~~~
|
||||||
cmsys::ofstream
|
| cmsys::ofstream
|
||||||
cmake-use-cmsys-fstream.cxx:53:3: note: FIX-IT applied suggested code changes
|
cmake-use-cmsys-fstream.cxx:53:3: note: FIX-IT applied suggested code changes
|
||||||
cmake-use-cmsys-fstream.cxx:55:3: warning: use cmsys::fstream [cmake-use-cmsys-fstream]
|
cmake-use-cmsys-fstream.cxx:55:3: warning: use cmsys::fstream [cmake-use-cmsys-fstream]
|
||||||
fstream fsUnqual;
|
55 | fstream fsUnqual;
|
||||||
^~~~~~~
|
| ^~~~~~~
|
||||||
cmsys::fstream
|
| cmsys::fstream
|
||||||
cmake-use-cmsys-fstream.cxx:55:3: note: FIX-IT applied suggested code changes
|
cmake-use-cmsys-fstream.cxx:55:3: note: FIX-IT applied suggested code changes
|
||||||
cmake-use-cmsys-fstream.cxx:56:3: warning: use cmsys::fstream [cmake-use-cmsys-fstream]
|
cmake-use-cmsys-fstream.cxx:56:3: warning: use cmsys::fstream [cmake-use-cmsys-fstream]
|
||||||
std::fstream fsQual;
|
56 | std::fstream fsQual;
|
||||||
^~~~~~~~~~~~
|
| ^~~~~~~~~~~~
|
||||||
cmsys::fstream
|
| cmsys::fstream
|
||||||
cmake-use-cmsys-fstream.cxx:56:3: note: FIX-IT applied suggested code changes
|
cmake-use-cmsys-fstream.cxx:56:3: note: FIX-IT applied suggested code changes
|
||||||
cmake-use-cmsys-fstream.cxx:57:3: warning: use cmsys::fstream [cmake-use-cmsys-fstream]
|
cmake-use-cmsys-fstream.cxx:57:3: warning: use cmsys::fstream [cmake-use-cmsys-fstream]
|
||||||
ns::fstream fsNS;
|
57 | ns::fstream fsNS;
|
||||||
^~~~~~~~~~~
|
| ^~~~~~~~~~~
|
||||||
cmsys::fstream
|
| cmsys::fstream
|
||||||
cmake-use-cmsys-fstream.cxx:57:3: note: FIX-IT applied suggested code changes
|
cmake-use-cmsys-fstream.cxx:57:3: note: FIX-IT applied suggested code changes
|
||||||
cmake-use-cmsys-fstream.cxx:58:3: warning: use cmsys::fstream [cmake-use-cmsys-fstream]
|
cmake-use-cmsys-fstream.cxx:58:3: warning: use cmsys::fstream [cmake-use-cmsys-fstream]
|
||||||
ns::ns::fstream fsNested;
|
58 | ns::ns::fstream fsNested;
|
||||||
^~~~~~~~~~~~~~~
|
| ^~~~~~~~~~~~~~~
|
||||||
cmsys::fstream
|
| cmsys::fstream
|
||||||
cmake-use-cmsys-fstream.cxx:58:3: note: FIX-IT applied suggested code changes
|
cmake-use-cmsys-fstream.cxx:58:3: note: FIX-IT applied suggested code changes
|
||||||
cmake-use-cmsys-fstream.cxx:59:3: warning: use cmsys::fstream [cmake-use-cmsys-fstream]
|
cmake-use-cmsys-fstream.cxx:59:3: warning: use cmsys::fstream [cmake-use-cmsys-fstream]
|
||||||
ns::ns::fstream fsClass;
|
59 | ns::ns::fstream fsClass;
|
||||||
^~~~~~~~~~~~~~~
|
| ^~~~~~~~~~~~~~~
|
||||||
cmsys::fstream
|
| cmsys::fstream
|
||||||
cmake-use-cmsys-fstream.cxx:59:3: note: FIX-IT applied suggested code changes
|
cmake-use-cmsys-fstream.cxx:59:3: note: FIX-IT applied suggested code changes
|
||||||
cmake-use-cmsys-fstream.cxx:60:3: warning: use cmsys::fstream [cmake-use-cmsys-fstream]
|
cmake-use-cmsys-fstream.cxx:60:3: warning: use cmsys::fstream [cmake-use-cmsys-fstream]
|
||||||
ns::fs fsRenamed;
|
60 | ns::fs fsRenamed;
|
||||||
^~~~~~
|
| ^~~~~~
|
||||||
cmsys::fstream
|
| cmsys::fstream
|
||||||
cmake-use-cmsys-fstream.cxx:60:3: note: FIX-IT applied suggested code changes
|
cmake-use-cmsys-fstream.cxx:60:3: note: FIX-IT applied suggested code changes
|
||||||
cmake-use-cmsys-fstream.cxx:62:3: warning: use cmsys::ifstream [cmake-use-cmsys-fstream]
|
cmake-use-cmsys-fstream.cxx:62:3: warning: use cmsys::ifstream [cmake-use-cmsys-fstream]
|
||||||
std::ifstream::off_type offsetQual = 0;
|
62 | std::ifstream::off_type offsetQual = 0;
|
||||||
^~~~~~~~~~~~~
|
| ^~~~~~~~~~~~~
|
||||||
cmsys::ifstream
|
| cmsys::ifstream
|
||||||
cmake-use-cmsys-fstream.cxx:62:3: note: FIX-IT applied suggested code changes
|
cmake-use-cmsys-fstream.cxx:62:3: note: FIX-IT applied suggested code changes
|
||||||
cmake-use-cmsys-fstream.cxx:63:3: warning: use cmsys::ifstream [cmake-use-cmsys-fstream]
|
cmake-use-cmsys-fstream.cxx:63:3: warning: use cmsys::ifstream [cmake-use-cmsys-fstream]
|
||||||
ifstream::off_type offsetUnqual = 0;
|
63 | ifstream::off_type offsetUnqual = 0;
|
||||||
^~~~~~~~
|
| ^~~~~~~~
|
||||||
cmsys::ifstream
|
| cmsys::ifstream
|
||||||
cmake-use-cmsys-fstream.cxx:63:3: note: FIX-IT applied suggested code changes
|
cmake-use-cmsys-fstream.cxx:63:3: note: FIX-IT applied suggested code changes
|
||||||
cmake-use-cmsys-fstream.cxx:64:3: warning: use cmsys::ifstream [cmake-use-cmsys-fstream]
|
cmake-use-cmsys-fstream.cxx:64:3: warning: use cmsys::ifstream [cmake-use-cmsys-fstream]
|
||||||
ns::ifstream::off_type offsetNS = 0;
|
64 | ns::ifstream::off_type offsetNS = 0;
|
||||||
^~~~~~~~~~~~
|
| ^~~~~~~~~~~~
|
||||||
cmsys::ifstream
|
| cmsys::ifstream
|
||||||
cmake-use-cmsys-fstream.cxx:64:3: note: FIX-IT applied suggested code changes
|
cmake-use-cmsys-fstream.cxx:64:3: note: FIX-IT applied suggested code changes
|
||||||
cmake-use-cmsys-fstream.cxx:65:3: warning: use cmsys::ifstream [cmake-use-cmsys-fstream]
|
cmake-use-cmsys-fstream.cxx:65:3: warning: use cmsys::ifstream [cmake-use-cmsys-fstream]
|
||||||
ns::ns::ifstream::off_type offsetNested = 0;
|
65 | ns::ns::ifstream::off_type offsetNested = 0;
|
||||||
^~~~~~~~~~~~~~~~
|
| ^~~~~~~~~~~~~~~~
|
||||||
cmsys::ifstream
|
| cmsys::ifstream
|
||||||
cmake-use-cmsys-fstream.cxx:65:3: note: FIX-IT applied suggested code changes
|
cmake-use-cmsys-fstream.cxx:65:3: note: FIX-IT applied suggested code changes
|
||||||
cmake-use-cmsys-fstream.cxx:66:3: warning: use cmsys::ifstream [cmake-use-cmsys-fstream]
|
cmake-use-cmsys-fstream.cxx:66:3: warning: use cmsys::ifstream [cmake-use-cmsys-fstream]
|
||||||
ns::ns::ifstream::traits_type::off_type offsetTraitsNested = 0;
|
66 | ns::ns::ifstream::traits_type::off_type offsetTraitsNested = 0;
|
||||||
^~~~~~~~~~~~~~~~
|
| ^~~~~~~~~~~~~~~~
|
||||||
cmsys::ifstream
|
| cmsys::ifstream
|
||||||
cmake-use-cmsys-fstream.cxx:66:3: note: FIX-IT applied suggested code changes
|
cmake-use-cmsys-fstream.cxx:66:3: note: FIX-IT applied suggested code changes
|
||||||
cmake-use-cmsys-fstream.cxx:67:3: warning: use cmsys::ifstream [cmake-use-cmsys-fstream]
|
cmake-use-cmsys-fstream.cxx:67:3: warning: use cmsys::ifstream [cmake-use-cmsys-fstream]
|
||||||
ns::cl::ifstream::traits_type::off_type offsetTraitsClass = 0;
|
67 | ns::cl::ifstream::traits_type::off_type offsetTraitsClass = 0;
|
||||||
^~~~~~~~~~~~~~~~
|
| ^~~~~~~~~~~~~~~~
|
||||||
cmsys::ifstream
|
| cmsys::ifstream
|
||||||
cmake-use-cmsys-fstream.cxx:67:3: note: FIX-IT applied suggested code changes
|
cmake-use-cmsys-fstream.cxx:67:3: note: FIX-IT applied suggested code changes
|
||||||
cmake-use-cmsys-fstream.cxx:69:15: warning: use cmsys::ifstream [cmake-use-cmsys-fstream]
|
cmake-use-cmsys-fstream.cxx:69:15: warning: use cmsys::ifstream [cmake-use-cmsys-fstream]
|
||||||
std::vector<ifstream> ifsVectorUnqual;
|
69 | std::vector<ifstream> ifsVectorUnqual;
|
||||||
^~~~~~~~
|
| ^~~~~~~~
|
||||||
cmsys::ifstream
|
| cmsys::ifstream
|
||||||
cmake-use-cmsys-fstream.cxx:69:15: note: FIX-IT applied suggested code changes
|
cmake-use-cmsys-fstream.cxx:69:15: note: FIX-IT applied suggested code changes
|
||||||
|
@@ -1,25 +1,46 @@
|
|||||||
cmake-use-pragma-once/cmake-use-pragma-once-both.h:1:1: warning: use #pragma once [cmake-use-pragma-once]
|
cmake-use-pragma-once/cmake-use-pragma-once-both.h:1:1: warning: use #pragma once [cmake-use-pragma-once]
|
||||||
#ifndef BOTH_H
|
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: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
|
cmake-use-pragma-once/cmake-use-pragma-once-both.h:2:1: note: FIX-IT applied suggested code changes
|
||||||
#define BOTH_H
|
2 | #define BOTH_H
|
||||||
^
|
| ^
|
||||||
cmake-use-pragma-once/cmake-use-pragma-once-both.h:10:1: note: FIX-IT applied suggested code changes
|
cmake-use-pragma-once/cmake-use-pragma-once-both.h:10:1: note: FIX-IT applied suggested code changes
|
||||||
#endif
|
10 | #endif
|
||||||
^
|
| ^
|
||||||
cmake-use-pragma-once/cmake-use-pragma-once-include-guards.h:1:1: warning: use #pragma once [cmake-use-pragma-once]
|
cmake-use-pragma-once/cmake-use-pragma-once-include-guards.h:1:1: warning: use #pragma once [cmake-use-pragma-once]
|
||||||
#ifndef INCLUDE_GUARDS_H
|
1 | #ifndef INCLUDE_GUARDS_H
|
||||||
^~~~~~~~~~~~~~~~~~~~~~~~
|
| ^~~~~~~~~~~~~~~~~~~~~~~~
|
||||||
#pragma once
|
| #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: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
|
cmake-use-pragma-once/cmake-use-pragma-once-include-guards.h:2:1: note: FIX-IT applied suggested code changes
|
||||||
#define INCLUDE_GUARDS_H
|
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
|
cmake-use-pragma-once/cmake-use-pragma-once-include-guards.h:9:1: note: FIX-IT applied suggested code changes
|
||||||
#endif
|
9 | #endif
|
||||||
^
|
| ^
|
||||||
cmake-use-pragma-once/cmake-use-pragma-once-neither.h:1:1: warning: use #pragma once [cmake-use-pragma-once]
|
cmake-use-pragma-once/cmake-use-pragma-once-neither.h:1:1: warning: use #pragma once [cmake-use-pragma-once]
|
||||||
int neither()
|
1 | int neither()
|
||||||
^
|
| ^
|
||||||
cmake-use-pragma-once/cmake-use-pragma-once-neither.h:1:1: note: FIX-IT applied suggested code changes
|
cmake-use-pragma-once/cmake-use-pragma-once-neither.h:1:1: note: FIX-IT applied suggested code changes
|
||||||
|
@@ -18,6 +18,16 @@
|
|||||||
#include <clang-tidy/ClangTidyCheck.h>
|
#include <clang-tidy/ClangTidyCheck.h>
|
||||||
#include <clang-tidy/utils/FileExtensionsUtils.h>
|
#include <clang-tidy/utils/FileExtensionsUtils.h>
|
||||||
|
|
||||||
|
#if LLVM_VERSION_MAJOR >= 17
|
||||||
|
# include <clang-tidy/FileExtensionsSet.h>
|
||||||
|
#else
|
||||||
|
namespace clang {
|
||||||
|
namespace tidy {
|
||||||
|
using utils::FileExtensionsSet;
|
||||||
|
} // namespace tidy
|
||||||
|
} // namespace clang
|
||||||
|
#endif
|
||||||
|
|
||||||
namespace clang {
|
namespace clang {
|
||||||
namespace tidy {
|
namespace tidy {
|
||||||
namespace cmake {
|
namespace cmake {
|
||||||
@@ -52,7 +62,7 @@ public:
|
|||||||
|
|
||||||
private:
|
private:
|
||||||
std::string RawStringHeaderFileExtensions;
|
std::string RawStringHeaderFileExtensions;
|
||||||
utils::FileExtensionsSet HeaderFileExtensions;
|
FileExtensionsSet HeaderFileExtensions;
|
||||||
};
|
};
|
||||||
|
|
||||||
} // namespace cmake
|
} // namespace cmake
|
||||||
|
Reference in New Issue
Block a user