My-Linux-Config
My-Linux-Config copied to clipboard
Ingo Molnar's Linux kernel header patch make the ccls failed the index correctly
e.g. 4ff8f2ca6ccd9e0cc5665d09f86d631b3ae3a14c
kernel/sched/build_policy.c include idle.c directly, then idle.c will not be indexed by ccls.
使用 rg "include ".*.c"" 找了一下,目前的关心的模块中,只是 sched 模块是受这个 patch 的影响的[^1],也许可以增加一个脚本自动添加内容到 compile_comands.json 中。
[^1]: rg 搜索结果 source-file-include.md
static call 也让跳转变的有点复杂。