Skip to content

Conversation

@Vipul-Cariappa
Copy link
Collaborator

Description

And remove IsLValueReferenceType & IsRValueReferenceType

Fixes # (issue)

Type of change

Please tick all options which are relevant.

  • Bug fix
  • New feature
  • Requires documentation updates

Testing

Please describe the test(s) that you added and ran to verify your changes.

Checklist

  • I have read the contribution guide recently

static_cast<unsigned char>(b));
}

enum ReferenceValueKind : std::uint8_t {
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
enum ReferenceValueKind : std::uint8_t {
enum ValueKind : std::uint8_t {

/// 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);
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
CPPINTEROP_API ReferenceValueKind GetReferenceValueKind(TCppType_t type);
CPPINTEROP_API ValueKind GetValueKind(TCppType_t type);

This should take an arbitrary type and value kinds..

@Vipul-Cariappa Vipul-Cariappa force-pushed the dev/GetReferenceValueKind branch from 45c81c1 to a882d9d Compare November 26, 2025 14:28
@github-actions
Copy link
Contributor

clang-tidy review says "All clean, LGTM! 👍"

@codecov
Copy link

codecov bot commented Nov 26, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 79.04%. Comparing base (2df83a9) to head (43f1fe1).
⚠️ Report is 2 commits behind head on main.

Additional details and impacted files

Impacted file tree graph

@@           Coverage Diff           @@
##             main     #758   +/-   ##
=======================================
  Coverage   79.04%   79.04%           
=======================================
  Files           9        9           
  Lines        3879     3880    +1     
=======================================
+ Hits         3066     3067    +1     
  Misses        813      813           
Files with missing lines Coverage Δ
include/CppInterOp/CppInterOp.h 95.12% <ø> (ø)
lib/CppInterOp/CppInterOp.cpp 87.61% <100.00%> (+<0.01%) ⬆️
Files with missing lines Coverage Δ
include/CppInterOp/CppInterOp.h 95.12% <ø> (ø)
lib/CppInterOp/CppInterOp.cpp 87.61% <100.00%> (+<0.01%) ⬆️
🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

Copy link
Contributor

@vgvassilev vgvassilev left a 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`
@Vipul-Cariappa Vipul-Cariappa force-pushed the dev/GetReferenceValueKind branch from a882d9d to 43f1fe1 Compare November 27, 2025 09:18
@Vipul-Cariappa Vipul-Cariappa changed the title add GetReferenceValueKind add GetValueKind Nov 27, 2025
@github-actions
Copy link
Contributor

clang-tidy review says "All clean, LGTM! 👍"

@Vipul-Cariappa Vipul-Cariappa merged commit 6623df3 into compiler-research:main Nov 27, 2025
26 of 36 checks passed
@Vipul-Cariappa Vipul-Cariappa deleted the dev/GetReferenceValueKind branch November 27, 2025 12:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants