cancel
Showing results for 
Search instead for 
Did you mean: 

Delete STM32 HAL/LL errors in clang-tidy

Aahai.1
Associate

Hello,

 

I am trying to integrate clang-tidy to a STM32 cmake project. But I am facing a lot of error from clang-tidy in STM32 HAL : 

error: use of undeclared identifier '__STREXW' [clang-diagnostic-error] 

error: cast from pointer to smaller type 'uint32_t' (aka 'unsigned int') loses information [clang-diagnostic-error]

 

I would like to delete or at least to hide these warnings from clang-tidy report. Do you know how ?

 

Thank you 

1 REPLY 1
TDK
Guru

See here:

https://stackoverflow.com/questions/56707123/how-to-suppress-clang-warnings-in-third-party-library-header-file-in-cmakelists

clang should be able to see the __STREXW definition though. Unclear what's going on there.

If you feel a post has answered your question, please click "Accept as Solution".