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

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

Open
foryoung365 opened this issue Oct 24, 2024 · 0 comments

Comments

@foryoung365
Copy link

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"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant