This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

MSPM0G3507: Using Clang-Tidy in CCS 20.3

Part Number: MSPM0G3507

When we enable any checks in Clang-Tidy Settings number of errors is exploding. The erros listed are appearing randomly all over the code.

image.png

image.png

Is there any configuartion how to properly setup clang-tidy in CCS 20.3?

  • Hi,

    Will re-assign to the SDTO team for help, thanks!

    Best Regards,
    Peter

  • Hello,

    __STATIC_INLINE is a macro likely defined in the SDK and not picked up by clang-tidy, hence the error. You can explicitly define it in the compiler definitions. Another option is to define it in a .clang-tidy file. For the latter you would need to use CCS 20.4.0 (earlier CCS versions do not support a .clang-tidy file).

    Thanks

    ki