René's URL Explorer Experiment


Title: feat(unused_var): analyze global variables inside function body by miltolstoy · Pull Request #2944 · cppcheck-opensource/cppcheck · GitHub

Open Graph Title: feat(unused_var): analyze global variables inside function body by miltolstoy · Pull Request #2944 · cppcheck-opensource/cppcheck

X Title: feat(unused_var): analyze global variables inside function body by miltolstoy · Pull Request #2944 · cppcheck-opensource/cppcheck

Description: static analysis of C/C++ code. Contribute to cppcheck-opensource/cppcheck development by creating an account on GitHub.

Open Graph Description: Before this PR, any global variable found in function body marked this function as side-effect one. Analyzing global variables more precisely from now. Any help with missed test cases will be highl...

X Description: Before this PR, any global variable found in function body marked this function as side-effect one. Analyzing global variables more precisely from now. Any help with missed test cases will be highl...

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

X: @github

direct link

Domain: github.com

route-pattern/_view_fragments/voltron/pull_requests/show/:user_id/:repository/:id/pull_request_layout(.:format)
route-controllervoltron_pull_requests_fragments
route-actionpull_request_layout
fetch-noncev2:0b22b1d6-fa8c-3468-57ec-7450500c158f
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-id88F8:366857:181BE86:21318E2:6A4EB26B
html-safe-noncebe816655190e653f90349b3e2b269b53363f650dc4ea099a054dd30865010d0a
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4OEY4OjM2Njg1NzoxODFCRTg2OjIxMzE4RTI6NkE0RUIyNkIiLCJ2aXNpdG9yX2lkIjoiOTE0MDYwOTk4NTkzOTQxOTc1NSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmac8fee2733f24488075af16cd846a96cdaf26c2c6ba25120d17406ae636c9b5a38
hovercard-subject-tagpull_request:538918971
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///voltron/pull_requests_fragments/pull_request_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/voltron/pull_requests/show/cppcheck-opensource/cppcheck/2944/pull_request_layout
twitter:imagehttps://opengraph.githubassets.com/e976088e8ddb05e3c79608af402756f2dde9d86f9a8d3d10b3534afd5e76c383/cppcheck-opensource/cppcheck/pull/2944
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/e976088e8ddb05e3c79608af402756f2dde9d86f9a8d3d10b3534afd5e76c383/cppcheck-opensource/cppcheck/pull/2944
og:image:altBefore this PR, any global variable found in function body marked this function as side-effect one. Analyzing global variables more precisely from now. Any help with missed test cases will be highl...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamemiltolstoy
hostnamegithub.com
expected-hostnamegithub.com
None41b6ab3ba6d20a71766ac245b5a4a94c6fc672a9cd4da7d44c1b33ab8bf6a21c
turbo-cache-controlno-cache
go-importgithub.com/cppcheck-opensource/cppcheck git https://github.com/cppcheck-opensource/cppcheck.git
octolytics-dimension-user_id278097703
octolytics-dimension-user_logincppcheck-opensource
octolytics-dimension-repository_id143131
octolytics-dimension-repository_nwocppcheck-opensource/cppcheck
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id143131
octolytics-dimension-repository_network_root_nwocppcheck-opensource/cppcheck
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
releasee6a744804e8e70f97b4d5a18a94dcc63db22f97a
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/cppcheck-opensource/cppcheck/pull/2944#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fcppcheck-opensource%2Fcppcheck%2Fpull%2F2944
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%2Fcppcheck%2Fpull%2F2944
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%2Fvoltron%2Fpull_requests_fragments%2Fpull_request_layout&source=header-repo&source_repo=cppcheck-opensource%2Fcppcheck
Reloadhttps://github.com/cppcheck-opensource/cppcheck/pull/2944
Reloadhttps://github.com/cppcheck-opensource/cppcheck/pull/2944
Reloadhttps://github.com/cppcheck-opensource/cppcheck/pull/2944
Please reload this pagehttps://github.com/cppcheck-opensource/cppcheck/pull/2944
cppcheck-opensource https://github.com/cppcheck-opensource
cppcheckhttps://github.com/cppcheck-opensource/cppcheck
Notifications https://github.com/login?return_to=%2Fcppcheck-opensource%2Fcppcheck
Fork 1.6k https://github.com/login?return_to=%2Fcppcheck-opensource%2Fcppcheck
Star 6.7k https://github.com/login?return_to=%2Fcppcheck-opensource%2Fcppcheck
Code https://github.com/cppcheck-opensource/cppcheck
Pull requests 203 https://github.com/cppcheck-opensource/cppcheck/pulls
Actions https://github.com/cppcheck-opensource/cppcheck/actions
Security and quality 0 https://github.com/cppcheck-opensource/cppcheck/security
Insights https://github.com/cppcheck-opensource/cppcheck/pulse
Code https://github.com/cppcheck-opensource/cppcheck
Pull requests https://github.com/cppcheck-opensource/cppcheck/pulls
Actions https://github.com/cppcheck-opensource/cppcheck/actions
Security and quality https://github.com/cppcheck-opensource/cppcheck/security
Insights https://github.com/cppcheck-opensource/cppcheck/pulse
danmarhttps://github.com/danmar
cppcheck-opensource:mainhttps://github.com/cppcheck-opensource/cppcheck/tree/main
miltolstoy:globals_without_sideefecthttps://github.com/miltolstoy/cppcheck/tree/globals_without_sideefect
Conversationhttps://github.com/cppcheck-opensource/cppcheck/pull/2944
Commits5 (5)https://github.com/cppcheck-opensource/cppcheck/pull/2944/commits
Checkshttps://github.com/cppcheck-opensource/cppcheck/pull/2944/checks
Files changedhttps://github.com/cppcheck-opensource/cppcheck/pull/2944/files
feat(unused_var): analyze global variables inside function bodyhttps://github.com/cppcheck-opensource/cppcheck/pull/2944#top
danmarhttps://github.com/danmar
cppcheck-opensource:mainhttps://github.com/cppcheck-opensource/cppcheck/tree/main
miltolstoy:globals_without_sideefecthttps://github.com/miltolstoy/cppcheck/tree/globals_without_sideefect
https://github.com/miltolstoy
miltolstoyhttps://github.com/miltolstoy
Dec 13, 2020https://github.com/cppcheck-opensource/cppcheck/pull/2944#issue-765203999
Please reload this pagehttps://github.com/cppcheck-opensource/cppcheck/pull/2944
miltolstoyhttps://github.com/miltolstoy
December 13, 2020 11:04https://github.com/cppcheck-opensource/cppcheck/pull/2944#commits-pushed-a71cd03
https://github.com/miltolstoy
feat(unused_var): analyze global variables inside function bodyhttps://github.com/cppcheck-opensource/cppcheck/pull/2944/commits/a71cd03e3b27b54322dd40cc0c4882475a6ae9c2
a71cd03https://github.com/cppcheck-opensource/cppcheck/pull/2944/commits/a71cd03e3b27b54322dd40cc0c4882475a6ae9c2
https://github.com/miltolstoy
self-check error fixhttps://github.com/cppcheck-opensource/cppcheck/pull/2944/commits/d352b158fde7f06ccdff1e430698abf95e2ab850
d352b15https://github.com/cppcheck-opensource/cppcheck/pull/2944/commits/d352b158fde7f06ccdff1e430698abf95e2ab850
https://github.com/amai2012
amai2012https://github.com/amai2012
danmarhttps://github.com/danmar
December 14, 2020 09:12https://github.com/cppcheck-opensource/cppcheck/pull/2944#event-4108079651
https://github.com/danmar
danmarhttps://github.com/danmar
Dec 14, 2020https://github.com/cppcheck-opensource/cppcheck/pull/2944#issuecomment-744386640
Please reload this pagehttps://github.com/cppcheck-opensource/cppcheck/pull/2944
https://github.com/danmar
danmarhttps://github.com/danmar
Dec 14, 2020 https://github.com/cppcheck-opensource/cppcheck/pull/2944#pullrequestreview-551635773
View reviewed changes https://github.com/cppcheck-opensource/cppcheck/pull/2944/files/d352b158fde7f06ccdff1e430698abf95e2ab850
danmarhttps://github.com/danmar
https://github.com/cppcheck-opensource/cppcheck/pull/2944#pullrequestreview-551635773
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/cppcheck-opensource/cppcheck/pull/2944
lib/checkunusedvar.cpphttps://github.com/cppcheck-opensource/cppcheck/pull/2944/files/d352b158fde7f06ccdff1e430698abf95e2ab850#diff-274e511bea038ba56b2904546e03caed681aa491e5c62bb64c7ac35e953d9669
Please reload this pagehttps://github.com/cppcheck-opensource/cppcheck/pull/2944
lib/checkunusedvar.cpphttps://github.com/cppcheck-opensource/cppcheck/pull/2944/files/d352b158fde7f06ccdff1e430698abf95e2ab850#diff-274e511bea038ba56b2904546e03caed681aa491e5c62bb64c7ac35e953d9669
Please reload this pagehttps://github.com/cppcheck-opensource/cppcheck/pull/2944
https://github.com/danmar
danmarhttps://github.com/danmar
Dec 14, 2020 https://github.com/cppcheck-opensource/cppcheck/pull/2944#pullrequestreview-551674068
View reviewed changes https://github.com/cppcheck-opensource/cppcheck/pull/2944/files/d352b158fde7f06ccdff1e430698abf95e2ab850
test/testunusedvar.cpphttps://github.com/cppcheck-opensource/cppcheck/pull/2944/files/d352b158fde7f06ccdff1e430698abf95e2ab850#diff-01b9f5f20a714a3c7b2604c1a3d539a46d669bfe30f50581dc83974cdb56f205
Please reload this pagehttps://github.com/cppcheck-opensource/cppcheck/pull/2944
https://github.com/danmar
danmarhttps://github.com/danmar
Dec 14, 2020 https://github.com/cppcheck-opensource/cppcheck/pull/2944#pullrequestreview-551678150
View reviewed changes https://github.com/cppcheck-opensource/cppcheck/pull/2944/files/d352b158fde7f06ccdff1e430698abf95e2ab850
danmarhttps://github.com/danmar
https://github.com/cppcheck-opensource/cppcheck/pull/2944#pullrequestreview-551678150
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/cppcheck-opensource/cppcheck/pull/2944
lib/checkunusedvar.cpphttps://github.com/cppcheck-opensource/cppcheck/pull/2944/files/d352b158fde7f06ccdff1e430698abf95e2ab850#diff-274e511bea038ba56b2904546e03caed681aa491e5c62bb64c7ac35e953d9669
danmarhttps://github.com/danmar
Dec 14, 2020https://github.com/cppcheck-opensource/cppcheck/pull/2944#discussion_r542569766
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/cppcheck-opensource/cppcheck/pull/2944
miltolstoyhttps://github.com/miltolstoy
Dec 15, 2020https://github.com/cppcheck-opensource/cppcheck/pull/2944#discussion_r543482964
Please reload this pagehttps://github.com/cppcheck-opensource/cppcheck/pull/2944
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/cppcheck-opensource/cppcheck/pull/2944
danmarhttps://github.com/danmar
Dec 15, 2020https://github.com/cppcheck-opensource/cppcheck/pull/2944#discussion_r543635688
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/cppcheck-opensource/cppcheck/pull/2944
miltolstoyhttps://github.com/miltolstoy
Dec 16, 2020https://github.com/cppcheck-opensource/cppcheck/pull/2944#discussion_r544511167
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/cppcheck-opensource/cppcheck/pull/2944
danmarhttps://github.com/danmar
Dec 16, 2020https://github.com/cppcheck-opensource/cppcheck/pull/2944#discussion_r544527071
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/cppcheck-opensource/cppcheck/pull/2944
miltolstoyhttps://github.com/miltolstoy
December 15, 2020 18:15https://github.com/cppcheck-opensource/cppcheck/pull/2944#commits-pushed-4a6018f
https://github.com/miltolstoy
change std::list to std::set for pointersToGlobalshttps://github.com/cppcheck-opensource/cppcheck/pull/2944/commits/4a6018faa51acfa2d3008ddba8cf29de3d326522
4a6018fhttps://github.com/cppcheck-opensource/cppcheck/pull/2944/commits/4a6018faa51acfa2d3008ddba8cf29de3d326522
https://github.com/miltolstoy
treat all operations with global pointers/arrays as side-effecthttps://github.com/cppcheck-opensource/cppcheck/pull/2944/commits/b93f9f945ba0e4c94954a7575886f9ee6fe9d4ee
b93f9f9https://github.com/cppcheck-opensource/cppcheck/pull/2944/commits/b93f9f945ba0e4c94954a7575886f9ee6fe9d4ee
https://github.com/danmar
danmarhttps://github.com/danmar
Dec 17, 2020 https://github.com/cppcheck-opensource/cppcheck/pull/2944#pullrequestreview-554820782
View reviewed changes https://github.com/cppcheck-opensource/cppcheck/pull/2944/files/4a6018faa51acfa2d3008ddba8cf29de3d326522
lib/checkunusedvar.cpphttps://github.com/cppcheck-opensource/cppcheck/pull/2944/files/d352b158fde7f06ccdff1e430698abf95e2ab850..4a6018faa51acfa2d3008ddba8cf29de3d326522#diff-274e511bea038ba56b2904546e03caed681aa491e5c62bb64c7ac35e953d9669
danmarhttps://github.com/danmar
Dec 17, 2020https://github.com/cppcheck-opensource/cppcheck/pull/2944#discussion_r545264391
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/cppcheck-opensource/cppcheck/pull/2944
https://github.com/miltolstoy
update search in pointersToGlobalshttps://github.com/cppcheck-opensource/cppcheck/pull/2944/commits/14d0d328dea18607dc3c9aec3bec8c9226047ad7
14d0d32https://github.com/cppcheck-opensource/cppcheck/pull/2944/commits/14d0d328dea18607dc3c9aec3bec8c9226047ad7
https://github.com/miltolstoy
miltolstoyhttps://github.com/miltolstoy
danmarhttps://github.com/danmar
December 19, 2020 05:24https://github.com/cppcheck-opensource/cppcheck/pull/2944#event-4132160383
https://github.com/danmar
danmarhttps://github.com/danmar
6366a57https://github.com/cppcheck-opensource/cppcheck/commit/6366a577f981f5c0d809bedbb2e16a4342ad0fe2
Dec 19, 2020https://github.com/cppcheck-opensource/cppcheck/pull/2944#event-4132246254
https://github.com/danmar
danmarhttps://github.com/danmar
Dec 19, 2020https://github.com/cppcheck-opensource/cppcheck/pull/2944#issuecomment-748437560
Please reload this pagehttps://github.com/cppcheck-opensource/cppcheck/pull/2944
https://github.com/miltolstoy
miltolstoyhttps://github.com/miltolstoy
Dec 19, 2020https://github.com/cppcheck-opensource/cppcheck/pull/2944#issuecomment-748438292
Please reload this pagehttps://github.com/cppcheck-opensource/cppcheck/pull/2944
added environment variable UNUSEDFUNCTION_ONLY to make sure only the unusedFunction check is being executed #4362 https://github.com/cppcheck-opensource/cppcheck/pull/4362
refs #10663 - only match start pattern in Library::detectContainerInternal() if necessary #4499 https://github.com/cppcheck-opensource/cppcheck/pull/4499
https://github.co/hiddenchars
https://github.com/cppcheck-opensource/cppcheck/pull/{{ revealButtonHref }}
Sign up for freehttps://github.com/join?source=comment-repo
Sign in to commenthttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fcppcheck-opensource%2Fcppcheck%2Fpull%2F2944
https://github.com/danmar
danmar https://github.com/danmar
Please reload this pagehttps://github.com/cppcheck-opensource/cppcheck/pull/2944
https://github.com/miltolstoy
https://github.com/danmar
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.