mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
Teach the frontend how to parse TypeCheckerOptions
This commit is contained in:
@@ -83,6 +83,7 @@ struct ModuleBuffers {
|
||||
/// which manages the actual compiler execution.
|
||||
class CompilerInvocation {
|
||||
LangOptions LangOpts;
|
||||
TypeCheckerOptions TypeCheckerOpts;
|
||||
FrontendOptions FrontendOpts;
|
||||
ClangImporterOptions ClangImporterOpts;
|
||||
SearchPathOptions SearchPathOpts;
|
||||
@@ -215,6 +216,11 @@ public:
|
||||
return LangOpts;
|
||||
}
|
||||
|
||||
TypeCheckerOptions &getTypeCheckerOptions() { return TypeCheckerOpts; }
|
||||
const TypeCheckerOptions &getTypeCheckerOptions() const {
|
||||
return TypeCheckerOpts;
|
||||
}
|
||||
|
||||
FrontendOptions &getFrontendOptions() { return FrontendOpts; }
|
||||
const FrontendOptions &getFrontendOptions() const { return FrontendOpts; }
|
||||
|
||||
@@ -648,14 +654,11 @@ private:
|
||||
bool
|
||||
parsePartialModulesAndLibraryFiles(const ImplicitImports &implicitImports);
|
||||
|
||||
OptionSet<TypeCheckingFlags> computeTypeCheckingOptions();
|
||||
|
||||
void forEachFileToTypeCheck(llvm::function_ref<void(SourceFile &)> fn);
|
||||
|
||||
void parseAndTypeCheckMainFileUpTo(SourceFile::ASTStage_t LimitStage,
|
||||
OptionSet<TypeCheckingFlags> TypeCheckOptions);
|
||||
void parseAndTypeCheckMainFileUpTo(SourceFile::ASTStage_t LimitStage);
|
||||
|
||||
void finishTypeChecking(OptionSet<TypeCheckingFlags> TypeCheckOptions);
|
||||
void finishTypeChecking();
|
||||
|
||||
public:
|
||||
const PrimarySpecificPaths &
|
||||
|
||||
Reference in New Issue
Block a user