Skip to content

How is header file name with sub-folder name supposed to work together? #14

@ghost

Description

Dear team,

I have the following folder structure:

.
└── dir
    ├── dir1
    │   └── file1.cpp
    └── dir2
        └── collision.hpp

the content of file1.cpp is:

#include <dir3/collision.hpp>

dir3/collision.hpp does not exist in the above demo folder
dir2/collision.hpp is empty.

source: https://github.com/fracting/cpp_dependency_graph_minimal

When I run cpp_dependency_graph visualise_project --root_dir ./dir I got the following chart:

deps

This is a surprise to me because I expect dir1 not to depend on dir2.

Could you kindly clarify if this is indeed a bug, or if there is a specific parameter adjustment that would ensure dir1 does not appear to depend on dir2 in the resulting dependency chart?

My actual use case is more complex than the provided example, which I've simplified for clarity and ease of discussion.

Any advice is appreciated, thanks!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions