-
Notifications
You must be signed in to change notification settings - Fork 97
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
Applying Clang format #16
Conversation
55281fa
to
ebf7960
Compare
I think we should wait with this until the changes from Kiel are merged (they are still working on it). Otherwise we have a hard time integrating them. |
I don't think it makes merging harder, because they just need to apply clang-format to their code. Indeed it could make it even easier for them, because applying clang-format deletes all tiny differences between the versions, e.g. indentations, spaces at the end of lines, etc. |
ebf7960
to
ea63401
Compare
Good points indeed. 👍 |
TODO
|
d31bcc8
to
99983a3
Compare
@bilke I added coding style check in travis. can you please take a look again? If a PR doesn't follow the code style, "case=codingstyle " in the travis test should fail and its log includes a message |
e146235
to
d2ff3f0
Compare
@norihiro-w Good work! For me it is good but hopefully it is not too strict for other people.. |
@@ -1,47 +1,61 @@ | |||
# Ubuntu 14.04 Trusty support | |||
sudo: required |
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.
Just a comment: Jobs requiring sudo
are slower (see Boot Time
) but otherwise you can not use apt-get install
.
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.
unfortunately OpenMPI and PETSc installation requires apt-get install
because the packages are not in their white list (as far as I tested)
Any other comments on this? I'll wait until Wednesdays and then go for merging. |
How to apply the format? Seems not automatically. |
Run Update: this is a complete shell script for Linux users |
@norihiro-w I see. That's great. |
803a804
to
236c8a7
Compare
UPDATE:
|
About the formatting policy, I'm thinking in this way
|
|
39a106a
to
f0d7697
Compare
Same as we do in ogs6, I would like to suggest using clang format also in ogs5 except for external codes under ThirdParty dir. Having the consistent format is quite helpful, better code readability and less merge conflicts.