Different IDE (CLion, Visual Studio, Visual Studio Code) may be used to contirbute to FBAE project. We must force consistency of code formatting.
To do so:
Force use of clang format by creating a .clang-format file in root directory. We propose that this file is generated with bash command clang-format -style=Google -dump-config > .clang-format . In other words, we want the files to be compliant with Google C++ style.
To format all of the existing files, we can run the following bash command in a Linux terminal : find . -regex '.*\.\(cpp\|hpp\|h\)' -exec clang-format -style=file -i {} \;
Open question : Should we keep doxygen comments /** */ or swith to /// ?
Different IDE (CLion, Visual Studio, Visual Studio Code) may be used to contirbute to FBAE project. We must force consistency of code formatting.
To do so:
clang format
by creating a.clang-format
file in root directory. We propose that this file is generated with bash commandclang-format -style=Google -dump-config > .clang-format
. In other words, we want the files to be compliant with Google C++ style.find . -regex '.*\.\(cpp\|hpp\|h\)' -exec clang-format -style=file -i {} \;
Open question : Should we keep doxygen comments
/** */
or swith to///
?