When referencing NSObject, it's enough to import objc/NSObject.h. Importing Foundation is unnecessary in these cases.
Details
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
Thanks for cleaning this up!
lldb/test/API/commands/frame/recognizer/main.m | ||
---|---|---|
1 | I guess this could also be just stdio.h (FWIW, the printfs in tests can also be removed as they just require including system headers and are essentially never useful). |
lldb/test/API/commands/frame/recognizer/main.m | ||
---|---|---|
1 | Just to be clear: I'm just saying that removing printfs and everything else that references system headers is usually always a good idea but I'm not asking that you should remove them here too. The stdio.h is perfect for this patch. |
lldb/test/API/commands/frame/recognizer/main.m | ||
---|---|---|
1 | thanks for reviewing closely, a bunch of these changes were automated and I am guilty of not looking closely (if the test passed then I didn't look closer) |
lldb/test/API/commands/frame/recognizer/main.m | ||
---|---|---|
1 | I was actually just looking if we had a "check that we didn't load a type from Foundation"-kind of test (as that was the only thing that I could see this could break |
I guess this could also be just stdio.h (FWIW, the printfs in tests can also be removed as they just require including system headers and are essentially never useful).