Sitelet
https://github.com/github/codeql/commits/codeql-cli/v2.27.1/cpp/ql/src/Best%20Practices
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
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 }}
github
/
codeql
Public
Notifications
You must be signed in to change notification settings
Fork
2.1k
Star
10.2k
Code
Issues
1k
Pull requests
480
Discussions
Actions
Projects
Security and quality
0
Insights
Additional navigation options
Code
Issues
Pull requests
Discussions
Actions
Projects
Security and quality
Insights
Commits
Breadcrumbs
History for
codeql
cpp
ql
src
Best Practices
on
codeql-cli/v2.27.1
User selector
All users
Datepicker
All time
Commit history
Commits on Aug 22, 2026
Use HTTPS for Wikimedia query-help links
miachillgood
committed
c8afb1d
View commit details
Copy full SHA for c8afb1d
View code at this point
Browse repository at this point
Commits on Sep 3, 2025
C++: Fix some Ql4Ql violations.
michaelnebel
committed
83d53ba
View commit details
Copy full SHA for 83d53ba
View code at this point
Browse repository at this point
Commits on Aug 15, 2025
C++: SloppyGlobal: Don't alert on template instantiations, only the template
igfoo
committed
4b78606
View commit details
Copy full SHA for 4b78606
View code at this point
Browse repository at this point
Commits on Jan 7, 2025
C++: Silence alerts coming from CMake test compilation files
jketema
committed
06f6bac
View commit details
Copy full SHA for 06f6bac
View code at this point
Browse repository at this point
Commits on Dec 17, 2024
C++: Introduce a new base class for template parameters
Show description for b7d1da8
jketema
committed
b7d1da8
View commit details
Copy full SHA for b7d1da8
View code at this point
Browse repository at this point
Commits on Dec 4, 2024
C++: Fix a join-order problem that happens on #18207.
MathiasVP
committed
6fd9e19
View commit details
Copy full SHA for 6fd9e19
View code at this point
Browse repository at this point
Commits on Nov 28, 2024
Update cpp/ql/src/Best Practices/GuardedFree.qhelp
Show description for 6d37efc
jketema
and
mchammer01
authored
6d37efc
View commit details
Copy full SHA for 6d37efc
View code at this point
Browse repository at this point
Update cpp/ql/src/Best Practices/GuardedFree.qhelp
Show description for f9d9f9b
jketema
and
mchammer01
authored
f9d9f9b
View commit details
Copy full SHA for f9d9f9b
View code at this point
Browse repository at this point
Update cpp/ql/src/Best Practices/GuardedFree.qhelp
Show description for 088a3ef
jketema
and
mchammer01
authored
088a3ef
View commit details
Copy full SHA for 088a3ef
View code at this point
Browse repository at this point
Commits on Nov 26, 2024
C++: More qlhelp fixes
jketema
committed
6aa7c93
View commit details
Copy full SHA for 6aa7c93
View code at this point
Browse repository at this point
C++: Add missing `</p>` to qlhelp
jketema
committed
e1f70a0
View commit details
Copy full SHA for e1f70a0
View code at this point
Browse repository at this point
C++: Promote `cpp/guarded-free`
jketema
committed
d9b278d
View commit details
Copy full SHA for d9b278d
View code at this point
Browse repository at this point
Commits on Oct 1, 2024
C++: Reinstate accidentally-deleted comment
calumgrant
committed
cd1f10c
View commit details
Copy full SHA for cd1f10c
View code at this point
Browse repository at this point
C++: Use Function::hasErrors in queries
calumgrant
committed
59a77d7
View commit details
Copy full SHA for 59a77d7
View code at this point
Browse repository at this point
Commits on Jan 10, 2023
C++: Remove omittable exists variables
atorralba
committed
3fcc99e
View commit details
Copy full SHA for 3fcc99e
View code at this point
Browse repository at this point
Commits on Dec 7, 2022
C++: Better solution.
geoffw0
committed
1d4631e
View commit details
Copy full SHA for 1d4631e
View code at this point
Browse repository at this point
C++: Fix cpp/offset-use-before-range-check performance.
geoffw0
committed
627162b
View commit details
Copy full SHA for 627162b
View code at this point
Browse repository at this point
Commits on Oct 25, 2022
C++: Rename predicate.
geoffw0
committed
257748d
View commit details
Copy full SHA for 257748d
View code at this point
Browse repository at this point
Commits on Oct 24, 2022
C++: Fix rare performance issue on cpp/comma-before-misleading-indentation.
geoffw0
committed
6f77e14
View commit details
Copy full SHA for 6f77e14
View code at this point
Browse repository at this point
Commits on Oct 18, 2022
Merge pull request #10510 from geoffw0/staticfn
Show description for 73f977c
geoffw0
authored
73f977c
View commit details
Copy full SHA for 73f977c
View code at this point
Browse repository at this point
Commits on Oct 12, 2022
Merge branch 'main' into cpp/comma-before-misleading-indentation
d10c
authored
949d3e1
View commit details
Copy full SHA for 949d3e1
View code at this point
Browse repository at this point
C++: Add Wikipedia references to QHelp
d10c
committed
695d8c6
View commit details
Copy full SHA for 695d8c6
View code at this point
Browse repository at this point
C++: no parens in select message
Show description for 93c0137
d10c
committed
93c0137
View commit details
Copy full SHA for 93c0137
View code at this point
Browse repository at this point
C++: s/put/but/ typo in QHelp
d10c
committed
b42b883
View commit details
Copy full SHA for b42b883
View code at this point
Browse repository at this point
Apply suggestions from code review
Show description for a567709
3 people
authored
a567709
View commit details
Copy full SHA for a567709
View code at this point
Browse repository at this point
Commits on Oct 11, 2022
spelling: genuinely
Show description for f06c15b
jsoref
committed
f06c15b
View commit details
Copy full SHA for f06c15b
View code at this point
Browse repository at this point
Commits on Oct 7, 2022
fix some more style-guide violations in the alert-messages
erik-krogh
committed
66c9705
View commit details
Copy full SHA for 66c9705
View code at this point
Browse repository at this point
Commits on Oct 4, 2022
C++: Tag with CWE-1078, CWE-670
d10c
committed
d8cfdc5
View commit details
Copy full SHA for d8cfdc5
View code at this point
Browse repository at this point
Commits on Sep 30, 2022
C++: Simplify normalizeExpr
Show description for 28606c5
d10c
committed
28606c5
View commit details
Copy full SHA for 28606c5
View code at this point
Browse repository at this point
C++: Exclude commas from SwitchStmt.getExpr()
d10c
committed
9a94222
View commit details
Copy full SHA for 9a94222
View code at this point
Browse repository at this point
C++: Fix docstring per suggestion
Show description for 4938de9
d10c
and
MathiasVP
authored
4938de9
View commit details
Copy full SHA for 4938de9
View code at this point
Browse repository at this point
Commits on Sep 29, 2022
Merge branch 'main' into cpp/comma-before-misleading-indentation
d10c
authored
c37c6a0
View commit details
Copy full SHA for c37c6a0
View code at this point
Browse repository at this point
C++: Update QLDoc
Show description for a124dcf
d10c
committed
a124dcf
View commit details
Copy full SHA for a124dcf
View code at this point
Browse repository at this point
C++: Update .qhelp with precision disclaimer.
d10c
committed
981a979
View commit details
Copy full SHA for 981a979
View code at this point
Browse repository at this point
C++: Fix QL-on-QL Redundant Cast warning
d10c
committed
68b4733
View commit details
Copy full SHA for 68b4733
View code at this point
Browse repository at this point
Previous
Next
You can’t perform that action at this time.