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 }}
elfring
/
cppcheck
Public
forked from
cppcheck-opensource/cppcheck
Notifications
You must be signed in to change notification settings
Fork
0
Star
4
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
lib
preprocessor.cpp
on
master
User selector
All users
Datepicker
All time
Commit history
Commits on Mar 7, 2011
Preprocessor: made sure string::iterator is valid after string::erase
Daniel Marjamäki
committed
a177fc4
View commit details
Copy full SHA for a177fc4
View code at this point
Browse repository at this point
Commits on Mar 6, 2011
astyle formatting
Daniel Marjamäki
committed
80235b0
View commit details
Copy full SHA for 80235b0
View code at this point
Browse repository at this point
Always pass unsigned char to ::isspace to prevent runtime error in MSVC
ghewgill
committed
7daa6b9
View commit details
Copy full SHA for 7daa6b9
View code at this point
Browse repository at this point
switchCaseFallThrough is now an inconclusive check
ghewgill
committed
b9df773
View commit details
Copy full SHA for b9df773
View code at this point
Browse repository at this point
Commits on Mar 5, 2011
Relax detection of 'fall through' comment so it only adds a suppression if it immediately precedes 'case' or 'default'
ghewgill
committed
c839490
View commit details
Copy full SHA for c839490
View code at this point
Browse repository at this point
switchCaseFallThrough is now a coding style check (ticket #2623)
ghewgill
committed
8c245cf
View commit details
Copy full SHA for 8c245cf
View code at this point
Browse repository at this point
Support a few more common styles of "fall through" comment
ghewgill
committed
e12ae65
View commit details
Copy full SHA for e12ae65
View code at this point
Browse repository at this point
Commits on Mar 4, 2011
fix case where fall through comment precedes preprocessor line
ghewgill
committed
cc7e05a
View commit details
Copy full SHA for cc7e05a
View code at this point
Browse repository at this point
slightly more flexible detection of 'fall through' comment
ghewgill
committed
1a606a5
View commit details
Copy full SHA for 1a606a5
View code at this point
Browse repository at this point
recognise fall through in c style comments
ghewgill
committed
610d2ef
View commit details
Copy full SHA for 610d2ef
View code at this point
Browse repository at this point
initial simplistic implementation of switchCaseFallThrough
ghewgill
committed
93ea774
View commit details
Copy full SHA for 93ea774
View code at this point
Browse repository at this point
Commits on Mar 1, 2011
refactor #if 0 handling to leave preprocessor statements alone
ghewgill
committed
2efb2ef
View commit details
Copy full SHA for 2efb2ef
View code at this point
Browse repository at this point
handle #if (0) after removing parentheses
ghewgill
committed
a331516
View commit details
Copy full SHA for a331516
View code at this point
Browse repository at this point
handle embedded whitespace in #if 0 processing
ghewgill
committed
31c56d7
View commit details
Copy full SHA for 31c56d7
View code at this point
Browse repository at this point
Commits on Feb 26, 2011
astyle formatting
Daniel Marjamäki
committed
96c8510
View commit details
Copy full SHA for 96c8510
View code at this point
Browse repository at this point
Fixed #2575 (false positive: Preprocessor does not ignore #include within #if 0 block)
Daniel Marjamäki
committed
ab2bf0e
View commit details
Copy full SHA for ab2bf0e
View code at this point
Browse repository at this point
Commits on Feb 23, 2011
Fixed #2578 (Preprocessor does not correctly handle #define A 0 / #if A)
Daniel Marjamäki
committed
32a4923
View commit details
Copy full SHA for 32a4923
View code at this point
Browse repository at this point
Commits on Feb 22, 2011
Fixed #2605 (cppcheck hangs with 100% cpu load ( #define = ))
Daniel Marjamäki
committed
9983aa5
View commit details
Copy full SHA for 9983aa5
View code at this point
Browse repository at this point
Commits on Feb 20, 2011
astyle formatting
Daniel Marjamäki
committed
c52704e
View commit details
Copy full SHA for c52704e
View code at this point
Browse repository at this point
Fixed #2563 (#if equality testing does not ignore parentheses)
Daniel Marjamäki
committed
c3fba35
View commit details
Copy full SHA for c3fba35
View code at this point
Browse repository at this point
Commits on Feb 19, 2011
Support cppcheck-suppression in C style comments
ghewgill
committed
98ab34b
View commit details
Copy full SHA for 98ab34b
View code at this point
Browse repository at this point
Commits on Feb 13, 2011
fixed pre/post increment warings, found during selfcheck
Ettl Martin
committed
d2a1d3f
View commit details
Copy full SHA for d2a1d3f
View code at this point
Browse repository at this point
Commits on Feb 11, 2011
astyle formatting
Daniel Marjamäki
committed
227a610
View commit details
Copy full SHA for 227a610
View code at this point
Browse repository at this point
Fixed #2571 (Preprocessor: better handling for #undef)
ghewgill
authored and
Daniel Marjamäki
committed
f2f2d1f
View commit details
Copy full SHA for f2f2d1f
View code at this point
Browse repository at this point
Fixed #2570 (Preprocessor: #define parsing when there is no whitespace between a macro symbol and its double-quoted string expansion)
ghewgill
authored and
Daniel Marjamäki
committed
751f8d4
View commit details
Copy full SHA for 751f8d4
View code at this point
Browse repository at this point
Fixed #2559 (Refactoring Preprocessor::read)
eriklax
authored and
Daniel Marjamäki
committed
b3e8ef9
View commit details
Copy full SHA for b3e8ef9
View code at this point
Browse repository at this point
Commits on Feb 7, 2011
Fixed #2552 (preprocessor check XX is already guaranteed to be defined -- too eager?)
Daniel Marjamäki
committed
7c9e525
View commit details
Copy full SHA for 7c9e525
View code at this point
Browse repository at this point
Commits on Feb 2, 2011
Use Token::simpleMatch where no patterns are used
rgeissert
committed
8d58631
View commit details
Copy full SHA for 8d58631
View code at this point
Browse repository at this point
Commits on Jan 31, 2011
Formatting, sorry
rgeissert
committed
386de53
View commit details
Copy full SHA for 386de53
View code at this point
Browse repository at this point
Minor optimisations to the preprocessor
rgeissert
committed
29ca5fb
View commit details
Copy full SHA for 29ca5fb
View code at this point
Browse repository at this point
Reduce std::string::find() abuse
rgeissert
committed
b4a249f
View commit details
Copy full SHA for b4a249f
View code at this point
Browse repository at this point
Commits on Jan 30, 2011
Handle "#endif !defined" conditionals
rgeissert
committed
66253af
View commit details
Copy full SHA for 66253af
View code at this point
Browse repository at this point
Check for cpp conditionals where a define is already guaranteed
rgeissert
committed
b944168
View commit details
Copy full SHA for b944168
View code at this point
Browse repository at this point
Remove duplicated defines
Show description for 49848fd
rgeissert
committed
49848fd
View commit details
Copy full SHA for 49848fd
View code at this point
Browse repository at this point
Commits on Jan 16, 2011
Fixed gcc warning.
Pete Johns
committed
9c30081
View commit details
Copy full SHA for 9c30081
View code at this point
Browse repository at this point
Previous
Next
You can’t perform that action at this time.