1.4.31. Migration to 7.6.1

1.4.31.1. Code Annotations

The behavior was changed to treat omitted optional groups for the regular expression describing the syntax of a comment in the same way as an empty string. This especially means that now the parser function is called for such an omitted optional group and can handle it appropriately. As an example, AXIVION DISABLE is a comment omitting the optional groups for the issue kind and rule names. Previously, parsing of that comment did not call any parser function for issue kind and rule name, and instead used default values for them. Now, the selected parser is called with an empty string, and the built-in parser functions have been updated to treat the empty string like the previous default values.

This change also removed the previous format attribute defaults which was accessible from old Python configurations. The functionality should now be provided by the corresponding parser function when an empty string is received.

1.4.31.2. Stylechecks

AutosarC++-A15.2.1

The AutosarC++-A15.2.1 rule has been slightly extended to also detect constructors that are not noexcept in initializations of (C++14) static field declarations. Mainly, a new option ignore_const has been added to suppress violations for global variables or static fields defined using constexpr or constinit. Such entities are evaluated during compile time and are safe at program startup.