...
Useful options/flags are the same as in build_ut.py script
Before the commit code has to be formatted. To do that, execute those commands:
| Code Block | ||||
|---|---|---|---|---|
| ||||
find . -name "*.h" -not -path "./build/*" | xargs clang-format-18 -i --style=file
find . -name "*.cpp" -not -path "./build/*" | xargs clang-format-18 -i --style=file |
It will modify your local files to meet Rialto Coding Standards.
To check, if there are no Cpplint errors, execute this command:
| Code Block | ||||
|---|---|---|---|---|
| ||||
python3 scripts/cpplint/cpplint.py --recursive . |
To run Cppcheck, execute this command:
| Code Block | ||||
|---|---|---|---|---|
| ||||
cppcheck -q -ibuild --enable=all --output-file=cppcheck_report.txt --std=c++17 --suppress-xml=cppcheck_suppressions.xml --library=googletest . |
To build Rialto for x86-64 Linux machine, execute those commands:
| Code Block | ||||
|---|---|---|---|---|
| ||||
cmake . -B build -DNATIVE_BUILD=ON -DRIALTO_BUILD_TYPE="Debug"make -C build |
tbd
...