-
Notifications
You must be signed in to change notification settings - Fork 37
Move runtime template code to CPPInterOpRuntime.h for issue #697 #761
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||||
|---|---|---|---|---|---|---|---|---|
| @@ -0,0 +1,19 @@ | ||||||||
| #ifndef CPPINTEROP_RUNTIME_H | ||||||||
| #define CPPINTEROP_RUNTIME_H | ||||||||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. warning: header guard does not follow preferred style [llvm-header-guard]
Suggested change
lib/CppInterOp/CppInterOpRuntime.h:18: - #endif // CPPINTEROP_RUNTIME_H
+ #endif // GITHUB_WORKSPACE_LIB_CPPINTEROP_CPPINTEROPRUNTIME_H |
||||||||
|
|
||||||||
| // This header contains runtime utilities previously injected into the | ||||||||
| // interpreter using I->declare(). It is now provided as a real header so that | ||||||||
| // the interpreter can load it on startup. | ||||||||
|
|
||||||||
| namespace __internal_CppInterOp { | ||||||||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. warning: declaration uses identifier '__internal_CppInterOp', which is a reserved identifier [bugprone-reserved-identifier]
Suggested change
|
||||||||
|
|
||||||||
| template <typename Signature> | ||||||||
| struct function; | ||||||||
| template <typename Res, typename... ArgTypes> | ||||||||
| struct function<Res(ArgTypes...)> { | ||||||||
| using result_type = Res; | ||||||||
| }; | ||||||||
|
|
||||||||
| } // namespace __internal_CppInterOp | ||||||||
|
|
||||||||
| #endif // CPPINTEROP_RUNTIME_H | ||||||||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
warning: included header CppInterOpRuntime.h is not used directly [misc-include-cleaner]