You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I always use vim to develop with idf. I found it's hard to jump when view these code. So I wonder is there any command option to genrate cscope.files or compile_commands.json file to achive jump with cscope tool or clangd ?
Describe the solution you'd like.
No response
Describe alternatives you've considered.
No response
Additional context.
No response
The text was updated successfully, but these errors were encountered:
github-actionsbot
changed the title
is there any idf command option to generate cscope.files or compile_commands.json file ?
is there any idf command option to generate cscope.files or compile_commands.json file ? (IDFGH-14559)
Feb 2, 2025
And if you need tips on configuring clangd, please check #6721 for recipes.
tks, I viewed this issue #6721 .
First I do command ln -s build/compile_commands.json . to link build/compile_commands.json file in project root dirctory.
Then I create .clangd file in project root file which has build directory. and add theses content in the .clangd file, now it's ok.
CompileFlags:
# adjust for your compile_commands.json location
CompilationDatabase: build/
Remove:
[
-fno-tree-switch-conversion,
-mtext-section-literals,
-fstrict-volatile-bitfields,
-mlong-calls,
-fno-shrink-wrap,
-march=rv32imc_zicsr_zifencei,
]
Besides, I wonder that though I have set CompilationDatabase: build/ in .clangd file , But if there is no compile_commands.json file in project root dirctory, I still couldn't do function jump.
I found another issue, when I want to jump esp_board_init function defination. I just jump to the function def in the header file hardware_driver/include/esp_board_init.h. How could this happen ?
Is your feature request related to a problem?
I always use vim to develop with idf. I found it's hard to jump when view these code. So I wonder is there any command option to genrate cscope.files or compile_commands.json file to achive jump with cscope tool or clangd ?
Describe the solution you'd like.
No response
Describe alternatives you've considered.
No response
Additional context.
No response
The text was updated successfully, but these errors were encountered: