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

Add clang-tidy PR comment bot #1269

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

Conversation

nsmithtt
Copy link
Contributor

No description provided.

request_changes: false
# Optionally set the number of comments per review
# to avoid GitHub API timeouts for heavily loaded
# pull requests
Copy link
Contributor

Choose a reason for hiding this comment

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

thanks for these comments. These workflow files have magic functions so I really like you commenting what it's doing :)

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I copy pasted them so I can't take credit 😅

@nsmithtt nsmithtt force-pushed the nsmith/clang-tidy-comments branch 2 times, most recently from 4612656 to 607b12b Compare November 14, 2024 20:08
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.

⚠️ Clang-Tidy found issue(s) with the introduced code (1/1)

@@ -2,8 +2,8 @@
//
// SPDX-License-Identifier: Apache-2.0

#ifndef TTMLIR_DIALECT_TTNN_TRANSFORMS_OPTIMIZER_H
#define TTMLIR_DIALECT_TTNN_TRANSFORMS_OPTIMIZER_H
#ifndef TTMLIR_DIALECT_TTNN_TRANSFORMS_OPTIMIZE_H
Copy link
Contributor

Choose a reason for hiding this comment

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

Why? :)

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Wait for the bot! :)

Copy link
Contributor

@nobradovictt nobradovictt Nov 15, 2024

Choose a reason for hiding this comment

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

image

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.

⚠️ Clang-Tidy found issue(s) with the introduced code (1/2)

Comment on lines 5 to 6
#ifndef TTMLIR_DIALECT_TTNN_TRANSFORMS_OPTIMIZE_H
#define TTMLIR_DIALECT_TTNN_TRANSFORMS_OPTIMIZE_H

Choose a reason for hiding this comment

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

⚠️ llvm-header-guard ⚠️
header guard does not follow preferred style

Suggested change
#ifndef TTMLIR_DIALECT_TTNN_TRANSFORMS_OPTIMIZE_H
#define TTMLIR_DIALECT_TTNN_TRANSFORMS_OPTIMIZE_H
#ifndef TTMLIR_DIALECT_TTNN_TRANSFORMS_OPTIMIZER_H
#define TTMLIR_DIALECT_TTNN_TRANSFORMS_OPTIMIZER_H

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@nobradovictt

Now just to figure out why it's commenting multiple times for the same thing 😅

Copy link
Contributor

Choose a reason for hiding this comment

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

Maybe to make sure you cant miss it? :D

Copy link
Contributor Author

Choose a reason for hiding this comment

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

  • you made a mistake
  • you made a mistake
  • you made a mistake
  • you made a mistake
  • you made a mistake
  • you made a mistake
  • you made a mistake

include/ttmlir/Dialect/TTNN/Transforms/Optimizer.h Outdated Show resolved Hide resolved
include/ttmlir/Dialect/TTNN/Transforms/Optimizer.h Outdated Show resolved Hide resolved
include/ttmlir/Dialect/TTNN/Transforms/Optimizer.h Outdated Show resolved Hide resolved
include/ttmlir/Dialect/TTNN/Transforms/Optimizer.h Outdated Show resolved Hide resolved
include/ttmlir/Dialect/TTNN/Transforms/Optimizer.h Outdated Show resolved Hide resolved
include/ttmlir/Dialect/TTNN/Transforms/Optimizer.h Outdated Show resolved Hide resolved
include/ttmlir/Dialect/TTNN/Transforms/Optimizer.h Outdated Show resolved Hide resolved
include/ttmlir/Dialect/TTNN/Transforms/Optimizer.h Outdated Show resolved Hide resolved
include/ttmlir/Dialect/TTNN/Transforms/Optimizer.h Outdated Show resolved Hide resolved
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.

⚠️ Clang-Tidy found issue(s) with the introduced code (2/2)

include/ttmlir/Dialect/TTNN/Transforms/Optimizer.h Outdated Show resolved Hide resolved
include/ttmlir/Dialect/TTNN/Transforms/Optimizer.h Outdated Show resolved Hide resolved
include/ttmlir/Dialect/TTNN/Transforms/Optimizer.h Outdated Show resolved Hide resolved
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.

⚠️ Clang-Tidy found issue(s) with the introduced code (1/1)

include/ttmlir/Dialect/TTNN/Utils/OptimizerOverrides.h Outdated Show resolved Hide resolved
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.

3 participants