Re: [PATCH] sched: Make clangd usable
From: Juri Lelli
Date: Mon May 26 2025 - 10:49:59 EST
Hi,
On 23/05/25 18:43, Peter Zijlstra wrote:
>
> Due to the weird Makefile setup of sched the various files do not
> compile as stand alone units. The new generation of editors are trying
> to do just this -- mostly to offer fancy things like completions but
> also better syntax highlighting and code navigation.
>
> Specifically, I've been playing around with neovim and clangd.
Me too very recently. :)
> Setting up clangd on the kernel source is a giant pain in the arse
> (this really should be improved), but once you do manage, you run into
> dumb stuff like the above.
>
> Fix up the scheduler files to at least pretend to work.
>
> (this excludes ext because those include games are worse than average)
>
> Signed-off-by: Peter Zijlstra (Intel) <peterz@xxxxxxxxxxxxx>
This indeed works for me as well. Thanks!
Tested-by: Juri Lelli <juri.lelli@xxxxxxxxxx>
Best,
Juri