From 4829226ac3d52e62a3ca3e28b92a79457c7b32f2 Mon Sep 17 00:00:00 2001 From: Ahmad Fatoum Date: Sun, 31 Jan 2021 20:40:04 +0100 Subject: Kbuild: add compile_commands.json target The JSON compilation database format specification describes a compile_commands.json file that lists how translation units are compiled by a build system. This makes integration of external tools, like IDEs, LSP servers and static analyzers easier. Import the Linux bits. The database can now be manually generated with make compile_commands.json. Signed-off-by: Ahmad Fatoum Signed-off-by: Sascha Hauer --- .gitignore | 1 + 1 file changed, 1 insertion(+) (limited to '.gitignore') diff --git a/.gitignore b/.gitignore index 7fa2948bf4..d7a37b3c9b 100644 --- a/.gitignore +++ b/.gitignore @@ -87,3 +87,4 @@ GTAGS /allno.config /allrandom.config /allyes.config +/compile_commands.json -- cgit v1.2.1