Coding guidelines for the ALICE O2 project.
ClangFormat can be used to format your source code. The configuration file. We provide to files, one for clang 4.4 and one for the versions above.
To use it (example for SLC6) :
sudo yum install clang
cd <source code location>
cp _clang-format-44 ../.clang-format
clang-format -style=file -i SOURCEFILE # -i if you want to replace content
- Download,
- Go to Project->Properties->C/C++ General->Formatter,
- Select the option "Enable project specific settings",
- Click on the "Import..." button.
- Download,
- Go to File -> Import Settings.
- Q I strongly disagree with rule X !
- A Feel free to contact the CWG11 ([email protected]) to share your concern(s). Rules have already been amended, abandoned or added based on the users feedback. However, please comply with the rules until a change is agreed by CWG11.