Replies: 1 comment 1 reply
-
Does the directory |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Maybe related to this issue, but somehow it just won't jump to source file directly, even though it's on Linux in my case.
Directory structure:
. ├── build │ ├── cmake │ ├── CMakeCache.txt │ ├── CMakeFiles │ ├── cmake_install.cmake │ ├── compile_commands.json │ └── Makefile ├── CMakeLists.txt ├── Core │ ├── Inc │ │ ├── main.h │ └── Src │ ├── main.c ├── Drivers │ └── STM32F7xx_HAL_Driver │ ├── Inc │ │ ├── stm32f7xx_hal.h │ ├── ... │ └── Src │ ├── stm32f7xx_hal.c │ ├── ...
In the
Core/Src/main.c
file, when trying to go to definition on a function defined inDrivers/STM32F7xx_HAL_Driver/Src/stm32f7xx_hal.c
, it only jumps to its declaration in the headerDrivers/STM32F7xx_HAL_Driver/Inc/stm32f7xx_hal.h
. Only after I manually open the source file, it will jump to it directly.compile_commands.json
generated bycmake
:Is
compile_commands.json
generated correctly here?Server run via
clangd --background-index --log=error --query-driver=/usr/bin/arm-none-eabi-gcc'
Beta Was this translation helpful? Give feedback.
All reactions