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:
Sasha Krassovsky
2019-07-10 16:39:36 -07:00
committed by Jordan Rose
parent 7e5521cd89
commit 7c5b54f17f
2 changed files with 5 additions and 1 deletions

View File

@@ -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.