mirror of
				https://github.com/tillitis/tillitis-key1.git
				synced 2025-10-30 22:28:54 -04:00 
			
		
		
		
	Add clangd target
Create a compile_commands.json to help clangd for LSP.
This commit is contained in:
		
							parent
							
								
									fe8f0b1aa9
								
							
						
					
					
						commit
						9f975bb66f
					
				
					 1 changed files with 7 additions and 0 deletions
				
			
		|  | @ -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…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Michael Cardell Widerkrantz
						Michael Cardell Widerkrantz