Re:Greppability is an underrated code metric
by umanwizard on Tuesday September 03, 2024 @12:14PM
(#41436398)
clangd works fine for me with the linux kernel. For best results build the kernel with clang by setting LLVM=1 and KERNEL_LLVM=1 in the build environment and run ./scripts/clang-tools/gen_compile_commands.py after building.
[ Parent
| on HN ]
Re:Greppability is an underrated code metric
by toprerules on Wednesday September 04, 2024 @12:26PM
(#41447557)
Ok, but now every time you switch commits you have to wait for clangd to reindex. Grepping in the kernel is just as fast and you can do it without running a 4GB+ process that takes 10+ minutes to index
Re:Greppability is an underrated code metric
by umanwizard on Wednesday September 04, 2024 @02:51PM
(#41449170)
Sure. I wasn't intending to claim that there is no reason to care about greppability. Just providing some tips about getting clangd to work with linux for those who might find that useful.