Skip to content

skip annotating classes with only defaulted, deleted, or pure virtual methods#48

Merged
andrurogerz merged 3 commits intocompnerd:mainfrom
andrurogerz:virtual-methods
Apr 28, 2025
Merged

skip annotating classes with only defaulted, deleted, or pure virtual methods#48
andrurogerz merged 3 commits intocompnerd:mainfrom
andrurogerz:virtual-methods

Conversation

@andrurogerz
Copy link
Copy Markdown
Collaborator

Purpose

Make annotating at the class level for vtable export more strict.

Background

b7cb8df introduced exporting at the class level for class definitions with out-of-line virtual methods. However, the check for virtual methods requiring export was not as strict as it could be: defaulted, deleted, and pure virtual methods do not require the vtable to be exported.

Validation

  1. New test cases to verify stricter virtual method checks.
  2. Ran tests locally on Windows and Linux,

@andrurogerz andrurogerz changed the title skip annotating classes with default or deleted virtual methods skip annotating classes with only defaulted, deleted, or pure virtual methods Apr 28, 2025
@andrurogerz andrurogerz marked this pull request as ready for review April 28, 2025 19:47
@andrurogerz andrurogerz requested a review from compnerd April 28, 2025 19:47
Comment thread Sources/idt/idt.cc Outdated
andrurogerz and others added 2 commits April 28, 2025 14:03
Co-authored-by: Saleem Abdulrasool <compnerd@compnerd.org>
@andrurogerz andrurogerz merged commit b1803f0 into compnerd:main Apr 28, 2025
2 checks passed
@andrurogerz andrurogerz deleted the virtual-methods branch July 8, 2025 15:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants