CertC-PREΒΆ
Preprocessor
Nested Rules
Prefer inline or static functions to function-like macros |
|
Use parentheses within macros around parameter names |
|
Macro replacement lists should be parenthesized |
|
Prefer typedefs to defines for encoding non-pointer types |
|
Do not reuse a standard header file name |
|
Understand macro replacement when concatenating tokens or performing stringification |
|
Enclose header files in an include guard |
|
Avoid using repeated question marks |
|
Guarantee that header file names are unique |
|
Do not replace secure functions with deprecated or obsolescent functions |
|
Wrap multistatement macros in a do-while loop |
|
Do not conclude macro definitions with a semicolon |
|
Do not define unsafe macros |
|
Use the Standard predefined macros to test for versions and features |
|
Do not create a universal character name through concatenation |
|
Avoid side effects in arguments to unsafe macros |
|
Do not use preprocessor directives in invocations of function-like macros |
Options
Setting an option for this rule means setting the default for all nested rules.
This rule shares the following common options: exclude_in_macros, exclude_messages_in_system_headers, excludes, extend_exclude_to_macro_invocations, includes, justification_checker, languages, post_processing, provider, report_at, severity
The following places define options that affect this rule: Stylechecks, Analysis-GlobalOptions
This rule has no individual options.