summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorruki <[email protected]>2023-02-02 22:52:01 +0800
committerruki <[email protected]>2023-02-02 22:52:01 +0800
commit7a41af778106504c68b5fe436d2fbb84b9595bb1 (patch)
tree898a3ac51beb2d1a03e719b73fc453fc32098298
parent69aaddc2100cf12028d18ed55254ece8d27e5309 (diff)
add clangd tips for clang-tidy
-rw-r--r--xmake/plugins/check/checkers/clang/tidy.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/xmake/plugins/check/checkers/clang/tidy.lua b/xmake/plugins/check/checkers/clang/tidy.lua
index 534f2712f..9b0d9b21e 100644
--- a/xmake/plugins/check/checkers/clang/tidy.lua
+++ b/xmake/plugins/check/checkers/clang/tidy.lua
@@ -100,7 +100,7 @@ function _check(clang_tidy, opt)
if not os.isfile(filepath) then
local outputdir = os.tmpfile() .. ".dir"
filepath = outputdir and path.join(outputdir, filename) or filename
- task.run("project", {quiet = true, kind = "compile_commands", outputdir = outputdir})
+ task.run("project", {quiet = true, kind = "compile_commands", lsp = "clangd", outputdir = outputdir})
end
opt.compdbfile = filepath