pcpp icon indicating copy to clipboard operation
pcpp copied to clipboard

#include guard containing whitespace is not detected.

Open mrolle45 opened this issue 1 year ago • 1 comments

If the source file begins with

# if ! defined X
...
# define X

then this is not considered an include guard. Any whitespace after the ! causes the pattern matching to fail. Similarly with # if !defined (X).

On the other hand, the more common form # ifndef X works fine.

mrolle45 avatar Feb 04 '24 23:02 mrolle45

Thanks for the BR!

ned14 avatar Feb 05 '24 00:02 ned14