forked from microsoft/onnxruntime
-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Objective-C API] WIgnore clang documentation warnings from C/C++ hea…
…der usage. (microsoft#9057)
- Loading branch information
Showing
11 changed files
with
38 additions
and
21 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
// Copyright (c) Microsoft Corporation. All rights reserved. | ||
// Licensed under the MIT License. | ||
|
||
// wrapper for ORT C/C++ API headers | ||
|
||
#if defined(__clang__) | ||
#pragma clang diagnostic push | ||
// ignore clang documentation-related warnings | ||
// instead, we will rely on Doxygen warnings for the C/C++ API headers | ||
#pragma clang diagnostic ignored "-Wdocumentation" | ||
#endif // defined(__clang__) | ||
|
||
#include "onnxruntime_c_api.h" | ||
#include "onnxruntime_cxx_api.h" | ||
|
||
#if __has_include("coreml_provider_factory.h") | ||
#define ORT_OBJC_API_COREML_EP_AVAILABLE 1 | ||
#else | ||
#define ORT_OBJC_API_COREML_EP_AVAILABLE 0 | ||
#endif | ||
|
||
#if ORT_OBJC_API_COREML_EP_AVAILABLE | ||
#include "coreml_provider_factory.h" | ||
#endif | ||
|
||
#if defined(__clang__) | ||
#pragma clang diagnostic pop | ||
#endif // defined(__clang__) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,7 +5,7 @@ | |
|
||
#include <exception> | ||
|
||
#include "onnxruntime_cxx_api.h" | ||
#import "src/cxx_api.h" | ||
|
||
NS_ASSUME_NONNULL_BEGIN | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,7 +5,7 @@ | |
|
||
#include <algorithm> | ||
|
||
#include "onnxruntime_cxx_api.h" | ||
#import "src/cxx_api.h" | ||
|
||
namespace { | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,7 +3,7 @@ | |
|
||
#import "ort_env.h" | ||
|
||
#include "onnxruntime_cxx_api.h" | ||
#import "src/cxx_api.h" | ||
|
||
NS_ASSUME_NONNULL_BEGIN | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters