My-Linux-Config icon indicating copy to clipboard operation
My-Linux-Config copied to clipboard

Ingo Molnar's Linux kernel header patch make the ccls failed the index correctly

Open Martins3 opened this issue 1 year ago • 2 comments

e.g. 4ff8f2ca6ccd9e0cc5665d09f86d631b3ae3a14c

kernel/sched/build_policy.c include idle.c directly, then idle.c will not be indexed by ccls.

Martins3 avatar Jul 14 '22 09:07 Martins3

使用 rg "include ".*.c"" 找了一下,目前的关心的模块中,只是 sched 模块是受这个 patch 的影响的[^1],也许可以增加一个脚本自动添加内容到 compile_comands.json 中。

[^1]: rg 搜索结果 source-file-include.md

Martins3 avatar Jul 14 '22 09:07 Martins3

static call 也让跳转变的有点复杂。

Martins3 avatar Aug 01 '22 03:08 Martins3