mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
Declare SourceFile::~SourceFile() in header (#26059)
There was an error when including Module.h in an external project with std::default_delete being instantiated when making a std::unique_ptr. This change declares destructor in header file and sets it to default in cpp file.
This commit is contained in:
committed by
Jordan Rose
parent
7e5521cd89
commit
7c5b54f17f
@@ -1095,6 +1095,8 @@ public:
|
||||
ImplicitModuleImportKind ModImpKind, bool KeepParsedTokens = false,
|
||||
bool KeepSyntaxTree = false);
|
||||
|
||||
~SourceFile();
|
||||
|
||||
void addImports(ArrayRef<ImportedModuleDesc> IM);
|
||||
|
||||
enum ImportQueryKind {
|
||||
@@ -1320,7 +1322,7 @@ public:
|
||||
}
|
||||
|
||||
void markDeclWithOpaqueResultTypeAsValidated(ValueDecl *vd);
|
||||
|
||||
|
||||
private:
|
||||
|
||||
/// If not None, the underlying vector should contain tokens of this source file.
|
||||
|
||||
Reference in New Issue
Block a user