Skip to content

Conversation

@Vipul-Cariappa
Copy link
Collaborator

No description provided.

Copy link
Contributor

@github-actions github-actions bot left a comment

Choose a reason for hiding this comment

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

clang-tidy made some suggestions

constexpr explicit operator bool() const { return underlying(t); }
};

template <typename T> using Underlying = std::underlying_type_t<T>;
Copy link
Contributor

Choose a reason for hiding this comment

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

warning: no header providing "std::underlying_type_t" is directly included [misc-include-cleaner]

include/CppInterOp/CppInterOp.h:22:

- #include <vector>
+ #include <type_traits>
+ #include <vector>

@codecov
Copy link

codecov bot commented Nov 26, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 79.08%. Comparing base (2df83a9) to head (d13ca03).

Additional details and impacted files

Impacted file tree graph

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


constexpr TruthValue<OperatorArity> operator&(OperatorArity l,
OperatorArity r) {
return OperatorArity(underlying(l) & underlying(r));
Copy link
Contributor

Choose a reason for hiding this comment

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

I do not think arity could be xor-ed -- we have already kBoth.

using TCppObject_t = void*;

enum Operator : unsigned char {
template <typename T> struct TruthValue {
Copy link
Contributor

Choose a reason for hiding this comment

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

I suspect we can forward declare the operators and implement them in the cpp file and then we could hide this class completely from the interface.

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