Skip to content

[NFC] [Serialization] Extract the functionality of merging decls from ASTReaderDecl #103022

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Aug 13, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions clang/include/clang/AST/DeclBase.h
Original file line number Diff line number Diff line change
Expand Up @@ -324,6 +324,7 @@ class alignas(8) Decl {
static bool StatisticsEnabled;

protected:
friend class ASTDeclMerger;
friend class ASTDeclReader;
friend class ASTDeclWriter;
friend class ASTNodeImporter;
Expand Down
1 change: 1 addition & 0 deletions clang/include/clang/AST/DeclCXX.h
Original file line number Diff line number Diff line change
Expand Up @@ -256,6 +256,7 @@ class CXXBaseSpecifier {

/// Represents a C++ struct/union/class.
class CXXRecordDecl : public RecordDecl {
friend class ASTDeclMerger;
friend class ASTDeclReader;
friend class ASTDeclWriter;
friend class ASTNodeImporter;
Expand Down
2 changes: 2 additions & 0 deletions clang/include/clang/AST/DeclObjC.h
Original file line number Diff line number Diff line change
Expand Up @@ -1747,6 +1747,7 @@ class ObjCInterfaceDecl : public ObjCContainerDecl
static bool isKnownExtension(ObjCCategoryDecl *Cat);

public:
friend class ASTDeclMerger;
friend class ASTDeclReader;
friend class ASTDeclWriter;
friend class ASTReader;
Expand Down Expand Up @@ -2134,6 +2135,7 @@ class ObjCProtocolDecl : public ObjCContainerDecl,
void setHasODRHash(bool HasHash);

public:
friend class ASTDeclMerger;
friend class ASTDeclReader;
friend class ASTDeclWriter;
friend class ASTReader;
Expand Down
1 change: 1 addition & 0 deletions clang/include/clang/AST/Redeclarable.h
Original file line number Diff line number Diff line change
Expand Up @@ -191,6 +191,7 @@ class Redeclarable {
}

public:
friend class ASTDeclMerger;
friend class ASTDeclReader;
friend class ASTDeclWriter;
friend class IncrementalParser;
Expand Down
1 change: 1 addition & 0 deletions clang/include/clang/Serialization/ASTReader.h
Original file line number Diff line number Diff line change
Expand Up @@ -378,6 +378,7 @@ class ASTReader
{
public:
/// Types of AST files.
friend class ASTDeclMerger;
friend class ASTDeclReader;
friend class ASTIdentifierIterator;
friend class ASTRecordReader;
Expand Down
Loading
Loading