-
Notifications
You must be signed in to change notification settings - Fork 769
Make sure the clang-format
version from infrastructure check during the PR has the version that aligned with the version from this repo
#4495
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
Comments
@capatober, it's by design. Currently this check runs in a few minutes. We don't use the "clang-format from the repo" because takes a lot of time to build clang-format tool from sources using GitHub Actions resources and difference you get from it is minimal. |
Yes. Firstly it's not mentioned in the instruction which |
What do you mean by that? |
It means that |
Did you install it into custom directory? Why is clang-format not found? |
It's installed in the default directory. I didn't investigate the reason since I didn't know which |
You probably need to update default version with Here is GitHub actions workflow, which you can repeat to get the same results: https://github.com/intel/llvm/blob/sycl/.github/workflows/clang-format.yml. NOTE: GitHub actions job attaches output of clang-format tool to the job artifacts, so you can just download the patch and apply if you don't want to install clang-format locally. |
Am I right that the recommended way for contributors is following?
Could you please update the instruction for contributors with correct steps? However, in my opinion, step 4) looks inconvenient and time-consuming if we do it per each commit. |
I've updated instructions in #4499. |
I would recommend install |
I see. Thanks. I think mentioning in the instruction is enough for one-time contributors. |
I expect clang-format to produce the same results on any platform, so the advise is the same - install clang-format 10 locally if you want to format the patch before opening a pull request. |
clang-format
check differs fromclang-format
from the repo. Seems it should be improved on infrastructure side.Originally posted by @capatober in #4439 (comment)
The text was updated successfully, but these errors were encountered: