Skip to content

ADDED: CMakeLists.txt file - #14

Open
jenisys wants to merge 1 commit into
polystat:masterfrom
jenisys:feature.cmake
Open

ADDED: CMakeLists.txt file#14
jenisys wants to merge 1 commit into
polystat:masterfrom
jenisys:feature.cmake

Conversation

@jenisys

@jenisys jenisys commented May 19, 2023

Copy link
Copy Markdown
  • Use CMake to build "$BUILD_DIR/compile_commands.json" (compile-database)
  • Simplifies using clang-tidy and other clang-tidy runners by using this compile-databse.

EXAMPLE:

BUILD_DIR=build
cmake -S . -B $BUILD_DIR -G Ninja
cmake --build $BUILD_DIR

clang-tidy -p $BUILD_DIR false-negative/*.cpp
run-clang-tidy -p $BUILD_DIR

* Use CMake to build "$BUILD_DIR/compile_commands.json" (compile-database)
* Simplifies using clang-tidy and other clang-tidy runners
  by using this compile-databse.

EXAMPLE:

```bash
BUILD_DIR=build
cmake -S . -B $BUILD_DIR -G Ninja
cmake --build $BUILD_DIR

clang-tidy -p $BUILD_DIR false-negative/*.cpp
run-clang-tidy -p $BUILD_DIR
```
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant