ClangImporter: don't import clang SPI attributes by default

This commit is contained in:
Xi Ge
2021-09-28 10:46:08 -07:00
parent d301f66f54
commit a4b4b1fa65
8 changed files with 27 additions and 13 deletions

View File

@@ -740,6 +740,9 @@ namespace swift {
/// When set, don't look for or load overlays.
bool DisableOverlayModules = false;
/// When set, import SPI_AVAILABLE symbols with Swift SPI attribtues.
bool EnableClangSPI = false;
/// When set, don't enforce warnings with -Werror.
bool DebuggerSupport = false;
@@ -767,7 +770,8 @@ namespace swift {
DetailedPreprocessingRecord,
ImportForwardDeclarations,
DisableSwiftBridgeAttr,
DisableOverlayModules);
DisableOverlayModules,
EnableClangSPI);
}
};