cppclean icon indicating copy to clipboard operation
cppclean copied to clipboard

Export macros create false positives in function declarations

Open lesurp opened this issue 7 years ago • 0 comments

Code sample:

#ifndef MEOW_H_ATIHVJ0Z
#define MEOW_H_ATIHVJ0Z

#define some_export_macro

class Meow;

Meow some_export_macro meow();

#endif /* end of include guard: MEOW_H_ATIHVJ0Z */

Expected result:

$ cppclean meow.h

Actual:

$ cppclean meow.h
meow.h:6: 'Meow' not used

lesurp avatar May 15 '18 13:05 lesurp