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" _______________________________________________ lldb-commits mailing list lldb-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits