[Lldb-commits] [lldb] af2ea18 - [lldb] Import Foundation in TestConflictingDefinition.py

Jonas Devlieghere via lldb-commits lldb-commits at lists.llvm.org
Fri Apr 8 10:46:40 PDT 2022


Author: Jonas Devlieghere
Date: 2022-04-08T10:46:34-07:00
New Revision: af2ea183f5e3301406724bba116a7e200f108b79

URL: https://github.com/llvm/llvm-project/commit/af2ea183f5e3301406724bba116a7e200f108b79
DIFF: https://github.com/llvm/llvm-project/commit/af2ea183f5e3301406724bba116a7e200f108b79.diff

LOG: [lldb] Import Foundation in TestConflictingDefinition.py

We need to import foundation to get a 'NSLog' declaration when building
against the iOS SDK. This doesn't appear necessary when building against
the macOS SDK, presumable because it gets transitively imported by
objc/NSObject.h

Added: 
    

Modified: 
    lldb/test/API/lang/objc/conflicting-definition/Test/Test.m
    lldb/test/API/lang/objc/conflicting-definition/TestExt/TestExt.m

Removed: 
    


################################################################################
diff  --git a/lldb/test/API/lang/objc/conflicting-definition/Test/Test.m b/lldb/test/API/lang/objc/conflicting-definition/Test/Test.m
index 6b2cb3af80865..34de8b9715966 100644
--- a/lldb/test/API/lang/objc/conflicting-definition/Test/Test.m
+++ b/lldb/test/API/lang/objc/conflicting-definition/Test/Test.m
@@ -1,3 +1,5 @@
+#import <Foundation/Foundation.h>
+
 #import "Test.h"
 
 @implementation Test

diff  --git a/lldb/test/API/lang/objc/conflicting-definition/TestExt/TestExt.m b/lldb/test/API/lang/objc/conflicting-definition/TestExt/TestExt.m
index a14c702787dba..163fde4312f2b 100644
--- a/lldb/test/API/lang/objc/conflicting-definition/TestExt/TestExt.m
+++ b/lldb/test/API/lang/objc/conflicting-definition/TestExt/TestExt.m
@@ -1,3 +1,5 @@
+#import <Foundation/Foundation.h>
+
 #import "TestExt.h"
 #import "Foo.h"
 


        


More information about the lldb-commits mailing list