Commit 4323003
committed
[rootcling] Remove check for unique_ptr members
Since llvm/llvm-project@f5e687d
libc++ implements _LIBCPP_COMPRESSED_PAIR with an anonymous struct (a
Clang extension). This results in unique_ptr having a single FieldDecl
with an empty name that does not appear as a data member in TClass.
Instead, the AST has multiple IndirectFieldDecl's that "refer" into
the anonymous struct.
In ROOT, we now have two options: We could support anonymous structs,
either by allowing data members with empty names or by adding all
indirect field declarations as members. However, I would argue that
we actually do NOT want to support this extension for IO classes.
Instead remove the (questionable) check in rootcling that verifies
the number of data members in unique_ptr.
(cherry picked from commit fff03d2)1 parent 7f81985 commit 4323003
1 file changed
+0
-20
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
78 | 78 | | |
79 | 79 | | |
80 | 80 | | |
81 | | - | |
82 | | - | |
83 | | - | |
84 | | - | |
85 | | - | |
86 | | - | |
87 | | - | |
88 | | - | |
89 | | - | |
90 | | - | |
91 | | - | |
92 | | - | |
93 | | - | |
94 | | - | |
95 | | - | |
96 | | - | |
97 | | - | |
98 | | - | |
99 | | - | |
100 | | - | |
101 | 81 | | |
102 | 82 | | |
103 | 83 | | |
| |||
0 commit comments