René's URL Explorer Experiment


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

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

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

Description: Fixes #402 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/ Note - I tried to make the code compatible with Windows, but was tested only on linux.

Open Graph Description: Fixes #402 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 eve...

X Description: Fixes #402 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 eve...

Opengraph URL: https://github.com/cppcheck-opensource/simplecpp/pull/362

X: @github

direct link

Domain: github.com

route-pattern/:user_id/:repository/pull/:id/files(.:format)
route-controllerpull_requests
route-actionfiles
fetch-noncev2:625ab0c6-5cb1-6e46-5ebd-1fb0e18a47f4
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idA8B4:1ED8:4E0DEBD:6E87A7A:6A4FEDDA
html-safe-nonce3ad3666a4dcff15750848f59285877b2cd07c310d262b8a09341abc4ac67dfd5
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBOEI0OjFFRDg6NEUwREVCRDo2RTg3QTdBOjZBNEZFRERBIiwidmlzaXRvcl9pZCI6IjUyNTU3MTcxNTY1MjAxOTM0OTgiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmac4a2ae1629b80ebd049e9a9a569de605a70693e7f55fbb802cb11656b21be51f7
hovercard-subject-tagpull_request:2005624023
github-keyboard-shortcutsrepository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///pull_requests/show/files
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/cppcheck-opensource/simplecpp/pull/362/files
twitter:imagehttps://avatars.githubusercontent.com/u/1467072?s=400&v=4
twitter:cardsummary_large_image
og:imagehttps://avatars.githubusercontent.com/u/1467072?s=400&v=4
og:image:altFixes #402 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 eve...
og:site_nameGitHub
og:typeobject
hostnamegithub.com
expected-hostnamegithub.com
None19b98c3d9767bb8a56238a89ff8401d1cbdf3bc5c353799aacf49fe6c76b4b7c
turbo-cache-controlno-preview
diff-viewunified
go-importgithub.com/cppcheck-opensource/simplecpp git https://github.com/cppcheck-opensource/simplecpp.git
octolytics-dimension-user_id278097703
octolytics-dimension-user_logincppcheck-opensource
octolytics-dimension-repository_id33434464
octolytics-dimension-repository_nwocppcheck-opensource/simplecpp
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id33434464
octolytics-dimension-repository_network_root_nwocppcheck-opensource/simplecpp
turbo-body-classeslogged-out env-production page-responsive full-width
disable-turbotrue
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
releasef7e270be010aa4de2871991025fbb97f3afe2bcb
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/cppcheck-opensource/simplecpp/pull/362/files#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fcppcheck-opensource%2Fsimplecpp%2Fpull%2F362%2Ffiles
GitHub CopilotWrite better code with AIhttps://github.com/features/copilot
GitHub Copilot appDirect agents from issue to mergehttps://github.com/features/ai/github-app
MCP RegistryNewIntegrate external toolshttps://github.com/mcp
ActionsAutomate any workflowhttps://github.com/features/actions
CodespacesInstant dev environmentshttps://github.com/features/codespaces
IssuesPlan and track workhttps://github.com/features/issues
Code ReviewManage code changeshttps://github.com/features/code-review
GitHub Advanced SecurityFind and fix vulnerabilitieshttps://github.com/security/advanced-security
Code securitySecure your code as you buildhttps://github.com/security/advanced-security/code-security
Secret protectionStop leaks before they starthttps://github.com/security/advanced-security/secret-protection
Why GitHubhttps://github.com/why-github
Documentationhttps://docs.github.com
Bloghttps://github.blog
Changeloghttps://github.blog/changelog
Marketplacehttps://github.com/marketplace
View all featureshttps://github.com/features
Enterpriseshttps://github.com/enterprise
Small and medium teamshttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
App Modernizationhttps://github.com/solutions/use-case/app-modernization
DevSecOpshttps://github.com/solutions/use-case/devsecops
DevOpshttps://github.com/solutions/use-case/devops
CI/CDhttps://github.com/solutions/use-case/ci-cd
View all use caseshttps://github.com/solutions/use-case
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
View all industrieshttps://github.com/solutions/industry
View all solutionshttps://github.com/solutions
AIhttps://github.com/resources/articles?topic=ai
Software Developmenthttps://github.com/resources/articles?topic=software-development
DevOpshttps://github.com/resources/articles?topic=devops
Securityhttps://github.com/resources/articles?topic=security
View all topicshttps://github.com/resources/articles
Customer storieshttps://github.com/customer-stories
Events & webinarshttps://github.com/resources/events
Ebooks & reportshttps://github.com/resources/whitepapers
Business insightshttps://github.com/solutions/executive-insights
GitHub Skillshttps://skills.github.com
Documentationhttps://docs.github.com
Customer supporthttps://support.github.com
Community forumhttps://github.com/orgs/community/discussions
Trust centerhttps://github.com/trust-center
Partnershttps://github.com/partners
View all resourceshttps://github.com/resources
GitHub SponsorsFund open source developershttps://github.com/open-source/sponsors
Security Labhttps://securitylab.github.com
Maintainer Communityhttps://maintainers.github.com
Acceleratorhttps://github.com/open-source/accelerator
GitHub Starshttps://stars.github.com
Archive Programhttps://archiveprogram.github.com
Topicshttps://github.com/topics
Trendinghttps://github.com/trending
Collectionshttps://github.com/collections
Enterprise platformAI-powered developer platformhttps://github.com/enterprise
GitHub Advanced SecurityEnterprise-grade security featureshttps://github.com/security/advanced-security
Copilot for BusinessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/enterprise/premium-support
Pricinghttps://github.com/pricing
Search syntax tipshttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
documentationhttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fcppcheck-opensource%2Fsimplecpp%2Fpull%2F362%2Ffiles
Sign up https://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fpull_requests%2Fshow%2Ffiles&source=header-repo&source_repo=cppcheck-opensource%2Fsimplecpp
Reloadhttps://github.com/cppcheck-opensource/simplecpp/pull/362/files
Reloadhttps://github.com/cppcheck-opensource/simplecpp/pull/362/files
Reloadhttps://github.com/cppcheck-opensource/simplecpp/pull/362/files
Please reload this pagehttps://github.com/cppcheck-opensource/simplecpp/pull/362/files
cppcheck-opensource https://github.com/cppcheck-opensource
simplecpphttps://github.com/cppcheck-opensource/simplecpp
Notifications https://github.com/login?return_to=%2Fcppcheck-opensource%2Fsimplecpp
Fork 104 https://github.com/login?return_to=%2Fcppcheck-opensource%2Fsimplecpp
Star 263 https://github.com/login?return_to=%2Fcppcheck-opensource%2Fsimplecpp
Code https://github.com/cppcheck-opensource/simplecpp
Issues 82 https://github.com/cppcheck-opensource/simplecpp/issues
Pull requests 31 https://github.com/cppcheck-opensource/simplecpp/pulls
Actions https://github.com/cppcheck-opensource/simplecpp/actions
Wiki https://github.com/cppcheck-opensource/simplecpp/wiki
Security and quality 0 https://github.com/cppcheck-opensource/simplecpp/security
Insights https://github.com/cppcheck-opensource/simplecpp/pulse
Code https://github.com/cppcheck-opensource/simplecpp
Issues https://github.com/cppcheck-opensource/simplecpp/issues
Pull requests https://github.com/cppcheck-opensource/simplecpp/pulls
Actions https://github.com/cppcheck-opensource/simplecpp/actions
Wiki https://github.com/cppcheck-opensource/simplecpp/wiki
Security and quality https://github.com/cppcheck-opensource/simplecpp/security
Insights https://github.com/cppcheck-opensource/simplecpp/pulse
Sign up for GitHub https://github.com/signup?return_to=%2Fcppcheck-opensource%2Fsimplecpp%2Fissues%2Fnew%2Fchoose
terms of servicehttps://docs.github.com/terms
privacy statementhttps://docs.github.com/privacy
Sign inhttps://github.com/login?return_to=%2Fcppcheck-opensource%2Fsimplecpp%2Fissues%2Fnew%2Fchoose
danmarhttps://github.com/danmar
cppcheck-opensource:masterhttps://github.com/cppcheck-opensource/simplecpp/tree/master
Conversation 27 https://github.com/cppcheck-opensource/simplecpp/pull/362
Commits 16 https://github.com/cppcheck-opensource/simplecpp/pull/362/commits
Checks 0 https://github.com/cppcheck-opensource/simplecpp/pull/362/checks
Files changed 6 https://github.com/cppcheck-opensource/simplecpp/pull/362/files
fix: use both absolute and relative header paths in header matching https://github.com/cppcheck-opensource/simplecpp/pull/362/files#top
Show all changes 16 commits https://github.com/cppcheck-opensource/simplecpp/pull/362/files
907c443 fix: always use absolute (and simplified) header path whenever possible Tal500 Aug 6, 2024 https://github.com/cppcheck-opensource/simplecpp/pull/362/commits/907c44354a9bcf2509bc073ec30d8fd84e0b7026
4e02592 Merge branch 'master' into absolute-path-header Tal500 Nov 14, 2024 https://github.com/cppcheck-opensource/simplecpp/pull/362/commits/4e0259229fbab1c14f51bc6dfe1fb113eaaac081
17d74df respect relative paths, but check both absolute and relative path id … Nov 14, 2024 https://github.com/cppcheck-opensource/simplecpp/pull/362/commits/17d74dff831aa4046b2af581398bf55f6c567666
f156111 simplify path usage functions to be just strings Nov 17, 2024 https://github.com/cppcheck-opensource/simplecpp/pull/362/commits/f156111b9ce350ff15124a6b999bb8e945932297
28cdb8a tidy fix Nov 17, 2024 https://github.com/cppcheck-opensource/simplecpp/pull/362/commits/28cdb8aa3341b8f6bcab35a20cef7db9013f4162
2893b68 add integration tests Dec 10, 2024 https://github.com/cppcheck-opensource/simplecpp/pull/362/commits/2893b68b9420d3c4b137e3a484ddd3976ce4649d
196a498 run integraion tests on CI-unixish.yml Tal500 Dec 15, 2024 https://github.com/cppcheck-opensource/simplecpp/pull/362/commits/196a498f2b4d7b2e175287417519ccaa9b636c24
52c77b9 Use `pip --user` to avoid macos14 permission issues in CI-unixish.yml Tal500 Dec 15, 2024 https://github.com/cppcheck-opensource/simplecpp/pull/362/commits/52c77b9a824a17425a53e68f3dc8baba63cc1ec8
ef7837a Move the flag `--user` in the pip install row CI-unixish.yml Tal500 Dec 15, 2024 https://github.com/cppcheck-opensource/simplecpp/pull/362/commits/ef7837a5be7be0053dd89929180224ab38dfbe7b
c2e9b67 Try the flag `--break-system-packages` instead of `--user` in CI-unix… Tal500 Dec 15, 2024 https://github.com/cppcheck-opensource/simplecpp/pull/362/commits/c2e9b673ecdda0a29babc68b428a5f03c77340bb
26ee4d9 Set in a more poratable way break-system-packages to be true CI-unixi… Tal500 Dec 15, 2024 https://github.com/cppcheck-opensource/simplecpp/pull/362/commits/26ee4d926d10cce64699ab0decc0500bccd07dfb
3b6fc9c Pytest for Windows in CI-windows.yml Tal500 Dec 15, 2024 https://github.com/cppcheck-opensource/simplecpp/pull/362/commits/3b6fc9cf9dff670e4041ee90bda2fb023b9eff08
9db5d60 Update testutils.py: allow custom SIMPLECPP_EXE_PATH for integration … Tal500 Dec 15, 2024 https://github.com/cppcheck-opensource/simplecpp/pull/362/commits/9db5d609388b3e9d2f895974805f59025bd1f06a
47853fb Update CI-windows.yml: pass SIMPLECPP_EXE_PATH env var Tal500 Dec 15, 2024 https://github.com/cppcheck-opensource/simplecpp/pull/362/commits/47853fb4cc65d14082ce0950d149e475cdb0be92
c026219 Update CI-windows.yml: fix the set command Tal500 Dec 15, 2024 https://github.com/cppcheck-opensource/simplecpp/pull/362/commits/c0262191d560e50f4f369a459ece5aadf6072a13
a402c79 use parametrized tests and improve coverage in integration_test.py Tal500 Dec 22, 2024 https://github.com/cppcheck-opensource/simplecpp/pull/362/commits/a402c7918b316a54a7a51f2ed694d26d57f5bc0c
Clear filters https://github.com/cppcheck-opensource/simplecpp/pull/362/files
Please reload this pagehttps://github.com/cppcheck-opensource/simplecpp/pull/362/files
Please reload this pagehttps://github.com/cppcheck-opensource/simplecpp/pull/362/files
CI-unixish.yml https://github.com/cppcheck-opensource/simplecpp/pull/362/files#diff-95e28f8bc6ae4183efc192884d6569eef7ed14539c51bf576e4b19b59e9972f3
CI-windows.yml https://github.com/cppcheck-opensource/simplecpp/pull/362/files#diff-54a992e31a7ae1c9770d26d40fe1acefa851e7faaf8f127f13ca67d3b8cfad4f
.gitignore https://github.com/cppcheck-opensource/simplecpp/pull/362/files#diff-bc37d034bad564583790a46f19d807abfe519c5671395fd494d8cce506c42947
integration_test.py https://github.com/cppcheck-opensource/simplecpp/pull/362/files#diff-1633196318a48ed42103653fbdf6e7c275dcd81969444fc01a47ae28beff077d
simplecpp.cpp https://github.com/cppcheck-opensource/simplecpp/pull/362/files#diff-c847846a0c414ac05f52e4f9686648f22c76c9bb152579a253b600223c202832
testutils.py https://github.com/cppcheck-opensource/simplecpp/pull/362/files#diff-57a4fbee623b5d3954ca60356bbf656f2a8260dea5eb38b93c3c51e179729d7f
.github/workflows/CI-unixish.ymlhttps://github.com/cppcheck-opensource/simplecpp/pull/362/files#diff-95e28f8bc6ae4183efc192884d6569eef7ed14539c51bf576e4b19b59e9972f3
View file https://github.com/cppcheck-opensource/simplecpp/blob/a402c7918b316a54a7a51f2ed694d26d57f5bc0c/.github/workflows/CI-unixish.yml
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/cppcheck-opensource/simplecpp/pull/362/{{ revealButtonHref }}
https://github.com/cppcheck-opensource/simplecpp/pull/362/files#diff-95e28f8bc6ae4183efc192884d6569eef7ed14539c51bf576e4b19b59e9972f3
https://github.com/cppcheck-opensource/simplecpp/pull/362/files#diff-95e28f8bc6ae4183efc192884d6569eef7ed14539c51bf576e4b19b59e9972f3
https://github.com/cppcheck-opensource/simplecpp/pull/362/files#diff-95e28f8bc6ae4183efc192884d6569eef7ed14539c51bf576e4b19b59e9972f3
.github/workflows/CI-windows.ymlhttps://github.com/cppcheck-opensource/simplecpp/pull/362/files#diff-54a992e31a7ae1c9770d26d40fe1acefa851e7faaf8f127f13ca67d3b8cfad4f
View file https://github.com/cppcheck-opensource/simplecpp/blob/a402c7918b316a54a7a51f2ed694d26d57f5bc0c/.github/workflows/CI-windows.yml
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/cppcheck-opensource/simplecpp/pull/362/{{ revealButtonHref }}
https://github.com/cppcheck-opensource/simplecpp/pull/362/files#diff-54a992e31a7ae1c9770d26d40fe1acefa851e7faaf8f127f13ca67d3b8cfad4f
https://github.com/cppcheck-opensource/simplecpp/pull/362/files#diff-54a992e31a7ae1c9770d26d40fe1acefa851e7faaf8f127f13ca67d3b8cfad4f
.gitignorehttps://github.com/cppcheck-opensource/simplecpp/pull/362/files#diff-bc37d034bad564583790a46f19d807abfe519c5671395fd494d8cce506c42947
View file https://github.com/cppcheck-opensource/simplecpp/blob/a402c7918b316a54a7a51f2ed694d26d57f5bc0c/.gitignore
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/cppcheck-opensource/simplecpp/pull/362/{{ revealButtonHref }}
https://github.com/cppcheck-opensource/simplecpp/pull/362/files#diff-bc37d034bad564583790a46f19d807abfe519c5671395fd494d8cce506c42947
integration_test.pyhttps://github.com/cppcheck-opensource/simplecpp/pull/362/files#diff-1633196318a48ed42103653fbdf6e7c275dcd81969444fc01a47ae28beff077d
View file https://github.com/cppcheck-opensource/simplecpp/blob/a402c7918b316a54a7a51f2ed694d26d57f5bc0c/integration_test.py
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/cppcheck-opensource/simplecpp/pull/362/{{ revealButtonHref }}
simplecpp.cpphttps://github.com/cppcheck-opensource/simplecpp/pull/362/files#diff-c847846a0c414ac05f52e4f9686648f22c76c9bb152579a253b600223c202832
View file https://github.com/cppcheck-opensource/simplecpp/blob/a402c7918b316a54a7a51f2ed694d26d57f5bc0c/simplecpp.cpp
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/cppcheck-opensource/simplecpp/pull/362/{{ revealButtonHref }}
https://github.com/cppcheck-opensource/simplecpp/pull/362/files#diff-c847846a0c414ac05f52e4f9686648f22c76c9bb152579a253b600223c202832
https://github.com/cppcheck-opensource/simplecpp/pull/362/files#diff-c847846a0c414ac05f52e4f9686648f22c76c9bb152579a253b600223c202832
https://github.com/cppcheck-opensource/simplecpp/pull/362/files#diff-c847846a0c414ac05f52e4f9686648f22c76c9bb152579a253b600223c202832
https://github.com/cppcheck-opensource/simplecpp/pull/362/files#diff-c847846a0c414ac05f52e4f9686648f22c76c9bb152579a253b600223c202832
https://github.com/cppcheck-opensource/simplecpp/pull/362/files#diff-c847846a0c414ac05f52e4f9686648f22c76c9bb152579a253b600223c202832
https://github.com/cppcheck-opensource/simplecpp/pull/362/files#diff-c847846a0c414ac05f52e4f9686648f22c76c9bb152579a253b600223c202832
https://github.com/cppcheck-opensource/simplecpp/pull/362/files#diff-c847846a0c414ac05f52e4f9686648f22c76c9bb152579a253b600223c202832
https://github.com/cppcheck-opensource/simplecpp/pull/362/files#diff-c847846a0c414ac05f52e4f9686648f22c76c9bb152579a253b600223c202832
https://github.com/cppcheck-opensource/simplecpp/pull/362/files#diff-c847846a0c414ac05f52e4f9686648f22c76c9bb152579a253b600223c202832
https://github.com/cppcheck-opensource/simplecpp/pull/362/files#diff-c847846a0c414ac05f52e4f9686648f22c76c9bb152579a253b600223c202832
https://github.com/cppcheck-opensource/simplecpp/pull/362/files#diff-c847846a0c414ac05f52e4f9686648f22c76c9bb152579a253b600223c202832
https://github.com/cppcheck-opensource/simplecpp/pull/362/files#diff-c847846a0c414ac05f52e4f9686648f22c76c9bb152579a253b600223c202832
https://github.com/cppcheck-opensource/simplecpp/pull/362/files#diff-c847846a0c414ac05f52e4f9686648f22c76c9bb152579a253b600223c202832
Please reload this pagehttps://github.com/cppcheck-opensource/simplecpp/pull/362/files
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.