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"