Skip to content

When there are header files with the same name, the correct file cannot be found #381

@foryoung365

Description

@foryoung365

I created a sample repository to demonstrate this issue, in which there are two header files with the same name same_name.h, one of which will not be resolved by SimpleCpp.
This sample code can be correctly compiled and run by Visual Studio. Although this does not cause issues in this example, in my actual scenario, it led to false positives, and the file parsing was interrupted.

Repository path:
https://github.com/foryoung365/SimpleCppHeaderSeachIssue
You can use the following command to reproduce:

mkdir build

cppcheck --dump --cppcheck-build-dir=build --output-file=result.xml --xml --project=HeaderSeachIssue.sln --project-configuration="Debug|x64"

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