File tree Expand file tree Collapse file tree 2 files changed +10
-0
lines changed Expand file tree Collapse file tree 2 files changed +10
-0
lines changed Original file line number Diff line number Diff line change @@ -3814,6 +3814,8 @@ class RecordDecl : public TagDecl {
3814
3814
// / nullptr is returned if no named data member exists.
3815
3815
const FieldDecl *findFirstNamedDataMember () const ;
3816
3816
3817
+ void reorderFields (ArrayRef<Decl *> Decls) const ;
3818
+
3817
3819
private:
3818
3820
// / Deserialize just the fields.
3819
3821
void LoadFieldsFromExternalStorage () const ;
Original file line number Diff line number Diff line change @@ -4148,6 +4148,14 @@ RecordDecl::field_iterator RecordDecl::field_begin() const {
4148
4148
return field_iterator (decl_iterator (FirstDecl));
4149
4149
}
4150
4150
4151
+ void RecordDecl::reorderFields (ArrayRef<Decl *> Decls) const {
4152
+ Decl *NewFirst, *NewLast;
4153
+ std::tie (NewFirst, NewLast) =
4154
+ BuildDeclChain (Decls, false );
4155
+ FirstDecl = NewFirst;
4156
+ LastDecl = NewLast;
4157
+ }
4158
+
4151
4159
// / completeDefinition - Notes that the definition of this type is now
4152
4160
// / complete.
4153
4161
void RecordDecl::completeDefinition () {
You can’t perform that action at this time.
0 commit comments