
Code snippets for Advanced C++ training
by
Pascal HAVÉ
is licensed under
CC BY-NC-SA 4.0
For more details about this training, contact [email protected].
-
Any file
filename.cppis automatically compiled using extra filesfilename.h*filename--*.* -
Any file
filename--unittest.cppis a google test and is automatically compiled using extra filesfilename.h*filename--*.* -
Any file
filaname.cxxis not compiled and usually contains explicit bugs -
type.hcontains tooltype(obj)to get printable type name for given object argument -
Files in
src/moduleshave a specific build rules
conan install ..
mkdir build && cd build
cmake -DCMAKE_TOOLCHAIN_FILE=../conan_toolchain.cmake ..
-
-DENABLE_STATIC_ANALYSIS=ON|OFF: enable/disable static analysis while compiling -
-DCMAKE_CXX_COMPILER_LAUNCHER=ccache: enableccacheas compiler cache
-
Google Benchmark as submodule in
third_party/benchmark -
Google Test as submodule in
third_party/gtest -
lib {fmt} as submodule in
third_party/fmt -
oneTBB (ex: TBB) as installed component