-
Notifications
You must be signed in to change notification settings - Fork 104
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
feature: Add pipeline to check code formatting #1783
Conversation
16163f8
to
4918545
Compare
4918545
to
8bc8bb8
Compare
Why is the script removed? |
Same question from me. |
@johnbowen42 do we need your branch for this PR activated in RTD anymore? |
// decltype(add.eval(tile))>(left.eval(tile), | ||
// right.eval(tile), add.eval(tile))) | ||
ADD_TYPE const& | ||
add) //-> |
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.
This change looks odd. Any idea why clang-format did this?
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.
honestly, no, this one is perplexing
This script was old and is not how we apply clang format now. The consistent way to apply clang format is either with the provided pre-commit git hook or the |
@@ -71,6 +71,15 @@ RUN cmake -DCMAKE_CXX_COMPILER=clang++ -DCMAKE_BUILD_TYPE=Debug -DENABLE_OPENMP | |||
ctest -T test --output-on-failure && \ | |||
make clean | |||
|
|||
FROM ghcr.io/llnl/radiuss:clang-14-ubuntu-22.04 AS clang14_style | |||
USER root |
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.
Are we sure we want to specify "root" as the user?
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.
I'm pretty sure we want to specify root. This is how axom does it https://github.com/LLNL/axom/blob/511ae0ae6fe474448fa7dd5dfe16ae6d91fc47b9/azure-pipelines.yml#L124, because cmake needs write permissions for the files
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 catch @adayton1 We probably don't want or need that.
@johnbowen42 if you don't want yout PR branch anymore, please delete. |
Resolves #1717