Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make C/C++/ObjC include directive scanning pattern more strict #362

Merged
merged 1 commit into from
Mar 3, 2024

Commits on Feb 23, 2024

  1. Make C/C++/ObjC include directive scanning pattern more strict.

    1. Require that the directive is at the beginning of a line, sans
       leading spaces.
    2. Require that the header name is not empty.
    
    This eliminates majority of comments that look like #include directives.
    One practical example is a comment in Boost.Wave that has "#include <>"
    and "#include """ in its body.
    Lastique committed Feb 23, 2024
    Configuration menu
    Copy the full SHA
    e8b98c1 View commit details
    Browse the repository at this point in the history