From 3b51e8679602014c9fe7e84f8d16f77394ded95a Mon Sep 17 00:00:00 2001 From: Ben Barham Date: Wed, 28 Jul 2021 13:38:42 +1000 Subject: [PATCH] [Refactoring] Disable availability checking to reduce errors --- tools/swift-refactor/swift-refactor.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/tools/swift-refactor/swift-refactor.cpp b/tools/swift-refactor/swift-refactor.cpp index f6838f7e555a0..f86930e4220ba 100644 --- a/tools/swift-refactor/swift-refactor.cpp +++ b/tools/swift-refactor/swift-refactor.cpp @@ -294,6 +294,7 @@ int main(int argc, char *argv[]) { Invocation.getLangOptions().AttachCommentsToDecls = true; Invocation.getLangOptions().CollectParsedToken = true; Invocation.getLangOptions().BuildSyntaxTree = true; + Invocation.getLangOptions().DisableAvailabilityChecking = true; if (options::EnableExperimentalConcurrency) Invocation.getLangOptions().EnableExperimentalConcurrency = true;