-
Notifications
You must be signed in to change notification settings - Fork 15.1k
[TEST][WIP] Run clang-tidy inside ci-container #160193
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
Conversation
|
@llvm/pr-subscribers-github-workflow Author: Baranov Victor (vbvictor) ChangesWIP, do not review Full diff: https://github.com/llvm/llvm-project/pull/160193.diff 1 Files Affected:
diff --git a/.github/workflows/pr-code-lint.yml b/.github/workflows/pr-code-lint.yml
index bc70933147bd2..3efd75471a317 100644
--- a/.github/workflows/pr-code-lint.yml
+++ b/.github/workflows/pr-code-lint.yml
@@ -47,10 +47,13 @@ jobs:
echo "Changed files:"
echo "$CHANGED_FILES"
+ # The clang tidy version should always be upgraded to the first version
+ # of a release cycle (x.1.0) or the last version of a release cycle, or
+ # if there have been relevant clang-format backports.
- name: Install clang-tidy
uses: aminya/setup-cpp@17c11551771948abc5752bbf3183482567c7caf0 # v1.1.1
with:
- clang-tidy: 20.1.8
+ clang-tidy: 21.1.0
- name: Setup Python env
uses: actions/setup-python@42375524e23c412d93fb67b49958b491fce71c38 # v5.4.0
|
You can test this locally with the following command:git diff -U0 origin/main...HEAD -- clang-tools-extra/clang-tidy/ClangTidy.cpp |
python3 clang-tools-extra/clang-tidy/tool/clang-tidy-diff.py \
-path build -p1 -quietView the output from clang-tidy here. |
c5f8ae9 to
aeeb181
Compare
|
✅ With the latest revision this PR passed the C/C++ code formatter. |
182ca8e to
1ce93d7
Compare
|
✅ With the latest revision this PR passed the Python code formatter. |
|
This is just a duplicate of #161073? |
Yes, I'm testing how everything works here |
2f6203c to
f5900e2
Compare
48dce39 to
732b4ca
Compare
Testing ground do not review!