12
12
13
13
#include " SwiftExpressionParser.h"
14
14
15
+ #include " Plugins/Language/Swift/LogChannelSwift.h"
15
16
#include " Plugins/TypeSystem/Swift/SwiftASTContext.h"
16
17
#include " SwiftASTManipulator.h"
17
18
#include " SwiftDiagnostic.h"
@@ -810,6 +811,9 @@ SwiftExpressionParser::GetASTContext(DiagnosticManager &diagnostic_manager) {
810
811
m_swift_ast_ctx.GetLanguageOptions ().EnableDollarIdentifiers = true ;
811
812
m_swift_ast_ctx.GetLanguageOptions ().EnableAccessControl =
812
813
(repl || playground);
814
+ LLDB_LOG (lldb_private::GetSwiftHealthLog (), " Language option EnableAccessControl = {0}" ,
815
+ m_swift_ast_ctx.GetLanguageOptions ().EnableAccessControl );
816
+
813
817
m_swift_ast_ctx.GetLanguageOptions ().EnableTargetOSChecking = false ;
814
818
815
819
auto should_disable_objc_runtime = [&]() {
@@ -825,15 +829,23 @@ SwiftExpressionParser::GetASTContext(DiagnosticManager &diagnostic_manager) {
825
829
};
826
830
if (should_disable_objc_runtime ())
827
831
m_swift_ast_ctx.GetLanguageOptions ().EnableObjCInterop = false ;
832
+ LLDB_LOG (lldb_private::GetSwiftHealthLog (), " Language option EnableObjCInterop = {0}" ,
833
+ m_swift_ast_ctx.GetLanguageOptions ().EnableObjCInterop );
828
834
829
835
m_swift_ast_ctx.GetLanguageOptions ().Playground = repl || playground;
836
+ LLDB_LOG (lldb_private::GetSwiftHealthLog (), " Language option Playground = {0}" ,
837
+ m_swift_ast_ctx.GetLanguageOptions ().Playground );
838
+
830
839
m_swift_ast_ctx.GetIRGenOptions ().Playground = repl || playground;
831
840
832
841
// For the expression parser and REPL we want to relax the
833
842
// requirement that you put "try" in front of every expression that
834
843
// might throw.
835
844
if (repl || !playground)
836
845
m_swift_ast_ctx.GetLanguageOptions ().EnableThrowWithoutTry = true ;
846
+ LLDB_LOG (lldb_private::GetSwiftHealthLog (), " Language option EnableThrowWithoutTry = {0}" ,
847
+ m_swift_ast_ctx.GetLanguageOptions ().EnableThrowWithoutTry );
848
+
837
849
838
850
m_swift_ast_ctx.GetIRGenOptions ().OutputKind =
839
851
swift::IRGenOutputKind::Module;
0 commit comments