You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Program compiles as runs as expected, but running cppclean gives a false positive:
cppclean macro-b.h
macro-b.h:1: 'macro-a.h' does not need to be #included
Removing the macro-a.h include leads to a compilation error:
main.c:6:18: error: use of undeclared identifier 'MY_REPLACE_MACRO'
int result = MY_RESULT(3);
^
./macro-b.h:4:7: note: expanded from macro 'MY_RESULT'
( MY_REPLACE_MACRO - (c)) \
The text was updated successfully, but these errors were encountered:
If I have a file with
MACRO_B
callingMACRO_A
- which is defined inheader-a.h
, cppclean will complain thatheader-a.h
doesn't need to be included:Three files to reproduce:
Program compiles as runs as expected, but running cppclean gives a false positive:
Removing the
macro-a.h
include leads to a compilation error:The text was updated successfully, but these errors were encountered: