File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -1272,6 +1272,21 @@ Command to activate Misra C++ 2023 checkers:
12721272
12731273 cppcheck --premium=misra-c++-2023 ....
12741274
1275+ ### Checking all C and C++ files
1276+
1277+ The ` cert-c ` and ` misra-c-* ` coding standards target C and therefore the checkers only check C files by default.
1278+
1279+ The ` autosar ` , ` cert-c++ ` and ` misra-c++-* ` coding standards target C++ and therefore the checkers only check C++ files by default.
1280+
1281+ If you want to check all files you can append ": all " to the coding standard. Example:
1282+
1283+ # Misra C checkers are executed on C files, not on C++ files
1284+ cppcheck --premium=misra-c-2025 path
1285+
1286+ # Misra C checkers are executed on C and C++ files
1287+ cppcheck --premium=misra-c-2025:all path
1288+
1289+
12751290## Compliance report
12761291
12771292### Graphical user interface
You can’t perform that action at this time.
0 commit comments