-
Notifications
You must be signed in to change notification settings - Fork 37
add GetValueKind
#758
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
add GetValueKind
#758
Conversation
include/CppInterOp/CppInterOp.h
Outdated
| static_cast<unsigned char>(b)); | ||
| } | ||
|
|
||
| enum ReferenceValueKind : std::uint8_t { |
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.
| enum ReferenceValueKind : std::uint8_t { | |
| enum ValueKind : std::uint8_t { |
include/CppInterOp/CppInterOp.h
Outdated
| /// Checks if type is a LValue reference | ||
| CPPINTEROP_API bool IsRValueReferenceType(TCppType_t type); | ||
| /// Get if lvalue or rvalue reference | ||
| CPPINTEROP_API ReferenceValueKind GetReferenceValueKind(TCppType_t type); |
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.
| CPPINTEROP_API ReferenceValueKind GetReferenceValueKind(TCppType_t type); | |
| CPPINTEROP_API ValueKind GetValueKind(TCppType_t type); |
This should take an arbitrary type and value kinds..
45c81c1 to
a882d9d
Compare
|
clang-tidy review says "All clean, LGTM! 👍" |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #758 +/- ##
=======================================
Coverage 79.04% 79.04%
=======================================
Files 9 9
Lines 3879 3880 +1
=======================================
+ Hits 3066 3067 +1
Misses 813 813
🚀 New features to boost your workflow:
|
vgvassilev
left a comment
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.
LGTM!
and remove `IsLValueReferenceType` & `IsRValueReferenceType`
a882d9d to
43f1fe1
Compare
|
clang-tidy review says "All clean, LGTM! 👍" |
6623df3
into
compiler-research:main
Description
And remove
IsLValueReferenceType&IsRValueReferenceTypeFixes # (issue)
Type of change
Please tick all options which are relevant.
Testing
Please describe the test(s) that you added and ran to verify your changes.
Checklist