Support IAR compiler in CLion

  • Operating system: Windows 10
  • SonarLint plugin version:10.12.0.79769
  • IntelliJ version: CLion 2024.3
  • Programming language you’re coding in: C++
  • Is connected mode used: yes
    • Connected to SonarCloud or SonarQube (and which version): SonarQube Enterprise Edition
      v9.9.7 (build 96285)

CLion now officially supports the IAR compiler - see IAR toolchain | CLion Documentation. However, SonarLint fails to analyze the code, reporting following error in the log:

[CURRENT_FILE_ACTION] 1 file(s) submitted
File 'Foo.cpp' excluded: unsupported compiler IAR

I have tried with a compilation database project and also a cmake project. Both report the above error that IAR is not supported.

Is there something broken, or does SonarLint for the IntelliJ platform just not (yet) support IAR? Is it planned to add support?

Hello @Salpeter

Thanks for bringing this to our attention; unfortunately, SonarQube for IDE for CLion doesn’t currently support IAR compilers.

I have created a ticket to track this issue, which you can find here

Thanks,

1 Like

Hi Mohammed,

Is it already planned to add support in one of the coming releases?
It is not a blocker for us, but still it would be nice to know what we can expect. As long as there is no support in the CLion plugin, we have to use VSCode for that.

Thanks!

Hello @Salpeter,

Thanks for your feedback! While we can’t promise specific timelines right now, please know that your input is important to us and will be considered in our future plans.