-
Notifications
You must be signed in to change notification settings - Fork 787
[NFC][SYCL] Make clang-format tolerate more LIT checks #5235
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
Signed-off-by: Dmitry Sidorov <[email protected]>
@MrSidims, @romanovvlad, the description of the PR added this exception promises something more than what we have implemented.
Do we want to fix the implementation to match the description? |
I do believe, that the intention was to enable clang-format for C++ code in the tests. I'm not sure why we would like to follow clang-format for check/run strings and LLVM IR itself. |
I think you are missing my point. Another problem with this whole approach is that tests must use only standard FileCheck keywords and I don't see this rule to be harden by CI or some other way. |
"(RUN|FAIL|REQUIRES|UNSUPPORTED|CHECK) *:" I think this matches a keyword followed by a colon with 0 or more spaces between them. Right? |
@bader please check out the newest approach, hope I did get you correctly. |
Co-authored-by: Alexey Bader <[email protected]>
I suggest you test this change with 4bc20ab. |
@bader clang-format there has passed: https://github.com/intel/llvm/runs/4651131820?check_suite_focus=true |
Good. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good enough for me. It's not perfect, but I don't think it's worth improving it before we see the need for this.
I'd like original author (@romanovvlad) to approve.
@romanovvlad could you please take a look? |
Agree, do not think it's common to use these keywords in regular comments. I'm OK with current solution. |
Signed-off-by: Dmitry Sidorov [email protected]