Add clangd to project

This commit is contained in:
Leonardo Vencovsky committed 2024-06-26 22:50:15 +02:00
1 parent 47ece66520
commit 99f08e2b6e
4 files changed
+26 -1

No files matched your search

+2
View File
@@ -0,0 +1,2 @@
CompileFlags:
CompilationDatabase: "cmake"
+2
View File
@@ -62,3 +62,5 @@ build
tests/coverage
tests/out
cmake
+18
View File
@@ -0,0 +1,18 @@
cmake_minimum_required(VERSION 3.8)
project(cmc)
set(CMAKE_EXPORT_COMPILE_COMMANDS ON)
file(GLOB_RECURSE sources
"./tests/main.c"
)
add_definitions(-DCMC_CALLBACKS)
add_executable(cmc ${sources})
target_include_directories(cmc PUBLIC
"./"
)
+4 -1
View File
@@ -29,7 +29,10 @@ docserve:
mdbook serve documentation
install_dev_deps:
sudo apt install gcc make valgrind lcov clang-format hyperfine
sudo apt install gcc make valgrind lcov clang-format hyperfine clangd cmake
cargo install mdbook
build_clangd:
cmake -S . -G "Unix Makefiles" -B cmake
.PHONY: tests tests_dev format bench docbuild docserve install_dev_deps