C++17 if constexpr are tagged as code smell

Looking at https://sonarcloud.io/project/issues?branch=develop&id=org.sonarqube%3Aaudio-tk&open=AWdL4frrEEvrFDMBQQMq&resolved=false, it’s obvious that “if constexpr” are wrongly tagged as “Use curly braces or indentation to denote the code conditionally executed by this statement.”. The code here is perfectly fine and should not be tagged.
As SonarCloud is supposed to be compatible with C++17, this should be fixed.

Hello again @mbrucher,

This is also a false-postive. Here is another ticket. It will be fixed soon.

Thanks,

Thanks a lot for both tickets!

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.