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
.
AlgorithmCxxWork
/
cppcheck
Public
forked from
cppcheck-opensource/cppcheck
Notifications
You must be signed in to change notification settings
Fork
0
Star
0
Code
Pull requests
0
Actions
Projects
Security and quality
0
Insights
Additional navigation options
Code
Pull requests
Actions
Projects
Security and quality
Insights
Commits
Breadcrumbs
History for
cppcheck
test
testcondition.cpp
on
main
User selector
All users
Datepicker
All time
Commit history
Commits on Jun 11, 2022
Fix 11124: FP knownConditionTrueFalse with fruit (#4196)
Show description for 8945c15
pfultz2
authored
8945c15
View commit details
Copy full SHA for 8945c15
View code at this point
Browse repository at this point
Fix 11100: FP knownConditionTrueFalse with getter/setter member functions (#4198)
Show description for 653a1ea
pfultz2
authored
653a1ea
View commit details
Copy full SHA for 653a1ea
View code at this point
Browse repository at this point
Commits on Jun 10, 2022
Fix #10618 FP knownConditionTrueFalse with virtual function (#4194)
Show description for 51c8630
chrchr-github
authored
51c8630
View commit details
Copy full SHA for 51c8630
View code at this point
Browse repository at this point
Commits on Jun 7, 2022
Don't warn for 'x | MACRO' when MACRO is 0 (#4176)
chrchr-github
authored
b80d06b
View commit details
Copy full SHA for b80d06b
View code at this point
Browse repository at this point
Commits on Jun 6, 2022
Don't warn for 'x | 0' in macro (#4172)
Show description for 5245394
chrchr-github
authored
5245394
View commit details
Copy full SHA for 5245394
View code at this point
Browse repository at this point
Commits on Jun 4, 2022
Fix #11082 FN badBitmaskCheck for binary or with 0 (#4170)
Show description for f962436
chrchr-github
authored
f962436
View commit details
Copy full SHA for f962436
View code at this point
Browse repository at this point
Commits on May 24, 2022
Added a regression test for ticket #8892 - FN: knownConditionTrueFalse
orbitcowboy
committed
c303334
View commit details
Copy full SHA for c303334
View code at this point
Browse repository at this point
Commits on May 21, 2022
Fix #8545 FN Condition '...' is always true ' uint16_t i; ( i <= 0xFFFF)' (#4114)
chrchr-github
authored
2a7f00c
View commit details
Copy full SHA for 2a7f00c
View code at this point
Browse repository at this point
Commits on May 11, 2022
Fix #11059 FP multiCondition when variable is assigned in if/else (#4102)
chrchr-github
authored
63a1698
View commit details
Copy full SHA for 63a1698
View code at this point
Browse repository at this point
Commits on May 10, 2022
Add tests for #6323, #6855, #6857 (#4096)
Show description for ad547af
chrchr-github
authored
ad547af
View commit details
Copy full SHA for ad547af
View code at this point
Browse repository at this point
Commits on May 9, 2022
Add test for #6372 (#4090)
Show description for 16ef2c1
chrchr-github
authored
16ef2c1
View commit details
Copy full SHA for 16ef2c1
View code at this point
Browse repository at this point
Add tests for #6870, #10749 (#4089)
chrchr-github
authored
8c0561a
View commit details
Copy full SHA for 8c0561a
View code at this point
Browse repository at this point
Commits on May 3, 2022
Fix #11034 FN duplicateCondition with struct member (#4074)
Show description for 509e42a
chrchr-github
authored
509e42a
View commit details
Copy full SHA for 509e42a
View code at this point
Browse repository at this point
Commits on Apr 30, 2022
Fix 8358: FP: Condition '(number*0)!=0' is always false (#4065)
pfultz2
authored
4e71255
View commit details
Copy full SHA for 4e71255
View code at this point
Browse repository at this point
Commits on Apr 28, 2022
Fix 11006: FP uninitvar with unknown constant (#4056)
pfultz2
authored
aafd1e1
View commit details
Copy full SHA for aafd1e1
View code at this point
Browse repository at this point
Commits on Apr 13, 2022
Add some tests (#4014)
Show description for da1e2b2
chrchr-github
authored
da1e2b2
View commit details
Copy full SHA for da1e2b2
View code at this point
Browse repository at this point
Commits on Apr 11, 2022
Fix #9954 incorrectLogicOperator/knownConditionTrueFalse for constexpr (#4002)
chrchr-github
authored
28a024a
View commit details
Copy full SHA for 28a024a
View code at this point
Browse repository at this point
Commits on Apr 9, 2022
Fix #9789 FP Logical condition considered always false (#3985)
chrchr-github
authored
2bccde0
View commit details
Copy full SHA for 2bccde0
View code at this point
Browse repository at this point
Commits on Apr 7, 2022
Fix #10792 FP knownConditionTrueFalse with double to int cast (#3964)
chrchr-github
authored
52b4aeb
View commit details
Copy full SHA for 52b4aeb
View code at this point
Browse repository at this point
Fix 10418: false negative: knownConditionTrueFalse (#3981)
Show description for 74667d1
pfultz2
authored
74667d1
View commit details
Copy full SHA for 74667d1
View code at this point
Browse repository at this point
Commits on Apr 6, 2022
Fix 10449: Regression: knownConditionTrueFalse (strlen/wcslen) (#3977)
Show description for 4fde7f8
pfultz2
authored
4fde7f8
View commit details
Copy full SHA for 4fde7f8
View code at this point
Browse repository at this point
Commits on Apr 3, 2022
Fix 10647: FN knownConditionTrueFalse for impossible Boolean value (#3968)
Show description for 0547cbc
pfultz2
authored
0547cbc
View commit details
Copy full SHA for 0547cbc
View code at this point
Browse repository at this point
Commits on Mar 22, 2022
Fix #10248 FP knownConditionTrueFalse static variable with direct initialization (#3922)
chrchr-github
authored
3faff5e
View commit details
Copy full SHA for 3faff5e
View code at this point
Browse repository at this point
Commits on Mar 12, 2022
Fix 10851: False positive: known variable value below for loop (#3891)
Show description for ff90236
pfultz2
authored
ff90236
View commit details
Copy full SHA for ff90236
View code at this point
Browse repository at this point
Commits on Feb 28, 2022
Fix 10702: FP knownConditionTrueFalse - Member variable modified (#3857)
Show description for 0b310b9
pfultz2
authored
0b310b9
View commit details
Copy full SHA for 0b310b9
View code at this point
Browse repository at this point
Commits on Feb 10, 2022
removed OVERRIDE and FINAL defines and use the keywords directly (#3767)
firewave
authored
f32583e
View commit details
Copy full SHA for f32583e
View code at this point
Browse repository at this point
Commits on Feb 5, 2022
Update copyright year
danmar
committed
3989408
View commit details
Copy full SHA for 3989408
View code at this point
Browse repository at this point
Commits on Feb 2, 2022
Fix #10484 FP knownConditionTrueFalse with static variable and direct initialization / partial fix for #10248 (#3728)
chrchr-github
authored
a20465e
View commit details
Copy full SHA for a20465e
View code at this point
Browse repository at this point
Commits on Jan 27, 2022
avoid dependency on transitive includes - based on include-what-you-use (#3757)
firewave
authored
171da2e
View commit details
Copy full SHA for 171da2e
View code at this point
Browse repository at this point
Commits on Jan 20, 2022
Add test cases for #7899, #7974, #9256 (#3726)
Show description for 7f9ef8c
chrchr-github
authored
7f9ef8c
View commit details
Copy full SHA for 7f9ef8c
View code at this point
Browse repository at this point
Commits on Jan 2, 2022
Fix 10659: FP knownConditionTrueFalse - C++17 structured binding (#3662)
pfultz2
authored
71a4439
View commit details
Copy full SHA for 71a4439
View code at this point
Browse repository at this point
Commits on Jan 1, 2022
Fix 10223: ValueFlow; known value for a volatile variable (#3658)
pfultz2
authored
0c952ca
View commit details
Copy full SHA for 0c952ca
View code at this point
Browse repository at this point
Commits on Dec 20, 2021
Fix 10437: FP knownConditionTrueFalse after pointer check (#3646)
pfultz2
authored
73f24b4
View commit details
Copy full SHA for 73f24b4
View code at this point
Browse repository at this point
Commits on Dec 18, 2021
Fix #8266 identicalConditionAfterEarlyExit variable modified in if-clause (#3610)
chrchr-github
authored
8df25ec
View commit details
Copy full SHA for 8df25ec
View code at this point
Browse repository at this point
Commits on Dec 15, 2021
Fix 10649: False positive: wrong known value after reassignment (#3631)
pfultz2
authored
5414814
View commit details
Copy full SHA for 5414814
View code at this point
Browse repository at this point
Previous
Next
You can’t perform that action at this time.