Skip to content
Open
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions backends/apple/coreml/runtime/delegate/ETCoreMLAsset.mm
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
#import "objc_safe_cast.h"

#import <fcntl.h>
#import <memory>
Copy link

Copilot AI Dec 11, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

C++ standard library headers should use #include instead of #import. The #import directive is specific to Objective-C, while #include is the standard C++ directive. Change to #include <memory> for correctness.

Suggested change
#import <memory>
#include <memory>

Copilot uses AI. Check for mistakes.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It seems like a reasonable review

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should I change all of these? A lot of the others are C++ libs that are #imported as well

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@shoumikhin @metascroy what do you think?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Any updates on this?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Adding @metascroy for reviewing

#import <os/lock.h>
#import <stdio.h>
#import <system_error>
Expand Down
1 change: 1 addition & 0 deletions backends/apple/coreml/runtime/delegate/multiarray.mm
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
#import "objc_array_util.h"

#import <Accelerate/Accelerate.h>
#import <algorithm>
Copy link

Copilot AI Dec 11, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

C++ standard library headers should use #include instead of #import. While this may work in practice, #import is an Objective-C directive and #include is the correct directive for C++ standard headers. Change to #include <algorithm> for correctness.

Suggested change
#import <algorithm>
#include <algorithm>

Copilot uses AI. Check for mistakes.
#import <CoreML/CoreML.h>
#import <functional>
#import <numeric>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@

#pragma once

#include <atomic>
#import <functional>
#include <optional>
#include <memory>
Expand Down
1 change: 1 addition & 0 deletions backends/apple/coreml/runtime/kvstore/statement.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@

#pragma once

#include <memory>
#include <string>
#include <system_error>
#include <sqlite3.h>
Expand Down
Loading