◐ Shell
clean mode source ↗

Fix #381 (When there are header files with the same name, the correct file cannot be found) by glankk · Pull Request #443 · cppcheck-opensource/simplecpp

Skip to content

Navigation Menu

Provide feedback

Saved searches

Use saved searches to filter your results more quickly

Sign up

Appearance settings

Merged

danmar

merged 3 commits into

Jun 16, 2025

Conversation

@glankk

The issue is caused by false matches in getFileIdPath, which this fixes. This PR also adds two tests related to path resolution and matching, one for this particular issue of false positives and another one to detect false negatives on case-insensitive systems, which would result in #pragma once breaking. I added them both in this PR because they're related, but I can move the second test to another PR if that's preferable.

@glankk

Tests are failing due to an unrelated issue in testrunner where the TokenList's in the filedata map aren't destroyed after preprocessing.

@danmar

Tests are failing due to an unrelated issue in testrunner where the TokenList's in the filedata map aren't destroyed after preprocessing.

I expect that you will look into it and make sure CI is green.

danmar

@danmar

I feel that the testsuite folder should ideally be removed and that we move such tests to python instead.

@glankk

I've moved the tests to integration_test.py.

2 participants

@glankk @danmar