Skip to content
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

Closed
wants to merge 11 commits into from
Closed

prepare for rust pkg tests #42

wants to merge 11 commits into from

Conversation

2bndy5
Copy link
Collaborator

@2bndy5 2bndy5 commented Sep 25, 2024

No description provided.

Copy link

github-actions bot commented Sep 27, 2024

Cpp-Linter Report ⚠️

Some files did not pass the configured checks!

clang-format (v17.0.4) reports: 2 file(s) not formatted
  • src/demo.cpp
  • src/demo.hpp
clang-tidy (v17.0.4) reports: 2 concern(s)

Have any feedback or feature suggestions? Share it here.

github-actions[bot]

This comment was marked as duplicate.

github-actions[bot]

This comment was marked as duplicate.

github-actions[bot]

This comment was marked as duplicate.

@github-actions github-actions bot dismissed stale reviews from themself September 27, 2024 11:12

outdated suggestion

github-actions[bot]

This comment was marked as duplicate.

@github-actions github-actions bot dismissed their stale review September 28, 2024 13:58

outdated suggestion

github-actions[bot]

This comment was marked as duplicate.

@github-actions github-actions bot dismissed their stale review September 28, 2024 14:26

outdated suggestion

github-actions[bot]

This comment was marked as duplicate.

@github-actions github-actions bot dismissed their stale review September 28, 2024 19:57

outdated suggestion

github-actions[bot]

This comment was marked as duplicate.

@github-actions github-actions bot dismissed their stale review October 2, 2024 09:35

outdated suggestion

github-actions[bot]

This comment was marked as duplicate.

@github-actions github-actions bot dismissed their stale review October 2, 2024 09:43

outdated suggestion

github-actions[bot]

This comment was marked as outdated.

@2bndy5 2bndy5 force-pushed the test-rust branch 2 times, most recently from 44f18fb to 4cb2600 Compare November 24, 2024 11:27
@github-actions github-actions bot dismissed their stale review November 24, 2024 11:28

outdated suggestion

github-actions[bot]

This comment was marked as outdated.

@github-actions github-actions bot dismissed their stale review November 24, 2024 12:15

outdated suggestion

Copy link

@github-actions github-actions bot left a 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.

src/demo.cpp Show resolved Hide resolved
src/demo.hpp Show resolved Hide resolved
@github-actions github-actions bot dismissed their stale review November 26, 2024 21:55

outdated suggestion

github-actions[bot]

This comment was marked as resolved.

@github-actions github-actions bot dismissed their stale review November 26, 2024 21:57

outdated suggestion

github-actions[bot]

This comment was marked as resolved.

@github-actions github-actions bot dismissed their stale review November 27, 2024 00:09

outdated suggestion

github-actions[bot]

This comment was marked as outdated.

Copy link

@github-actions github-actions bot left a 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;

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

clang-format suggestions

Suggested change
for (;;) break;
for (;;)
break;

clang-tidy diagnostic(s)

Suggested change
for (;;) break;
for (;;) {
break;
}

@@ -8,8 +8,7 @@ size_t dummyFunc(size_t i) { return i; }

int main()

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

clang-tidy diagnostic(s)

Suggested change
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");

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");
      |     ^

Comment on lines 9 to +10
public:
void *not_usefull(char *str){
void *not_useful(char *str){

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

clang-format suggestions

Suggested change
public:
void *not_usefull(char *str){
void *not_useful(char *str){
public:
void* not_useful(char* str)
{

Comment on lines +10 to 13
void *not_useful(char *str){
useless = str;
return 0;
}

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

clang-tidy diagnostic(s)

Suggested change
void *not_useful(char *str){
useless = str;
return 0;
}
auto not_useful(char* str) -> void*
{
useless = str;
return nullptr;
}

@github-actions github-actions bot dismissed their stale review November 27, 2024 11:05

outdated suggestion

Copy link

@github-actions github-actions bot left a 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;

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

clang-format suggestions

Suggested change
for (;;) break;
for (;;)
break;

clang-tidy diagnostic(s)

Suggested change
for (;;) break;
for (;;) {
break;
}

#include <cstddef>

// using size_t from cstddef
size_t dummyFunc(size_t i) { return i; }

int main()

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

clang-tidy diagnostic(s)

Suggested change
int main()
auto main() -> int


int main()
{
for (;;)
break;
for (;;) break;

printf("Hello world!\n");

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");
      |     ^

Comment on lines 9 to +10
public:
void *not_usefull(char *str){
void *not_useful(char *str){

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

clang-format suggestions

Suggested change
public:
void *not_usefull(char *str){
void *not_useful(char *str){
public:
void* not_useful(char* str)
{

Comment on lines +10 to 13
void *not_useful(char *str){
useless = str;
return 0;
}

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

clang-tidy diagnostic(s)

Suggested change
void *not_useful(char *str){
useless = str;
return 0;
}
auto not_useful(char* str) -> void*
{
useless = str;
return nullptr;
}

@github-actions github-actions bot dismissed their stale review November 27, 2024 11:10

outdated suggestion

github-actions[bot]

This comment was marked as duplicate.

@github-actions github-actions bot dismissed their stale review December 12, 2024 15:37

outdated suggestion

Copy link

@github-actions github-actions bot left a 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;

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

clang-format suggestions

Suggested change
for (;;) break;
for (;;)
break;

clang-tidy diagnostic(s)

Suggested change
for (;;) break;
for (;;) {
break;
}

Comment on lines +10 to 13
void *not_useful(char *str){
useless = str;
return 0;
}

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

clang-format suggestions

Suggested change
void *not_useful(char *str){
useless = str;
return 0;
}
void* not_useful(char* str)
{
useless = str;
return 0;
}

clang-tidy diagnostic(s)

Suggested change
void *not_useful(char *str){
useless = str;
return 0;
}
auto not_useful(char* str) -> void*
{
useless = str;
return 0;
}

@2bndy5
Copy link
Collaborator Author

2bndy5 commented Dec 12, 2024

keeping branch but closing PR. Going to open a new one later...

@2bndy5 2bndy5 closed this Dec 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant