Skip to content
Navigation Menu
Sign in
Appearance settings
Platform
AI CODE CREATION
GitHub Copilot
Write better code with AI
GitHub Copilot app
Direct agents from issue to merge
MCP Registry
Integrate external tools
DEVELOPER WORKFLOWS
Actions
Automate any workflow
Codespaces
Instant dev environments
Issues
Plan and track work
Code Review
Manage code changes
Code Quality
Enforce quality at merge
APPLICATION SECURITY
GitHub Advanced Security
Find and fix vulnerabilities
Code security
Secure your code as you build
Secret protection
Stop leaks before they start
EXPLORE
Why GitHub
Documentation
Blog
Changelog
Marketplace
View all features
Solutions
BY COMPANY SIZE
Enterprises
Small and medium teams
Startups
Nonprofits
BY USE CASE
App Modernization
DevSecOps
DevOps
CI/CD
View all use cases
BY INDUSTRY
Healthcare
Financial services
Manufacturing
Government
View all industries
View all solutions
Resources
EXPLORE BY TOPIC
AI
Software Development
DevOps
Security
View all topics
EXPLORE BY TYPE
Customer stories
Events & webinars
Ebooks & reports
Business insights
GitHub Skills
SUPPORT & SERVICES
Documentation
Customer support
Community forum
Trust center
Partners
View all resources
Open Source
COMMUNITY
GitHub Sponsors
Fund open source developers
PROGRAMS
Security Lab
Maintainer Community
Accelerator
GitHub Stars
Archive Program
REPOSITORIES
Topics
Trending
Collections
Enterprise
ENTERPRISE SOLUTIONS
Enterprise platform
AI-powered developer platform
AVAILABLE ADD-ONS
GitHub Advanced Security
Enterprise-grade security features
Copilot for Business
Enterprise-grade AI features
Premium Support
Enterprise-grade 24/7 support
Pricing
Search
/
Sign in
Sign up
Appearance settings
You signed in with another tab or window.
Reload
to refresh your session.
You signed out in another tab or window.
Reload
to refresh your session.
You switched accounts on another tab or window.
Reload
to refresh your session.
Dismiss alert
{{ message }}
Uh oh!
There was an error while loading.
Please reload this page
.
cppcheck-opensource
/
cppcheck
Public
Notifications
You must be signed in to change notification settings
Fork
1.6k
Star
6.7k
Code
Pull requests
200
Actions
Security and quality
0
Insights
Additional navigation options
Code
Pull requests
Actions
Security and quality
Insights
Commits
Breadcrumbs
History for
cppcheck
test
testunusedvar.cpp
on
2.21.x
User selector
All users
All time
Commit history
Commits on Jun 2, 2026
pass `ErrorLogger` by reference in `Check`/`CheckImpl` (#8601)
firewave
authored
8684514
View commit details
Copy full SHA for 8684514
View code at this point
Browse repository at this point
Commits on May 29, 2026
Fix #14785/14786 FN unusedStructMember (scoped standard type, smart pointer) (#8576)
Show description for 15a4191
chrchr-github
and
web-flow
authored
15a4191
View commit details
Copy full SHA for 15a4191
View code at this point
Browse repository at this point
pass `Settings` by reference in checks (#8593)
firewave
authored
98ac18e
View commit details
Copy full SHA for 98ac18e
View code at this point
Browse repository at this point
Commits on May 28, 2026
split the actual check implementations from the instances (#5323)
firewave
authored
f1379d6
View commit details
Copy full SHA for f1379d6
View code at this point
Browse repository at this point
Commits on Apr 25, 2026
Fix #14637: FP unassignedVariable with reference to array (#8441)
ludviggunne
authored
92d9735
View commit details
Copy full SHA for 92d9735
View code at this point
Browse repository at this point
Add test for #14509 (#8480)
Show description for 6d28ccf
ludviggunne
authored
6d28ccf
View commit details
Copy full SHA for 6d28ccf
View code at this point
Browse repository at this point
Commits on Apr 16, 2026
Fix #14160 FP unreadVariable for smart pointer (#8452)
Show description for 0589dca
chrchr-github
and
web-flow
authored
0589dca
View commit details
Copy full SHA for 0589dca
View code at this point
Browse repository at this point
Commits on Apr 14, 2026
Fix #14535: false positive: unreadVariable (array access after pointer cast) (#8324)
ludviggunne
authored
085cc68
View commit details
Copy full SHA for 085cc68
View code at this point
Browse repository at this point
Fix #14643, #10965, #11704: false positive: unreadVariable for constructors with unknown side effects (#8420)
ludviggunne
authored
01fd500
View commit details
Copy full SHA for 01fd500
View code at this point
Browse repository at this point
Commits on Apr 11, 2026
Fix #14661 Regression while handling arrays of function pointers (#8436)
Show description for bc7cfdf
mptre
authored
bc7cfdf
View commit details
Copy full SHA for bc7cfdf
View code at this point
Browse repository at this point
Commits on Apr 9, 2026
Fix #14635 FN unusedVariable for array of pointers (#8402)
chrchr-github
authored
b599bb4
View commit details
Copy full SHA for b599bb4
View code at this point
Browse repository at this point
Commits on Mar 28, 2026
Fix #11125 FP unreadVariable with loop over array (#8357)
chrchr-github
authored
38a45b4
View commit details
Copy full SHA for 38a45b4
View code at this point
Browse repository at this point
Commits on Mar 2, 2026
Release: Update copyright year (#8285)
danmar
authored
9a00e4a
View commit details
Copy full SHA for 9a00e4a
View code at this point
Browse repository at this point
Commits on Feb 24, 2026
Add tests for #14479 & #14480: False negatives with member pointers (#8244)
Show description for 6c20dbe
ludviggunne
authored
6c20dbe
View commit details
Copy full SHA for 6c20dbe
View code at this point
Browse repository at this point
Commits on Feb 21, 2026
Fix #14483: false negative: unusedStructMember (member pointer) (#8228)
ludviggunne
authored
a5db405
View commit details
Copy full SHA for a5db405
View code at this point
Browse repository at this point
Commits on Feb 6, 2026
Fix #13671 duplicated unreadVariable with assignment in variable declaration (#8139)
Show description for cc24161
3 people
authored
cc24161
View commit details
Copy full SHA for cc24161
View code at this point
Browse repository at this point
Commits on Jan 2, 2026
Fix #14125: false positive: unusedVariable with trailing [[maybe_unused]] attribute (#8029)
ludviggunne
authored
b933258
View commit details
Copy full SHA for b933258
View code at this point
Browse repository at this point
cleaned up includes based on `include-what-you-use` (#8070)
firewave
authored
ac3f534
View commit details
Copy full SHA for ac3f534
View code at this point
Browse repository at this point
Commits on Dec 17, 2025
fixed #14330/#14268 - updated simplecpp to 1.6.4 / adjusted file lookups from `simplecpp::Location` (#8000)
firewave
authored
ea63a21
View commit details
Copy full SHA for ea63a21
View code at this point
Browse repository at this point
Commits on Dec 9, 2025
Fix #13303 FN unreadVariable (iterator) (#8023)
chrchr-github
authored
804c4a4
View commit details
Copy full SHA for 804c4a4
View code at this point
Browse repository at this point
Commits on Dec 7, 2025
Fix #14199 FN unusedVariable with templated type (regression) (#8013)
chrchr-github
authored
028baa2
View commit details
Copy full SHA for 028baa2
View code at this point
Browse repository at this point
Commits on Nov 20, 2025
got rid of test-only `Directive` constructor (#7972)
firewave
authored
1aefbab
View commit details
Copy full SHA for 1aefbab
View code at this point
Browse repository at this point
Commits on Oct 17, 2025
cleaned up includes based on include-what-you-use (#7895)
firewave
authored
5ace300
View commit details
Copy full SHA for 5ace300
View code at this point
Browse repository at this point
Commits on Oct 15, 2025
testrunner: removed unnecessary default constructors from test options (#7889)
firewave
authored
59d9ba3
View commit details
Copy full SHA for 59d9ba3
View code at this point
Browse repository at this point
Commits on Oct 8, 2025
Fix #7458 (FP unusedStructMember with struct in union) (#7844)
danmar
authored
a0e7c5b
View commit details
Copy full SHA for a0e7c5b
View code at this point
Browse repository at this point
Commits on Oct 2, 2025
fix #14130: false positive: unusedStructMember with [[maybe_unused]] (#7818)
ludviggunne
authored
8b2249c
View commit details
Copy full SHA for 8b2249c
View code at this point
Browse repository at this point
fix #14131: False positive: unusedStructMember with __attribute__((unused)) (#7817)
ludviggunne
authored
c8a7ab8
View commit details
Copy full SHA for c8a7ab8
View code at this point
Browse repository at this point
Commits on Sep 23, 2025
Fix #14075 (False positive: unusedStructMember, member usage by alignas is ignored) (#7842)
Show description for 376d7f1
danmar
authored
376d7f1
View commit details
Copy full SHA for 376d7f1
View code at this point
Browse repository at this point
pass a char buffer to simplecpp instead of a stream (#6379)
firewave
authored
20bed39
View commit details
Copy full SHA for 20bed39
View code at this point
Browse repository at this point
Commits on Jul 29, 2025
fix #13977: false negative: unreadVariable with unrelated function call after rvalue declaration (regression) (#7702)
ludviggunne
authored
405edfd
View commit details
Copy full SHA for 405edfd
View code at this point
Browse repository at this point
fix #13269: FN: unusedVariable with structured binding (#7701)
ludviggunne
authored
cc18720
View commit details
Copy full SHA for cc18720
View code at this point
Browse repository at this point
Commits on Jul 4, 2025
fix #13954: Unnamed bit fields are removed. (#7611)
ludviggunne
authored
326a930
View commit details
Copy full SHA for 326a930
View code at this point
Browse repository at this point
Commits on May 28, 2025
Fix #13887 (False positive: template argument reported as unused struct member) (#7551)
danmar
authored
60eb475
View commit details
Copy full SHA for 60eb475
View code at this point
Browse repository at this point
Commits on May 2, 2025
testrunner: added more IDs and columns to expected output (#7489)
firewave
authored
88ef81e
View commit details
Copy full SHA for 88ef81e
View code at this point
Browse repository at this point
Commits on Apr 15, 2025
testrunner: some `SimpleTokenizer` refactoring (#7467)
firewave
authored
20681a3
View commit details
Copy full SHA for 20681a3
View code at this point
Browse repository at this point
Previous
Next
You can’t perform that action at this time.