Skip to content

Conversation

LecrisUT
Copy link
Collaborator

@LecrisUT LecrisUT commented Feb 16, 2024

There are a few styles that we should change:

See the links in the commit message for alternatives.

Probably worth re-visiting some of the styles with this PR.

Copy link

codecov bot commented Feb 16, 2024

Codecov Report

Attention: Patch coverage is 92.14876% with 19 lines in your changes are missing coverage. Please review.

Project coverage is 83.59%. Comparing base (7e7fe81) to head (a6d7a6e).

Files Patch % Lines
src/spglib.c 80.00% 5 Missing ⚠️
src/mathfunc.c 91.66% 3 Missing ⚠️
src/cell.c 87.50% 2 Missing ⚠️
src/pointgroup.c 87.50% 2 Missing ⚠️
src/refinement.c 90.00% 2 Missing ⚠️
src/symmetry.c 90.47% 2 Missing ⚠️
src/kgrid.c 88.88% 1 Missing ⚠️
src/kpoint.c 87.50% 1 Missing ⚠️
src/niggli.c 85.71% 1 Missing ⚠️
Additional details and impacted files
@@           Coverage Diff            @@
##           develop     #438   +/-   ##
========================================
  Coverage    83.59%   83.59%           
========================================
  Files           24       24           
  Lines         8118     8118           
  Branches      1686     1689    +3     
========================================
  Hits          6786     6786           
  Misses        1332     1332           
Flag Coverage Δ
c_api 74.43% <85.12%> (ø)
fortran_api 56.16% <67.76%> (ø)
python_api 79.70% <85.77%> (ø)
unit_tests 13.47% <25.61%> (ø)

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

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

West const style is ambiguous, e.g. const pointer.
https://hackingcpp.com/cpp/design/east_vs_west_const.html
https://clang.llvm.org/docs/ClangFormatStyleOptions.html#qualifieralignment

Signed-off-by: Cristian Le <cristian.le@mpsd.mpg.de>
Improve readability
https://clang.llvm.org/docs/ClangFormatStyleOptions.html#indentppdirectives

Signed-off-by: Cristian Le <cristian.le@mpsd.mpg.de>
@LecrisUT LecrisUT force-pushed the feat/style branch 2 times, most recently from 752ad42 to a6d7a6e Compare February 28, 2024 15:46
@LecrisUT LecrisUT marked this pull request as ready for review February 28, 2024 15:46
@LecrisUT LecrisUT requested review from atztogo and lan496 and removed request for atztogo February 28, 2024 15:46
@lan496 lan496 enabled auto-merge February 29, 2024 09:54
@LecrisUT
Copy link
Collaborator Author

LecrisUT commented Feb 29, 2024

/packit build

@lan496 lan496 merged commit cfe425c into spglib:develop Feb 29, 2024
@LecrisUT LecrisUT deleted the feat/style branch February 29, 2024 10:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

3 participants