Skip to content

Conversation

@ArthurVasseur
Copy link
Contributor

  • Add EnumValue class to represent individual enum values with name, value, and index
  • Add Enumeration class inheriting from Object to represent enum instances
  • Add EnumerationClass inheriting from Class to manage enum metadata
  • Add EnumIterator and EnumIterable for range-based for loop support with structured bindings
  • Implement ToString/FromString for enum value conversion
  • Implement HasFlag/SetFlag/ToggleFlag for bitwise flag operations
  • Modify CppGenerator to generate EnumerationClass metadata for @cct::Enum marked enums
  • Add unit tests in Enum.cpp demonstrating all features

@ArthurVasseur ArthurVasseur force-pushed the feat/Enumeration branch 2 times, most recently from f2c9052 to ba75d72 Compare December 31, 2025 17:53
@codecov
Copy link

codecov bot commented Dec 31, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 0.00%. Comparing base (a3706c2) to head (8c3f141).
⚠️ Report is 1 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main   #7       +/-   ##
=======================================
- Coverage   70.02%    0   -70.03%     
=======================================
  Files          42    0       -42     
  Lines        2062    0     -2062     
  Branches      279    0      -279     
=======================================
- Hits         1444    0     -1444     
+ Misses        490    0      -490     
+ Partials      128    0      -128     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

- Add EnumValue class to represent individual enum values with name, value, and index
- Add Enumeration class inheriting from Object to represent enum instances
- Add EnumerationClass inheriting from Class to manage enum metadata
- Add EnumIterator and EnumIterable for range-based for loop support with structured bindings
- Implement ToString/FromString for enum value conversion
- Implement HasFlag/SetFlag/ToggleFlag for bitwise flag operations
- Modify CppGenerator to generate EnumerationClass metadata for @cct::Enum marked enums
- Add unit tests in Enum.cpp demonstrating all features
@ArthurVasseur ArthurVasseur merged commit be1875a into main Jan 1, 2026
41 of 48 checks passed
@ArthurVasseur ArthurVasseur deleted the feat/Enumeration branch January 1, 2026 10:38
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