@@ -266,22 +266,7 @@ class ClangASTImporter {
266
266
// / their counterpart from a C++ module.
267
267
struct ASTImporterDelegate : public clang ::ASTImporter {
268
268
ASTImporterDelegate (ClangASTImporter &main, clang::ASTContext *target_ctx,
269
- clang::ASTContext *source_ctx)
270
- : clang::ASTImporter(*target_ctx, main.m_file_manager, *source_ctx,
271
- main.m_file_manager, true /* minimal*/ ),
272
- m_main (main), m_source_ctx(source_ctx) {
273
- // Target and source ASTContext shouldn't be identical. Importing AST
274
- // nodes within the same AST doesn't make any sense as the whole idea
275
- // is to import them to a different AST.
276
- lldbassert (target_ctx != source_ctx && " Can't import into itself" );
277
- // This is always doing a minimal import of any declarations. This means
278
- // that there has to be an ExternalASTSource in the target ASTContext
279
- // (that should implement the callbacks that complete any declarations
280
- // on demand). Without an ExternalASTSource, this ASTImporter will just
281
- // do a minimal import and the imported declarations won't be completed.
282
- assert (target_ctx->getExternalSource () && " Missing ExternalSource" );
283
- setODRHandling (clang::ASTImporter::ODRHandlingType::Liberal);
284
- }
269
+ clang::ASTContext *source_ctx);
285
270
286
271
// / Scope guard that attaches a CxxModuleHandler to an ASTImporterDelegate
287
272
// / and deattaches it at the end of the scope. Supports being used multiple
0 commit comments