RT-Thread Version
master
Hardware Type/Architectures
gd32407v-lckfb
Develop Toolchain
Microsoft VScode
Describe the bug
使用scons --cdb和scons --vsc后用vscode打开,clangd无法索引sys/types.h(该文件在rt-thread/components/libc/compilers/common/extension/sys/types.h),如果在生成的compile_commands.json中加上-Imy_path\rt-thread\components\libc\compilers\common\extension就可以正常索引。gd32407v-lckfb和gd32470v-lckfb都有这个问题。

Other additional context
No response
RT-Thread Version
master
Hardware Type/Architectures
gd32407v-lckfb
Develop Toolchain
Microsoft VScode
Describe the bug
使用scons --cdb和scons --vsc后用vscode打开,clangd无法索引sys/types.h(该文件在rt-thread/components/libc/compilers/common/extension/sys/types.h),如果在生成的compile_commands.json中加上-Imy_path\rt-thread\components\libc\compilers\common\extension就可以正常索引。gd32407v-lckfb和gd32470v-lckfb都有这个问题。

Other additional context
No response