Author : Dua Guillaume
Date : 04-26-2020
Requirement : A first experience with CMake
As a modern C++ specialist, my job is to focus on software development, from a performance and quality perspective.
| #define BOOST_TEST_MODULE subcommand options | |
| #include <boost/test/unit_test.hpp> | |
| #include <boost/program_options.hpp> | |
| #include <boost/variant/variant.hpp> | |
| #include <boost/variant/get.hpp> | |
| struct GenericOptions { | |
| bool debug_; | |
| }; |
| cd ~ | |
| git clone -b release/10.x --progress --depth 100 --recursive --recurse-submodules https://github.com/llvm/llvm-project.git llvm_project | |
| cd llvm_project | |
| # NOTE: No libc in LLVM_ENABLE_PROJECTS https://reviews.llvm.org/D72353 | |
| cmake -B build -S llvm \ | |
| -DCMAKE_BUILD_TYPE=Release \ | |
| -DLLVM_ENABLE_PROJECTS="clang;clang-tools-extra;libunwind;lld" \ | |
| -DLLVM_BUILD_TESTS:BOOL=OFF \ | |
| -DLLVM_BUILD_EXAMPLES:BOOL=OFF \ | |
| -DLLVM_INCLUDE_EXAMPLES:BOOL=OFF \ |
| * Things that can catch OCLINT * | |
| http://oclint-docs.readthedocs.io/en/stable/rules/index.html | |
| *How to install it:* | |
| $ brew tap oclint/formulae | |
| $ brew install oclint | |
| *How to run it:* |