mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
add ASTContext symbol-graph arg in unit tests
This commit is contained in:
@@ -17,6 +17,7 @@
|
||||
#include "swift/Frontend/ModuleInterfaceLoader.h"
|
||||
#include "swift/Frontend/PrintingDiagnosticConsumer.h"
|
||||
#include "swift/Serialization/Validation.h"
|
||||
#include "swift/SymbolGraphGen/SymbolGraphOptions.h"
|
||||
#include "llvm/ADT/SmallString.h"
|
||||
#include "llvm/Support/VirtualFileSystem.h"
|
||||
|
||||
@@ -100,10 +101,11 @@ protected:
|
||||
langOpts.Target = llvm::Triple(llvm::sys::getDefaultTargetTriple());
|
||||
SearchPathOptions searchPathOpts;
|
||||
ClangImporterOptions clangImpOpts;
|
||||
symbolgraphgen::SymbolGraphOptions symbolGraphOpts;
|
||||
SILOptions silOpts;
|
||||
auto ctx =
|
||||
ASTContext::get(langOpts, typeckOpts, searchPathOpts, clangImpOpts,
|
||||
sourceMgr, diags);
|
||||
symbolGraphOpts, sourceMgr, diags);
|
||||
|
||||
ctx->addModuleInterfaceChecker(
|
||||
std::make_unique<ModuleInterfaceCheckerImpl>(*ctx, cacheDir,
|
||||
|
||||
Reference in New Issue
Block a user