This is a template C++ project used with cmake, lldb and clang in VSCode.
Before you start using this template, please install these requirements:
- cmake
- bear
- clang
- clangd
- lldb
And some VSCode extensions:
- clangd
- CMake
- CMake Tools
- CodeLLDB
Clone this repo
git clone https://github.com/BHznJNs/lldb-cmake-project-template
cd lldb-cmake-project-template
Create build directory
mkdir build && cd build
Compile project
# build/
cmake ..
make
If there is no compile_commands.json
file in the build directory, use this command
# build/
bear -- make