[Cbc] Code style for the COIN-OR Branch-and-Cut source code
Haroldo Gambini Santos
haroldo at ufop.edu.br
Sun Jan 6 18:53:07 EST 2019
Hi All,
I included a .clang-format file in the root directory of cbc to keep the
code style settings for cbc (number of spaces for ident, break or not
lines after {, etc).
In this initial version I included the settings used by Forrest in CBC
and CLP (2 spaces for ident, { in the same line, for instances).
If in your local copy you prefer to work with different settings, e.g.
ident width=4, just change this line in .clang-format
IndentWidth: 2
and call the script ./format-all-sources.sh to reformat the entire CBC
source code according to your needs. Just remember of, before submitting
a patch, reformat according to the initial settings.
Cheers,
Haroldo
--
=============================================================
Haroldo Gambini Santos
Computing Department
Universidade Federal de Ouro Preto - UFOP
email: haroldo at ufop.edu.br
home/research page: www.decom.ufop.br/haroldo
It has long been an axiom of mine that the little things are infinitely
the most important.
-- Sir Arthur Conan Doyle, "A Case of Identity"
More information about the Cbc
mailing list