Closed
Description
Affected rules
- PRE32-C
Description
This rule should check the use of preprocessor directives in arguments in a function call but it actually raises an alert even when the preprocessor directive is outside the function call.
Example
void func1(void) {
// function body
}
int foo(const int arg) noexcept {
int x{arg};
func1(); // function call
#if MACRO == 7 // Preprocessor directive after the function call.
#endif
return x;
}
int main()
{
return 0;
}