René's URL Explorer Experiment


Title: Add caching of conditional directive chains by glankk · Pull Request #468 · cppcheck-opensource/simplecpp · GitHub

Open Graph Title: Add caching of conditional directive chains by glankk · Pull Request #468 · cppcheck-opensource/simplecpp

X Title: Add caching of conditional directive chains by glankk · Pull Request #468 · cppcheck-opensource/simplecpp

Description: Adds caching for elif, else, and endif tokens that follow if, elif, and else the first time they're processed, so that the preprocessor can jump directly to them the next time the conditional block should be skipped. The next conditional token is cached in the previous token's mutable const Token *nextcond. Having a public mutable member is a bit awkward but seemed like the best solution. The alternative would be to make nextcond private and make preprocess a friend, or make preprocess take a non-const TokenList. In the test case that I used for #447 this change brings the runtime down from over 12 minutes to less than one minute.

Open Graph Description: Adds caching for elif, else, and endif tokens that follow if, elif, and else the first time they're processed, so that the preprocessor can jump directly to them the next time the conditional b...

X Description: Adds caching for elif, else, and endif tokens that follow if, elif, and else the first time they're processed, so that the preprocessor can jump directly to them the next time the condition...

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

X: @github

direct link

Domain: github.com

route-pattern/:user_id/:repository/pull/:id/files(.:format)
route-controllerpull_requests
route-actionfiles
fetch-noncev2:e2bc8625-0019-e4c3-85d5-ab08ae356fa6
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-id91BE:FF1A8:1AC0D:23719:6A50570E
html-safe-nonce36cb59f70967a177e06b4ed2b2278b195b295a237e0e977096d78335258548ae
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5MUJFOkZGMUE4OjFBQzBEOjIzNzE5OjZBNTA1NzBFIiwidmlzaXRvcl9pZCI6IjUwMTkwMzE5ODg1NTc4NjI2NzAiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmac56e8ccf0049f74ace10c2b1f836299b5dee393cf5205ff02d470d15639d0b800
hovercard-subject-tagpull_request:2645887618
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/468/files
twitter:imagehttps://avatars.githubusercontent.com/u/10298420?s=400&v=4
twitter:cardsummary_large_image
og:imagehttps://avatars.githubusercontent.com/u/10298420?s=400&v=4
og:image:altAdds caching for elif, else, and endif tokens that follow if, elif, and else the first time they're processed, so that the preprocessor can jump directly to them the next time the conditional b...
og:site_nameGitHub
og:typeobject
hostnamegithub.com
expected-hostnamegithub.com
Noned6dc8294eb500fa36bbc57472d61fe87c522f9c3c1d64f70f4926f66a66a7efb
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
release7ac0ad2f2c7e4b9056617355fd9e33e22b0c8df9
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/cppcheck-opensource/simplecpp/pull/468/files#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fcppcheck-opensource%2Fsimplecpp%2Fpull%2F468%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%2F468%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/468/files
Reloadhttps://github.com/cppcheck-opensource/simplecpp/pull/468/files
Reloadhttps://github.com/cppcheck-opensource/simplecpp/pull/468/files
Please reload this pagehttps://github.com/cppcheck-opensource/simplecpp/pull/468/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
glankk:skip_conditionalhttps://github.com/glankk/simplecpp/tree/skip_conditional
Conversation 0 https://github.com/cppcheck-opensource/simplecpp/pull/468
Commits 1 https://github.com/cppcheck-opensource/simplecpp/pull/468/commits
Checks 15 https://github.com/cppcheck-opensource/simplecpp/pull/468/checks
Files changed https://github.com/cppcheck-opensource/simplecpp/pull/468/files
Please reload this pagehttps://github.com/cppcheck-opensource/simplecpp/pull/468/files
Add caching of conditional directive chains https://github.com/cppcheck-opensource/simplecpp/pull/468/files#top
Show all changes 1 commit https://github.com/cppcheck-opensource/simplecpp/pull/468/files
1129640 Add conditionals skipping glankk Jul 3, 2025 https://github.com/cppcheck-opensource/simplecpp/pull/468/commits/11296409a794c698a777796c91a281d52352656d
Clear filters https://github.com/cppcheck-opensource/simplecpp/pull/468/files
Please reload this pagehttps://github.com/cppcheck-opensource/simplecpp/pull/468/files
Please reload this pagehttps://github.com/cppcheck-opensource/simplecpp/pull/468/files
simplecpp.cpp https://github.com/cppcheck-opensource/simplecpp/pull/468/files#diff-c847846a0c414ac05f52e4f9686648f22c76c9bb152579a253b600223c202832
simplecpp.h https://github.com/cppcheck-opensource/simplecpp/pull/468/files#diff-8feef6892144dbe750ffc83a1525c796968b56cd4d6500fe8bf22bac61cf9174
simplecpp.cpphttps://github.com/cppcheck-opensource/simplecpp/pull/468/files#diff-c847846a0c414ac05f52e4f9686648f22c76c9bb152579a253b600223c202832
View file https://github.com/glankk/simplecpp/blob/11296409a794c698a777796c91a281d52352656d/simplecpp.cpp
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/cppcheck-opensource/simplecpp/pull/468/{{ revealButtonHref }}
https://github.com/cppcheck-opensource/simplecpp/pull/468/files#diff-c847846a0c414ac05f52e4f9686648f22c76c9bb152579a253b600223c202832
https://github.com/cppcheck-opensource/simplecpp/pull/468/files#diff-c847846a0c414ac05f52e4f9686648f22c76c9bb152579a253b600223c202832
https://github.com/cppcheck-opensource/simplecpp/pull/468/files#diff-c847846a0c414ac05f52e4f9686648f22c76c9bb152579a253b600223c202832
https://github.com/cppcheck-opensource/simplecpp/pull/468/files#diff-c847846a0c414ac05f52e4f9686648f22c76c9bb152579a253b600223c202832
https://github.com/cppcheck-opensource/simplecpp/pull/468/files#diff-c847846a0c414ac05f52e4f9686648f22c76c9bb152579a253b600223c202832
simplecpp.hhttps://github.com/cppcheck-opensource/simplecpp/pull/468/files#diff-8feef6892144dbe750ffc83a1525c796968b56cd4d6500fe8bf22bac61cf9174
View file https://github.com/glankk/simplecpp/blob/11296409a794c698a777796c91a281d52352656d/simplecpp.h
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/cppcheck-opensource/simplecpp/pull/468/{{ revealButtonHref }}
https://github.com/cppcheck-opensource/simplecpp/pull/468/files#diff-8feef6892144dbe750ffc83a1525c796968b56cd4d6500fe8bf22bac61cf9174
https://github.com/cppcheck-opensource/simplecpp/pull/468/files#diff-8feef6892144dbe750ffc83a1525c796968b56cd4d6500fe8bf22bac61cf9174
https://github.com/cppcheck-opensource/simplecpp/pull/468/files#diff-8feef6892144dbe750ffc83a1525c796968b56cd4d6500fe8bf22bac61cf9174
https://github.com/cppcheck-opensource/simplecpp/pull/468/files#diff-8feef6892144dbe750ffc83a1525c796968b56cd4d6500fe8bf22bac61cf9174
Please reload this pagehttps://github.com/cppcheck-opensource/simplecpp/pull/468/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.