Skip to content

Enable clang tools for kernels build using gcc

Daniel Thompson linux-kbuild lkml llvm 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest2 patches 3 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2clang-tools: Generate clang compatible output even with gcc buildsMakefile scripts/clang-tools/gen_compile_commands.py+74 -21 reply
2/2Makefile: Enable clang-tidy and clang-analyzer for gcc buildsMakefile+0 -60 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/2] Enable clang tools for kernels build using gcc

This patch set makes it possible to use clang based tools, such as the clangd completion engine, regardless of our choice of compiler for the actual kernel build.

Most of the fine details are included in the patch header for the first patch (since we'd like them to appear in the kernel history so they can help future archaeologists).

Daniel Thompson (2):
clang-tools: Generate clang compatible output even with gcc builds
Makefile: Enable clang-tidy and clang-analyzer for gcc builds

 Makefile                                    | 11 ++--
 scripts/clang-tools/gen_compile_commands.py | 71 ++++++++++++++++++++-
 2 files changed, 74 insertions(+), 8 deletions(-)

base-commit: a111daf0c53ae91e71fd2bfe7497862d14132e3e --
2.35.1