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