Thanks to visit codestin.com
Credit goes to github.com

Skip to content

False positive for top-level header #375

@stur86

Description

@stur86

The check for build/include_subdir only checks that a subdirectory is present at all; it does not check that it's complete or correct, and it does not allow for top level headers that simply don't have a subdirectory. E.g. if the file structure was

src
|
|-- main.cpp
|
|-- utils.hpp

and we had a main.cpp like

#include "utils.hpp"

int main() {
}

this would raise an error, even though everything is correct.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions