Commit b1803f0
skip annotating classes with only defaulted, deleted, or pure virtual methods (#48)
## 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,
---------
Co-authored-by: Saleem Abdulrasool <compnerd@compnerd.org>1 parent b7cb8df commit b1803f0
2 files changed
Lines changed: 46 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
253 | 253 | | |
254 | 254 | | |
255 | 255 | | |
256 | | - | |
| 256 | + | |
| 257 | + | |
| 258 | + | |
257 | 259 | | |
258 | 260 | | |
259 | 261 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
13 | 31 | | |
14 | 32 | | |
15 | | - | |
16 | 33 | | |
17 | | - | |
| 34 | + | |
18 | 35 | | |
19 | 36 | | |
20 | 37 | | |
21 | 38 | | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
22 | 63 | | |
23 | 64 | | |
24 | 65 | | |
| |||
0 commit comments