Community
Participate
Working Groups
Currently, if a code fragment defined as a macro triggers a Codan warning, all occurrences of the macro in code will be marked as warnings. This pretty annoying, especially because the cause of the warning is not clear to the user until she expands the macro. Codan should provide an option to disable errors and warnings in macro expansions except for the problems that correspond to compiler errors.
Which error? Some errors has this option.
(In reply to comment #1) > Which error? Some errors has this option. No break at end of case.
"No break at end of case" has been changed to not produce a warning if the 'case' statement was produced by macro expansion. This is done unconditionally, without an option. I've added "Report problem in statements that come from macro expansion" option to "Unused declaration of variable/function" checker.