◐ Shell
clean mode source ↗

fix: use both absolute and relative header paths in header matching by Tal500 · Pull Request #362 · cppcheck-opensource/simplecpp

This fix an issue of importing the same header by different addresses.
The issue is trickier than seems, because if a user used the include dir flag `-I...` with an absolute path, then every matched header was detected to be absolute, but if the import was a relative import to the source file and the source file isn't with an absolute path, than the header is identified by the combined relative path.
See https://sourceforge.net/p/cppcheck/discussion/general/thread/c01f80556b/

@firewave mentioned this pull request

Oct 21, 2024

@Tal500

@Tal500 Tal500 changed the title fix: always use absolute (and simplified) header path whenever possible fix: use both always and relative header paths in header matching

Nov 18, 2024

@Tal500 Tal500 changed the title fix: use both always and relative header paths in header matching fix: use both absolute and relative header paths in header matching

Nov 18, 2024

danmar

@Tal500

@Tal500 Tal500 deleted the absolute-path-header branch

January 6, 2025 16:43

danmar added a commit that referenced this pull request

Feb 12, 2025

danmar added a commit that referenced this pull request

Feb 12, 2025

Tal500 pushed a commit to Tal500/simplecpp that referenced this pull request

Feb 16, 2025