coin-or / coinbrew

COIN-OR build and installation script
29 stars 15 forks source link

Where can I find the .clang-format file that is applied to format COIN-OR code #54

Closed dpar39 closed 3 years ago

dpar39 commented 3 years ago

I see the script format-source.sh calls clang-format -i -style=file $file but I can't find the .clang-format that is applied.

tkralphs commented 3 years ago

Sorry for the late reply to this. Where is the format-source.sh script that you're talking about? In general, we don't have a single standard across the Optimization Suite for source formatting and have been very lax about using tools like clang-reformat to keep source consistently formatted. That is something we should definitely do.

dpar39 commented 3 years ago

I found a .clang-format in cbc: https://github.com/coin-or/Cbc/blob/master/.clang-format and most of the repos have a format-source.sh like this one: https://github.com/coin-or/Clp/blob/master/src/format-source.sh