Repository navigation
Commit 72d6048
memusage: Make fields of STL helper structs public
The `stl_tree_node`, `list_node` and `unordered_node` class templates
only mimic the layout of the standard library's container nodes, so
that `sizeof` yields an estimate of the memory they use. Their fields
are never accessed.
Since llvm/llvm-project#237374, Clang 24 diagnoses these fields with
`-Wunused-private-field`.
This change drops the `private:` access specifiers. It does not affect
the size or alignment of the structs, as all their fields keep the same
access control, and it is consistent with `stl_shared_counter`.
Github-Pull: #36869
Rebased-From: b9a6b0c1 parent 107ecee commit 72d6048
1 file changed
Lines changed: 0 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
68 | 68 | | |
69 | 69 | | |
70 | 70 | | |
71 | | - | |
72 | 71 | | |
73 | 72 | | |
74 | 73 | | |
| |||
165 | 164 | | |
166 | 165 | | |
167 | 166 | | |
168 | | - | |
169 | 167 | | |
170 | 168 | | |
171 | 169 | | |
| |||
180 | 178 | | |
181 | 179 | | |
182 | 180 | | |
183 | | - | |
184 | 181 | | |
185 | 182 | | |
186 | 183 | | |
| |||
0 commit comments