Skip to content

#include guard containing whitespace is not detected. #96

@mrolle45

Description

@mrolle45

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions