Skip to content

improved description for C26435 #5118

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Nov 6, 2024
Merged

Conversation

carsonRadtke
Copy link
Contributor

Documentation improvement motivated by https://developercommunity.visualstudio.com/t/Warning-C26435-contradicts-to-Compiler-E/10355159

When a virtual function declaration includes the final specifier, the warning message for C26435 incorrectly suggested specifying exactly one of the two. The correct solution is to specify zero of the two. The warning message has been updated in MSVC and this documentation change reflects that as well as provides an example of how to fix the incorrect pattern.

Documentation improvement motivated by  https://developercommunity.visualstudio.com/t/Warning-C26435-contradicts-to-Compiler-E/10355159

When a `virtual` function declaration includes the `final` specifier, the warning message for C26435 incorrectly suggested specifying exactly one of the two. The correct solution is to specify zero of the two. The warning message has been updated in MSVC and this documentation change reflects that as well as provides an example of how to fix the incorrect pattern.
Copy link
Contributor

@carsonRadtke : Thanks for your contribution! The author(s) have been notified to review your proposed change.

Copy link
Contributor

Learn Build status updates of commit 8d66e00:

✅ Validation status: passed

File Status Preview URL Details
docs/code-quality/c26435.md ✅Succeeded

For more details, please refer to the build report.

For any questions, please:

@carsonRadtke carsonRadtke changed the title Update c26435.md improved description for C26435 Nov 5, 2024
@Jak-MS
Copy link
Contributor

Jak-MS commented Nov 5, 2024

@TylerMSFT
Can you review the proposed changes?

Important: When the changes are ready for publication, adding a #sign-off comment is the best way to signal that the PR is ready for the review team to merge.

#label:"aq-pr-triaged"
@MicrosoftDocs/public-repo-pr-review-team

@prmerger-automator prmerger-automator bot added the aq-pr-triaged Tracking label for the PR review team label Nov 5, 2024
Copy link
Collaborator

@TylerMSFT TylerMSFT left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you, Carson

@TylerMSFT
Copy link
Collaborator

#sign-off

@Court72 Court72 merged commit 03bbe1b into MicrosoftDocs:main Nov 6, 2024
2 checks passed
@carsonRadtke carsonRadtke deleted the patch-1 branch November 6, 2024 16:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants