mirror of
https://github.com/tillitis/tillitis-key1.git
synced 2024-12-24 15:09:27 -05:00
Add clangd target
Create a compile_commands.json to help clangd for LSP.
This commit is contained in:
parent
fe8f0b1aa9
commit
9f975bb66f
@ -180,6 +180,13 @@ qemu_firmware.elf: CFLAGS += -DQEMU_CONSOLE
|
||||
qemu_firmware.elf: firmware.elf
|
||||
mv firmware.elf qemu_firmware.elf
|
||||
|
||||
# Create compile_commands.json for clangd and LSP
|
||||
.PHONY: clangd
|
||||
clangd: compile_commands.json
|
||||
compile_commands.json:
|
||||
$(MAKE) clean
|
||||
bear -- make qemu_firmware.elf
|
||||
|
||||
.PHONY: check
|
||||
check:
|
||||
clang-tidy -header-filter=.* -checks=cert-* $(FIRMWARE_SOURCES) -- $(CFLAGS)
|
||||
|
Loading…
Reference in New Issue
Block a user