Skip to content

Commit 0bdb883

Browse files
committed
manual
1 parent eae44f9 commit 0bdb883

1 file changed

Lines changed: 15 additions & 0 deletions

File tree

man/manual-premium.md

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)