Skip to content

Conversation

@planetmarshall
Copy link
Contributor

virtual qualifier on VertexDescriptor descriptor is unnecessary as the class is final, and raises -Wunnecessary-virtual-specifier in Clang 21.1.0+

Closes #178681

Pre-launch Checklist

  • I read the [Contributor Guide] and followed the process outlined there for submitting PRs.
  • I read the [Tree Hygiene] wiki page, which explains my responsibilities.
  • I read and followed the [Flutter Style Guide], including [Features we expect every widget to implement].
  • I signed the [CLA].
  • I listed at least one issue that this PR fixes in the description above.
  • I updated/added relevant documentation (doc comments with ///).
  • I added new tests to check the change I am making, or this PR is [test-exempt].
  • I followed the [breaking change policy] and added [Data Driven Fixes] where supported.
  • All existing and new tests are passing.

@flutter-dashboard
Copy link

It looks like this pull request may not have tests. Please make sure to add tests or get an explicit test exemption before merging.

If you are not sure if you need tests, consider this rule of thumb: the purpose of a test is to make sure someone doesn't accidentally revert the fix. Ask yourself, is there anything in your PR that you feel it is important we not accidentally revert back to how it was before your fix?

Reviewers: Read the Tree Hygiene page and make sure this patch meets those guidelines before LGTMing. If you believe this PR qualifies for a test exemption, contact "@test-exemption-reviewer" in the #hackers channel in Discord (don't just cc them here, they won't see it!). The test exemption team is a small volunteer group, so all reviewers should feel empowered to ask for tests, without delegating that responsibility entirely to the test exemption group.

@github-actions github-actions bot added engine flutter/engine related. See also e: labels. e: impeller Impeller rendering backend issues and features requests labels Nov 17, 2025
Copy link
Contributor

@gemini-code-assist gemini-code-assist bot left a comment

Choose a reason for hiding this comment

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

Code Review

This pull request removes the unnecessary virtual specifier from the VertexDescriptor destructor, given that the class is marked as final. This change resolves a -Wunnecessary-virtual-specifier compiler warning. I have included one suggestion to address a misleading comment adjacent to the change for improved maintainability.


// |Comparable<PipelineVertexDescriptor>|
virtual ~VertexDescriptor();
~VertexDescriptor();
Copy link
Contributor

Choose a reason for hiding this comment

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

medium

While you're making this change, the comment on the preceding line (// |Comparable<PipelineVertexDescriptor>|) appears to be incorrect and could be removed. The destructor is not part of the Comparable interface. Additionally, the comment refers to PipelineVertexDescriptor instead of VertexDescriptor, which is what the class actually inherits from.

Copy link
Member

Choose a reason for hiding this comment

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

Good comment gem gem.

Copy link
Member

@chinmaygarde chinmaygarde left a comment

Choose a reason for hiding this comment

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

lgtm. The gemini review is sound though!

@chinmaygarde chinmaygarde added the autosubmit Merge PR when tree becomes green via auto submit App label Dec 2, 2025
@auto-submit auto-submit bot removed the autosubmit Merge PR when tree becomes green via auto submit App label Dec 2, 2025
@auto-submit
Copy link
Contributor

auto-submit bot commented Dec 2, 2025

autosubmit label was removed for flutter/flutter/178682, because The base commit of the PR is older than 7 days and can not be merged. Please merge the latest changes from the main into this branch and resubmit the PR.

@chinmaygarde chinmaygarde force-pushed the vertex-descriptor-no-virtual branch from 534c845 to 42a6ba5 Compare December 2, 2025 22:25
@chinmaygarde chinmaygarde force-pushed the vertex-descriptor-no-virtual branch from 42a6ba5 to 3acf48c Compare December 8, 2025 19:07
@chinmaygarde chinmaygarde added the autosubmit Merge PR when tree becomes green via auto submit App label Dec 15, 2025
@auto-submit auto-submit bot removed the autosubmit Merge PR when tree becomes green via auto submit App label Dec 15, 2025
@auto-submit
Copy link
Contributor

auto-submit bot commented Dec 15, 2025

autosubmit label was removed for flutter/flutter/178682, because The base commit of the PR is older than 7 days and can not be merged. Please merge the latest changes from the main into this branch and resubmit the PR.

@jason-simmons jason-simmons added this pull request to the merge queue Dec 15, 2025
Merged via the queue into flutter:master with commit 11022f4 Dec 15, 2025
181 checks passed
@planetmarshall planetmarshall deleted the vertex-descriptor-no-virtual branch December 19, 2025 13:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

e: impeller Impeller rendering backend issues and features requests engine flutter/engine related. See also e: labels.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Impeller compilation fails with Clang 21.1.0+

3 participants