-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
prepare for rust pkg tests #42
Conversation
Cpp-Linter Report
|
outdated suggestion
44f18fb
to
4cb2600
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Cpp-linter Review
Used clang-format v17.0.4
Click here for the full clang-format patch
diff --git a/src/demo.cpp b/src/demo.cpp
index 6d17b23..0c1db60 100644
--- a/src/demo.cpp
+++ b/src/demo.cpp
@@ -11 +11,2 @@ int main()
- for (;;) break;
+ for (;;)
+ break;
diff --git a/src/demo.hpp b/src/demo.hpp
index c9f634c..eb53b5f 100644
--- a/src/demo.hpp
+++ b/src/demo.hpp
@@ -10,4 +10,5 @@ class Dummy {
- void *not_useful(char *str){
- useless = str;
- return 0;
- }
+ void* not_useful(char* str)
+ {
+ useless = str;
+ return 0;
+ }
Used clang-tidy v17.0.4
Click here for the full clang-tidy patch
diff --git a/src/demo.cpp b/src/demo.cpp
index 6d17b23..9cf93c0 100644
--- a/src/demo.cpp
+++ b/src/demo.cpp
@@ -11 +11,3 @@ int main()
- for (;;) break;
+ for (;;) {
+ break;
+ }
diff --git a/src/demo.hpp b/src/demo.hpp
index c9f634c..439de24 100644
--- a/src/demo.hpp
+++ b/src/demo.hpp
@@ -10,4 +10,5 @@ class Dummy {
- void *not_useful(char *str){
- useless = str;
- return 0;
- }
+ auto not_useful(char* str) -> void*
+ {
+ useless = str;
+ return 0;
+ }
Have any feedback or feature suggestions? Share it here.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Cpp-linter Review
Used clang-format v17.0.6
Only 2 out of 7 clang-format concerns fit within this pull request's diff.
Click here for the full clang-format patch
diff --git a/src/demo.cpp b/src/demo.cpp
index 6d17b23..8bbf972 100644
--- a/src/demo.cpp
+++ b/src/demo.cpp
@@ -3 +2,0 @@
-#include <cstdio>
@@ -4,0 +4 @@
+#include <cstdio>
@@ -11 +11,2 @@ int main()
- for (;;) break;
+ for (;;)
+ break;
diff --git a/src/demo.hpp b/src/demo.hpp
index c9f634c..c04085d 100644
--- a/src/demo.hpp
+++ b/src/demo.hpp
@@ -3,2 +2,0 @@
-
-
@@ -9,2 +7,3 @@ class Dummy {
- public:
- void *not_useful(char *str){
+public:
+ void* not_useful(char* str)
+ {
@@ -16,23 +15 @@ class Dummy {
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-struct LongDiff
-{
+struct LongDiff {
@@ -40 +16,0 @@ struct LongDiff
-
Used clang-tidy v17.0.6
Only 4 out of 6 clang-tidy concerns fit within this pull request's diff.
Click here for the full clang-tidy patch
diff --git a/src/demo.cpp b/src/demo.cpp
index 6d17b23..e6609ce 100644
--- a/src/demo.cpp
+++ b/src/demo.cpp
@@ -2 +1,0 @@
-#include "demo.hpp"
@@ -7 +6 @@
-size_t dummyFunc(size_t i) { return i; }
+auto dummyFunc(size_t i) -> size_t { return i; }
@@ -9 +8 @@ size_t dummyFunc(size_t i) { return i; }
-int main()
+auto main() -> int
@@ -11 +10,3 @@ int main()
- for (;;) break;
+ for (;;) {
+ break;
+ }
diff --git a/src/demo.hpp b/src/demo.hpp
index c9f634c..d4346e3 100644
--- a/src/demo.hpp
+++ b/src/demo.hpp
@@ -10,4 +10,5 @@ class Dummy {
- void *not_useful(char *str){
- useless = str;
- return 0;
- }
+ auto not_useful(char* str) -> void*
+ {
+ useless = str;
+ return nullptr;
+ }
Have any feedback or feature suggestions? Share it here.
@@ -8,8 +8,7 @@ size_t dummyFunc(size_t i) { return i; } | |||
|
|||
int main() | |||
{ | |||
for (;;) | |||
break; | |||
for (;;) break; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
clang-format suggestions
for (;;) break; | |
for (;;) | |
break; |
clang-tidy diagnostic(s)
for (;;) break; | |
for (;;) { | |
break; | |
} |
@@ -8,8 +8,7 @@ size_t dummyFunc(size_t i) { return i; } | |||
|
|||
int main() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
clang-tidy diagnostic(s)
int main() | |
auto main() -> int |
@@ -8,8 +8,7 @@ size_t dummyFunc(size_t i) { return i; } | |||
|
|||
int main() | |||
{ | |||
for (;;) | |||
break; | |||
for (;;) break; | |||
|
|||
printf("Hello world!\n"); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
clang-tidy diagnostic
src/demo.cpp:13:5 warning: [cppcoreguidelines-pro-type-vararg]
do not call c-style vararg functions
13 | printf("Hello world!\n");
| ^
public: | ||
void *not_usefull(char *str){ | ||
void *not_useful(char *str){ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
clang-format suggestions
public: | |
void *not_usefull(char *str){ | |
void *not_useful(char *str){ | |
public: | |
void* not_useful(char* str) | |
{ |
void *not_useful(char *str){ | ||
useless = str; | ||
return 0; | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
clang-tidy diagnostic(s)
void *not_useful(char *str){ | |
useless = str; | |
return 0; | |
} | |
auto not_useful(char* str) -> void* | |
{ | |
useless = str; | |
return nullptr; | |
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Cpp-linter Review
Used clang-format v17.0.4
Only 2 out of 7 clang-format concerns fit within this pull request's diff.
Click here for the full clang-format patch
diff --git a/src/demo.cpp b/src/demo.cpp
index 6d17b23..8bbf972 100644
--- a/src/demo.cpp
+++ b/src/demo.cpp
@@ -3 +2,0 @@
-#include <cstdio>
@@ -4,0 +4 @@
+#include <cstdio>
@@ -11 +11,2 @@ int main()
- for (;;) break;
+ for (;;)
+ break;
diff --git a/src/demo.hpp b/src/demo.hpp
index c9f634c..c04085d 100644
--- a/src/demo.hpp
+++ b/src/demo.hpp
@@ -3,2 +2,0 @@
-
-
@@ -9,2 +7,3 @@ class Dummy {
- public:
- void *not_useful(char *str){
+public:
+ void* not_useful(char* str)
+ {
@@ -16,23 +15 @@ class Dummy {
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-struct LongDiff
-{
+struct LongDiff {
@@ -40 +16,0 @@ struct LongDiff
-
Used clang-tidy v17.0.4
Only 4 out of 6 clang-tidy concerns fit within this pull request's diff.
Click here for the full clang-tidy patch
diff --git a/src/demo.cpp b/src/demo.cpp
index 6d17b23..e6609ce 100644
--- a/src/demo.cpp
+++ b/src/demo.cpp
@@ -2 +1,0 @@
-#include "demo.hpp"
@@ -7 +6 @@
-size_t dummyFunc(size_t i) { return i; }
+auto dummyFunc(size_t i) -> size_t { return i; }
@@ -9 +8 @@ size_t dummyFunc(size_t i) { return i; }
-int main()
+auto main() -> int
@@ -11 +10,3 @@ int main()
- for (;;) break;
+ for (;;) {
+ break;
+ }
diff --git a/src/demo.hpp b/src/demo.hpp
index c9f634c..d4346e3 100644
--- a/src/demo.hpp
+++ b/src/demo.hpp
@@ -10,4 +10,5 @@ class Dummy {
- void *not_useful(char *str){
- useless = str;
- return 0;
- }
+ auto not_useful(char* str) -> void*
+ {
+ useless = str;
+ return nullptr;
+ }
Have any feedback or feature suggestions? Share it here.
|
||
int main() | ||
{ | ||
for (;;) | ||
break; | ||
for (;;) break; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
clang-format suggestions
for (;;) break; | |
for (;;) | |
break; |
clang-tidy diagnostic(s)
for (;;) break; | |
for (;;) { | |
break; | |
} |
#include <cstddef> | ||
|
||
// using size_t from cstddef | ||
size_t dummyFunc(size_t i) { return i; } | ||
|
||
int main() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
clang-tidy diagnostic(s)
int main() | |
auto main() -> int |
|
||
int main() | ||
{ | ||
for (;;) | ||
break; | ||
for (;;) break; | ||
|
||
printf("Hello world!\n"); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
clang-tidy diagnostic
src/demo.cpp:13:5 warning: [cppcoreguidelines-pro-type-vararg]
do not call c-style vararg functions
13 | printf("Hello world!\n");
| ^
public: | ||
void *not_usefull(char *str){ | ||
void *not_useful(char *str){ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
clang-format suggestions
public: | |
void *not_usefull(char *str){ | |
void *not_useful(char *str){ | |
public: | |
void* not_useful(char* str) | |
{ |
void *not_useful(char *str){ | ||
useless = str; | ||
return 0; | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
clang-tidy diagnostic(s)
void *not_useful(char *str){ | |
useless = str; | |
return 0; | |
} | |
auto not_useful(char* str) -> void* | |
{ | |
useless = str; | |
return nullptr; | |
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Cpp-linter Review
Used clang-format v17.0.4
Click here for the full clang-format patch
diff --git a/src/demo.cpp b/src/demo.cpp
index 6d17b23..0c1db60 100644
--- a/src/demo.cpp
+++ b/src/demo.cpp
@@ -11 +11,2 @@ int main()
- for (;;) break;
+ for (;;)
+ break;
diff --git a/src/demo.hpp b/src/demo.hpp
index c9f634c..eb53b5f 100644
--- a/src/demo.hpp
+++ b/src/demo.hpp
@@ -10,4 +10,5 @@ class Dummy {
- void *not_useful(char *str){
- useless = str;
- return 0;
- }
+ void* not_useful(char* str)
+ {
+ useless = str;
+ return 0;
+ }
Used clang-tidy v17.0.4
Click here for the full clang-tidy patch
diff --git a/src/demo.cpp b/src/demo.cpp
index 6d17b23..9cf93c0 100644
--- a/src/demo.cpp
+++ b/src/demo.cpp
@@ -11 +11,3 @@ int main()
- for (;;) break;
+ for (;;) {
+ break;
+ }
diff --git a/src/demo.hpp b/src/demo.hpp
index c9f634c..439de24 100644
--- a/src/demo.hpp
+++ b/src/demo.hpp
@@ -10,4 +10,5 @@ class Dummy {
- void *not_useful(char *str){
- useless = str;
- return 0;
- }
+ auto not_useful(char* str) -> void*
+ {
+ useless = str;
+ return 0;
+ }
Have any feedback or feature suggestions? Share it here.
@@ -8,8 +8,7 @@ size_t dummyFunc(size_t i) { return i; } | |||
|
|||
int main() | |||
{ | |||
for (;;) | |||
break; | |||
for (;;) break; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
clang-format suggestions
for (;;) break; | |
for (;;) | |
break; |
clang-tidy diagnostic(s)
for (;;) break; | |
for (;;) { | |
break; | |
} |
void *not_useful(char *str){ | ||
useless = str; | ||
return 0; | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
clang-format suggestions
void *not_useful(char *str){ | |
useless = str; | |
return 0; | |
} | |
void* not_useful(char* str) | |
{ | |
useless = str; | |
return 0; | |
} |
clang-tidy diagnostic(s)
void *not_useful(char *str){ | |
useless = str; | |
return 0; | |
} | |
auto not_useful(char* str) -> void* | |
{ | |
useless = str; | |
return 0; | |
} |
keeping branch but closing PR. Going to open a new one later... |
No description provided.