Title: `RULE-6-8-4`: FN for `*this` returning member · Issue #1122 · github/codeql-coding-standards · GitHub
Open Graph Title: `RULE-6-8-4`: FN for `*this` returning member · Issue #1122 · github/codeql-coding-standards
X Title: `RULE-6-8-4`: FN for `*this` returning member · Issue #1122 · github/codeql-coding-standards
Description: Affected rules RULE-6-8-4 Description does not find pointer dereferences for this in member functions. likely need to extend MembersReturningObject to use getASubobjectAccessOfPointee but right now that duplicates results with MembersRet...
Open Graph Description: Affected rules RULE-6-8-4 Description does not find pointer dereferences for this in member functions. likely need to extend MembersReturningObject to use getASubobjectAccessOfPointee but right now...
X Description: Affected rules RULE-6-8-4 Description does not find pointer dereferences for this in member functions. likely need to extend MembersReturningObject to use getASubobjectAccessOfPointee but right now...
Opengraph URL: https://github.com/github/codeql-coding-standards/issues/1122
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"`RULE-6-8-4`: FN for `*this` returning member","articleBody":"### Affected rules\n - RULE-6-8-4\n\n### Description\n\ndoes not find pointer dereferences for this in member functions. \n\nlikely need to extend `MembersReturningObject` to use `getASubobjectAccessOfPointee` but right now that duplicates results with `MembersReturningSubObject` unless other checks are applied to make sure the return is an address or reference\n\n`getASubobjectAccessOfPointee` would also need to be more thoroughly tested in this case\n\n### Example\n```cpp\n\nstruct A {\n int a;\n A \u0026getstructbad2() { return *this; } // NON_COMPLIANT[FALSE_NEGATIVE]\n};\n\n```\n","author":{"url":"https://github.com/knewbury01","@type":"Person","name":"knewbury01"},"datePublished":"2026-04-29T19:21:17.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":0},"url":"https://github.com/1122/codeql-coding-standards/issues/1122"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:9d7a4199-99e9-754b-0993-0fef907a3cc5 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | D12A:1D4720:57A2C0:7E046B:6A637410 |
| html-safe-nonce | 1725c044ac1e566232b0ead09e508db662c02bff1ef92191ef8f6c9c042122e4 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJEMTJBOjFENDcyMDo1N0EyQzA6N0UwNDZCOjZBNjM3NDEwIiwidmlzaXRvcl9pZCI6Ijg2NTczODkxNjgyOTI0OTIzMDQiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 1dd59244e1fbf3a40cfc32e4575a57aad1baf5a22a2b1de1b117efbc6db21bb5 |
| hovercard-subject-tag | issue:4353112216 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/github/codeql-coding-standards/1122/issue_layout |
| twitter:image | https://opengraph.githubassets.com/198f621e83d6fbe86c6fc5cc18269ba237e4fb166a8268b19fdcd9660512e36d/github/codeql-coding-standards/issues/1122 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/198f621e83d6fbe86c6fc5cc18269ba237e4fb166a8268b19fdcd9660512e36d/github/codeql-coding-standards/issues/1122 |
| og:image:alt | Affected rules RULE-6-8-4 Description does not find pointer dereferences for this in member functions. likely need to extend MembersReturningObject to use getASubobjectAccessOfPointee but right now... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | knewbury01 |
| hostname | github.com |
| expected-hostname | github.com |
| None | 15e78334bb345f3864e70c5a376ed0383374123629b9e3022398d9431f6cd8bf |
| turbo-cache-control | no-preview |
| go-import | github.com/github/codeql-coding-standards git https://github.com/github/codeql-coding-standards.git |
| octolytics-dimension-user_id | 9919 |
| octolytics-dimension-user_login | github |
| octolytics-dimension-repository_id | 513154248 |
| octolytics-dimension-repository_nwo | github/codeql-coding-standards |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 513154248 |
| octolytics-dimension-repository_network_root_nwo | github/codeql-coding-standards |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 51da2d8d0a841a1393b806a6559fa9ad757e1666 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width