switch lsp to clangd and reconstruct project

This commit is contained in:
2024-09-15 22:04:48 +08:00
parent 61b91e0688
commit 7e12105a3d
47 changed files with 1931 additions and 2859 deletions

View File

@@ -0,0 +1,15 @@
--- Generate compile_commands.json for clangd language server
add_rules("plugin.compile_commands.autoupdate", {outputdir = ".vscode"})
--- Get C/C++ Lib Path
local INCLUDE_DIRS = path.splitenv(
string.vformat("$(env VERILATOR_INCLUDE):$(env SYSTEMC_INCLUDE)")
)
target("TB_ISP")
set_toolchains("gcc")
--- C/C++ Codes
add_files(
"src/**.cpp"
)
--- Include directories
add_includedirs("src", ".", INCLUDE_DIRS)