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

Adding clang-format configuration and script #458

Merged
merged 10 commits into from
Nov 13, 2023
Merged

Conversation

llaniewski
Copy link
Member

This adds tools/format.sh script for formatting C++ files that uses a simple .clang-format configuration, and then compacts small for loops and multiplications/divisions with sed.

FYI @kubagalecki

@llaniewski llaniewski added the enhancement New features/updates label Oct 26, 2023
@codecov-commenter
Copy link

codecov-commenter commented Oct 26, 2023

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (57dd196) 44.52% compared to head (14d193a) 44.52%.

❗ Your organization needs to install the Codecov GitHub app to enable full functionality.

Additional details and impacted files
@@           Coverage Diff            @@
##           develop     #458   +/-   ##
========================================
  Coverage    44.52%   44.52%           
========================================
  Files          169      169           
  Lines         7879     7879           
========================================
  Hits          3508     3508           
  Misses        4371     4371           
Flag Coverage Δ
d2q9 30.67% <ø> (ø)
d2q9_bc 26.96% <ø> (ø)
d2q9_kuper 27.76% <ø> (ø)
d3q27_PSM_NEBB 36.22% <ø> (ø)
d3q27_pf_velocity 30.77% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

Files Coverage Δ
src/Factory.h 100.00% <ø> (ø)
src/Region.h 75.00% <ø> (ø)
src/SolidGrid.h 100.00% <ø> (ø)
src/SolidTree.h 100.00% <ø> (ø)

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@kubagalecki
Copy link
Contributor

kubagalecki commented Oct 26, 2023

@llaniewski Some notes (I will add more as I think of them):

  • DerivePointerAlignment: false
  • PointerAlignment: Left

@llaniewski llaniewski merged commit d7411d5 into develop Nov 13, 2023
94 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New features/updates
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants