Uploaded image for project: 'Embedded Software & Tools'
  1. Embedded Software & Tools
  2. EXT_EP-11588

clangd has inconsistent behavior when trying to "Go to Definition" in the editor

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Medium Medium

      clangd has inconsistent behavior when trying to "Go to Definition" in the editor. One possible explanation is that it is unable to resolve inline functions. 

      For example, in the adc_to_uart example below:

      https://dev.ti.com/tirex/explore/node?node=A__ADH9M8sGfTrcUxBIaLUR7g__MSPM0-SDK__a3PaaoK__LATEST

      There are many inline functions declared in the dl_adc12.h file of the MSPM0 SDK.

      It is not possible to "Go to Definition" for those. If the inline designation is removed, then it is possible to "Go to Definition" for some of the functions. For others, it has no impact.

      For example, "DL_ADC12_reset" will work if the inline designation is removed. However, "DL_ADC12_startConversion" will still not work. 

       

       

       

            syncuser TI User
            syncuser TI User
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: