René's URL Explorer Experiment


Title: `DIR-15-8-1`: move assignment self-assignment false positive · Issue #889 · github/codeql-coding-standards · GitHub

Open Graph Title: `DIR-15-8-1`: move assignment self-assignment false positive · Issue #889 · github/codeql-coding-standards

X Title: `DIR-15-8-1`: move assignment self-assignment false positive · Issue #889 · github/codeql-coding-standards

Description: Affected rules DIR-15-8-1 Description Using the "move-and-swap idiom" proposed in the directive's example as a solution to address potential issues with self-assignment leads to an alert. Example #include class resource_manager...

Open Graph Description: Affected rules DIR-15-8-1 Description Using the "move-and-swap idiom" proposed in the directive's example as a solution to address potential issues with self-assignment leads to an alert. Example #...

X Description: Affected rules DIR-15-8-1 Description Using the "move-and-swap idiom" proposed in the directive's example as a solution to address potential issues with self-assignment leads to an al...

Opengraph URL: https://github.com/github/codeql-coding-standards/issues/889

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"`DIR-15-8-1`:  move assignment self-assignment false positive","articleBody":"### Affected rules\n - `DIR-15-8-1`\n\n### Description\n\nUsing the \"move-and-swap idiom\" proposed in the directive's example as a solution to address potential issues with self-assignment leads to an alert.\n\n### Example\n```cpp\n#include \u003cutility\u003e\n\nclass resource_manager {\n  public:\n    resource_manager() = default;\n    ~resource_manager() = default;\n    resource_manager(resource_manager const\u0026) = delete;\n    resource_manager(resource_manager\u0026\u0026) = default;\n    resource_manager\u0026 operator=(resource_manager const\u0026) = delete;\n    resource_manager\u0026 operator=(resource_manager\u0026\u0026 other) \u0026 noexcept {\n        resource_manager temp{std::move(other)};\n        std::swap(resource_, temp.resource_);\n        return *this;\n    }\n  private:\n    using resource = int;\n    resource resource_;\n};\n\nint main() {}\n```\nI am getting a\n```\n\"DIR-15-8-1: User-provided copy assignment operators and move assignment operators shall handle self-assignment\",\"User-provided copy assignment operators and move assignment operators shall handle self-assignment.\",\"error\",\"User defined copy or user defined move does not handle self-assignment correctly.\",\"/main.cpp\",\"10\",\"23\",\"10\",\"31\"\n```\nwhen analyzing with `cpp/misra/src/rules/DIR-15-8-1/CopyAndMoveAssignmentsShallHandleSelfAssignment.ql`.","author":{"url":"https://github.com/fjatWbyT","@type":"Person","name":"fjatWbyT"},"datePublished":"2025-04-24T11:04:24.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":0},"url":"https://github.com/889/codeql-coding-standards/issues/889"}

route-pattern/_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:833fa070-c461-ebe1-4e50-02252037e0e6
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-id8300:29F431:148976B:1B82A90:6964A4F6
html-safe-nonceff60a9452b05f636aa9a42c154ad6d1d234d536a77faa3aa77a67e0ac85997cd
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4MzAwOjI5RjQzMToxNDg5NzZCOjFCODJBOTA6Njk2NEE0RjYiLCJ2aXNpdG9yX2lkIjoiODM3Mjc5ODcyNTM2NzgzMzg0NiIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmace41954a34baf35dd4e97adbb959c7b1657268ceb275cc1f20297909cf05caa80
hovercard-subject-tagissue:3016881059
github-keyboard-shortcutsrepository,issues,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/issues_fragments/issue_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/github/codeql-coding-standards/889/issue_layout
twitter:imagehttps://opengraph.githubassets.com/35f23efa7f82da4d2b92f843c1d98de84475caa61e2a9d2380a73dd905b567e7/github/codeql-coding-standards/issues/889
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/35f23efa7f82da4d2b92f843c1d98de84475caa61e2a9d2380a73dd905b567e7/github/codeql-coding-standards/issues/889
og:image:altAffected rules DIR-15-8-1 Description Using the "move-and-swap idiom" proposed in the directive's example as a solution to address potential issues with self-assignment leads to an alert. Example #...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamefjatWbyT
hostnamegithub.com
expected-hostnamegithub.com
Nonebaa7d9900fdf7b27d604f36887af878d569cfbdcf97126832a5f4f0caf0c6ba5
turbo-cache-controlno-preview
go-importgithub.com/github/codeql-coding-standards git https://github.com/github/codeql-coding-standards.git
octolytics-dimension-user_id9919
octolytics-dimension-user_logingithub
octolytics-dimension-repository_id513154248
octolytics-dimension-repository_nwogithub/codeql-coding-standards
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id513154248
octolytics-dimension-repository_network_root_nwogithub/codeql-coding-standards
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
release842eff1d11f899d02b6b3b98fa3ea4860e64b34e
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/github/codeql-coding-standards/issues/889#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fgithub%2Fcodeql-coding-standards%2Fissues%2F889
GitHub CopilotWrite better code with AIhttps://github.com/features/copilot
GitHub SparkBuild and deploy intelligent appshttps://github.com/features/spark
GitHub ModelsManage and compare promptshttps://github.com/features/models
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
GitHub SponsorsFund open source developershttps://github.com/sponsors
Security Labhttps://securitylab.github.com
Maintainer Communityhttps://maintainers.github.com
Acceleratorhttps://github.com/accelerator
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/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%2Fgithub%2Fcodeql-coding-standards%2Fissues%2F889
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%2Fissues_fragments%2Fissue_layout&source=header-repo&source_repo=github%2Fcodeql-coding-standards
Reloadhttps://github.com/github/codeql-coding-standards/issues/889
Reloadhttps://github.com/github/codeql-coding-standards/issues/889
Reloadhttps://github.com/github/codeql-coding-standards/issues/889
github https://github.com/github
codeql-coding-standardshttps://github.com/github/codeql-coding-standards
Notifications https://github.com/login?return_to=%2Fgithub%2Fcodeql-coding-standards
Fork 72 https://github.com/login?return_to=%2Fgithub%2Fcodeql-coding-standards
Star 181 https://github.com/login?return_to=%2Fgithub%2Fcodeql-coding-standards
Code https://github.com/github/codeql-coding-standards
Issues 104 https://github.com/github/codeql-coding-standards/issues
Pull requests 27 https://github.com/github/codeql-coding-standards/pulls
Actions https://github.com/github/codeql-coding-standards/actions
Projects 1 https://github.com/github/codeql-coding-standards/projects
Models https://github.com/github/codeql-coding-standards/models
Wiki https://github.com/github/codeql-coding-standards/wiki
Security Uh oh! There was an error while loading. Please reload this page. https://github.com/github/codeql-coding-standards/security
Please reload this pagehttps://github.com/github/codeql-coding-standards/issues/889
Insights https://github.com/github/codeql-coding-standards/pulse
Code https://github.com/github/codeql-coding-standards
Issues https://github.com/github/codeql-coding-standards/issues
Pull requests https://github.com/github/codeql-coding-standards/pulls
Actions https://github.com/github/codeql-coding-standards/actions
Projects https://github.com/github/codeql-coding-standards/projects
Models https://github.com/github/codeql-coding-standards/models
Wiki https://github.com/github/codeql-coding-standards/wiki
Security https://github.com/github/codeql-coding-standards/security
Insights https://github.com/github/codeql-coding-standards/pulse
New issuehttps://github.com/login?return_to=https://github.com/github/codeql-coding-standards/issues/889
New issuehttps://github.com/login?return_to=https://github.com/github/codeql-coding-standards/issues/889
DIR-15-8-1: move assignment self-assignment false positivehttps://github.com/github/codeql-coding-standards/issues/889#top
Difficulty-MediumA false positive or false negative report which is expected to take 1-5 days effort to addresshttps://github.com/github/codeql-coding-standards/issues?q=state%3Aopen%20label%3A%22Difficulty-Medium%22
Impact-Mediumhttps://github.com/github/codeql-coding-standards/issues?q=state%3Aopen%20label%3A%22Impact-Medium%22
false positive/false negativeAn issue related to observed false positives or false negatives.https://github.com/github/codeql-coding-standards/issues?q=state%3Aopen%20label%3A%22false%20positive%2Ffalse%20negative%22
https://github.com/fjatWbyT
https://github.com/fjatWbyT
fjatWbyThttps://github.com/fjatWbyT
on Apr 24, 2025https://github.com/github/codeql-coding-standards/issues/889#issue-3016881059
Difficulty-MediumA false positive or false negative report which is expected to take 1-5 days effort to addresshttps://github.com/github/codeql-coding-standards/issues?q=state%3Aopen%20label%3A%22Difficulty-Medium%22
Impact-Mediumhttps://github.com/github/codeql-coding-standards/issues?q=state%3Aopen%20label%3A%22Impact-Medium%22
false positive/false negativeAn issue related to observed false positives or false negatives.https://github.com/github/codeql-coding-standards/issues?q=state%3Aopen%20label%3A%22false%20positive%2Ffalse%20negative%22
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.