ORNL / ReSolve

Library of GPU-resident linear solvers
Other
58 stars 2 forks source link

Define a Clang-format txt file #5

Open ryandanehy opened 1 year ago

ryandanehy commented 1 year ago

This file will determine the code format across our repo. This link shows what each variable in the file can change link Below is some of the variables I have defined in respect to the contributing guidelines.

https://code.ornl.gov/ecpcitest/exasgd/resolve/-/issues/38

ryandanehy commented 1 year ago

Language: Cpp AccessModifierOffset: 0 AlignConsecutiveMacros: true BreakBeforeBraces: Attach ColumnLimit: 150 ConstructorInitializerIndentWidth: 2

See https://zed0.co.uk/clang-format-configurator/ to understand what the default clang-format will also change.

r_KLU_KLU.cpp

Above is a file I applied the clang-format settings I am thinking of. @kswirydo @peles let me know your opinion about this styling. It should match the contributing guidelines. If you want you can compare it to the exact r_KLU_KLU.cpp file in the repo.

pelesh commented 1 year ago

I think using Gram-Schmidt or FGMRES class would give us better test case.

pelesh commented 2 months ago

Re-opening this as we still have to fine-tune a few formatting details.