Skip to content
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

add formatting style #68

Merged
merged 5 commits into from
Mar 22, 2021
Merged

add formatting style #68

merged 5 commits into from
Mar 22, 2021

Conversation

skrax
Copy link
Contributor

@skrax skrax commented Mar 14, 2021

  • add .clang-format based on google
  • add check-formatting workflow
  • reformat all files to new format

#39

add check formatting workflow
reformat all files to new format
Copy link
Contributor

@apodrugin apodrugin left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good job 👍. I have few code style suggestions. Also it would be nice to add braces to single line if statements. I've made small research and it seems clang format does not handle this (according to https://stackoverflow.com/questions/26111162/can-clang-format-add-braces-to-single-line-if-statements-etc) and the clang-tidy is the only solution https://clang.llvm.org/extra/clang-tidy/checks/readability-braces-around-statements.html

.clang-format Show resolved Hide resolved
.clang-format Outdated Show resolved Hide resolved
.clang-format Show resolved Hide resolved
.clang-format Show resolved Hide resolved
ubuntu/check-formatting.sh Outdated Show resolved Hide resolved
.clang-format Show resolved Hide resolved
.clang-format Outdated Show resolved Hide resolved
.clang-format Show resolved Hide resolved
@gynt gynt merged commit 29e72d1 into sourcehold:master Mar 22, 2021
@skrax skrax deleted the add-code-formatting branch March 22, 2021 14:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants