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

[Test] Add cpp linter workflow #94

Closed
wants to merge 21 commits into from
Closed

[Test] Add cpp linter workflow #94

wants to merge 21 commits into from

Conversation

ggeorgakoudis
Copy link
Collaborator

No description provided.

Copy link
Contributor

@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-tidy v12.0.0

Click here for the full clang-tidy patch
diff --git a/lib/JitEngine.cpp b/lib/JitEngine.cpp
index a1ea48f..1072ee9 100644
--- a/lib/JitEngine.cpp
+++ b/lib/JitEngine.cpp
@@ -82 +82 @@ void JitEngine::runOptimizationPassPipeline(Module &M, StringRef Arch,
-  PipelineTuningOptions pto;
+  PipelineTuningOptions Pto;

Used clang-format v12.0.0

Click here for the full clang-format patch
diff --git a/pass/ProteusPass.cpp b/pass/ProteusPass.cpp
index bd78ad1..8804da6 100644
--- a/pass/ProteusPass.cpp
+++ b/pass/ProteusPass.cpp
@@ -1070 +1070,2 @@ private:
-      if (F.getName().contains("jit_variable")) {JitFunctions.push_back(&F);
+      if (F.getName().contains("jit_variable")) {
+        JitFunctions.push_back(&F);

Have any feedback or feature suggestions? Share it here.

Copy link
Contributor

@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-tidy v18.1.3

Click here for the full clang-tidy patch
diff --git a/lib/JitEngine.cpp b/lib/JitEngine.cpp
index a1ea48f..1072ee9 100644
--- a/lib/JitEngine.cpp
+++ b/lib/JitEngine.cpp
@@ -82 +82 @@ void JitEngine::runOptimizationPassPipeline(Module &M, StringRef Arch,
-  PipelineTuningOptions pto;
+  PipelineTuningOptions Pto;

Used clang-format v18.1.3

Click here for the full clang-format patch
diff --git a/pass/ProteusPass.cpp b/pass/ProteusPass.cpp
index bd78ad1..8804da6 100644
--- a/pass/ProteusPass.cpp
+++ b/pass/ProteusPass.cpp
@@ -1070 +1070,2 @@ private:
-      if (F.getName().contains("jit_variable")) {JitFunctions.push_back(&F);
+      if (F.getName().contains("jit_variable")) {
+        JitFunctions.push_back(&F);

Have any feedback or feature suggestions? Share it here.

@Olympus-HPC Olympus-HPC deleted a comment from github-actions bot Jan 7, 2025
Copy link
Contributor

@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-tidy v18.1.3

Click here for the full clang-tidy patch
diff --git a/lib/JitEngine.cpp b/lib/JitEngine.cpp
index a1ea48f..1072ee9 100644
--- a/lib/JitEngine.cpp
+++ b/lib/JitEngine.cpp
@@ -82 +82 @@ void JitEngine::runOptimizationPassPipeline(Module &M, StringRef Arch,
-  PipelineTuningOptions pto;
+  PipelineTuningOptions Pto;

Used clang-format v18.1.3

Click here for the full clang-format patch
diff --git a/pass/ProteusPass.cpp b/pass/ProteusPass.cpp
index bd78ad1..8804da6 100644
--- a/pass/ProteusPass.cpp
+++ b/pass/ProteusPass.cpp
@@ -1070 +1070,2 @@ private:
-      if (F.getName().contains("jit_variable")) {JitFunctions.push_back(&F);
+      if (F.getName().contains("jit_variable")) {
+        JitFunctions.push_back(&F);

Have any feedback or feature suggestions? Share it here.

@@ -1067,8 +1067,7 @@ class ProteusJitPassImpl {
for (auto &F : M.getFunctionList()) {
// TODO: Demangle and search for the fully qualified proteus::jit_variable
// name.
if (F.getName().contains("jit_variable")) {
JitFunctions.push_back(&F);
if (F.getName().contains("jit_variable")) {JitFunctions.push_back(&F);
Copy link
Contributor

Choose a reason for hiding this comment

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

clang-format suggestion

Suggested change
if (F.getName().contains("jit_variable")) {JitFunctions.push_back(&F);
if (F.getName().contains("jit_variable")) {
JitFunctions.push_back(&F);

Copy link
Contributor

@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-tidy v18.1.3

Click here for the full clang-tidy patch
diff --git a/lib/JitEngine.cpp b/lib/JitEngine.cpp
index 758d7fd..5cea6ea 100644
--- a/lib/JitEngine.cpp
+++ b/lib/JitEngine.cpp
@@ -139 +139 @@ void JitEngine::optimizeIR(Module &M, StringRef Arch) {
-  for (int i = 0; i < 10; i++)
+  for (int I = 0; I < 10; I++)

Used clang-format v18.1.3

No concerns from clang-format.

Have any feedback or feature suggestions? Share it here.

Copy link
Contributor

@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-tidy v18.1.3

Click here for the full clang-tidy patch
diff --git a/lib/JitEngine.cpp b/lib/JitEngine.cpp
index 758d7fd..5cea6ea 100644
--- a/lib/JitEngine.cpp
+++ b/lib/JitEngine.cpp
@@ -139 +139 @@ void JitEngine::optimizeIR(Module &M, StringRef Arch) {
-  for (int i = 0; i < 10; i++)
+  for (int I = 0; I < 10; I++)

Used clang-format v18.1.3

No concerns from clang-format.

Have any feedback or feature suggestions? Share it here.

Copy link
Contributor

@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-tidy v18.1.3

Click here for the full clang-tidy patch
diff --git a/lib/JitEngineDeviceCUDA.cpp b/lib/JitEngineDeviceCUDA.cpp
index d6c353e..b020478 100644
--- a/lib/JitEngineDeviceCUDA.cpp
+++ b/lib/JitEngineDeviceCUDA.cpp
@@ -315 +315 @@ JitEngineDeviceCUDA::JitEngineDeviceCUDA() {
-  for (int i = 0; i < 10; ++i)
+  for (int I = 0; I < 10; ++I)

Used clang-format v18.1.3

No concerns from clang-format.

Have any feedback or feature suggestions? Share it here.

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
@ggeorgakoudis ggeorgakoudis changed the title Add cpp linter workflow [Test] Add cpp linter workflow Jan 8, 2025
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