"Mission critical" (built-in) C++ profile contains deprecated rules

Hi,
in the new 2025.1 LTA version there is a Quality Profile called “Mission critical” for the C++ language that contains 4 deprecated rules:

  • Allocation and deallocation functions should not be explicitly declared “static”
  • Empty “case” clauses that fall through to the “default” should be omitted
  • Nested code blocks should not be used
  • The “Rule-of-Zero” should be followed

Needless to say, they cannot be disabled (since this is a built-in profile), so why are they included? We see warnings in the application about it

Hey there.

We saw this. :slightly_frowning_face:

We will fix this (CPP-6130) and backport a fix to the LTA. I believe this is targeted for mid-March.

1 Like