MISRAC++2023-6.5.2 (C++ only)
In this section:
Synopsis
(Advisory) Internal linkage should be specified appropriately.
Enabled by default
No
Severity/Certainty
Low/Medium

Full description
Internal linkage not specified appropriately
Coding standards
This check does not correspond to any coding standard rules.
Code examples
The following code example fails the check and will give a warning:
static void example(){}
The following code example passes the check and will not give a warning about this issue:
namespace {
void example(){}
}