mirror of
https://github.com/xen-project/xen.git
synced 2026-10-28 02:01:24 +01:00
automation/eclair_analysis: deviate macro count_args_ for MISRA Rule 20.7
The count_args_ macro violates Rule 20.7, but it can't be made compliant with Rule 20.7 without breaking its functionality. Since it's very unlikely for this macro to be misused, it is deviated. No functional change. Signed-off-by: Nicola Vetrini <nicola.vetrini@bugseng.com> Reviewed-by: Stefano Stabellini <sstabellini@kernel.org>
This commit is contained in:
1 parent
7fe9679db9
commit
762a848223
2 files changed
+12
No files matched your search
@@ -390,6 +390,12 @@ Deviations related to MISRA C:2012 Rules:
|
||||
sanity checks in place.
|
||||
- Tagged as `safe` for ECLAIR.
|
||||
|
||||
* - R20.7
|
||||
- The macro `count_args_` is not compliant with the rule, but is not likely
|
||||
to incur in the risk of being misused or lead to developer confusion, and
|
||||
refactoring it to add parentheses breaks its functionality.
|
||||
- Tagged as `safe` for ECLAIR.
|
||||
|
||||
* - R20.12
|
||||
- Variadic macros that use token pasting often employ the gcc extension
|
||||
`ext_paste_comma`, as detailed in `C-language-toolchain.rst`, which is
|
||||
|
||||