AerospaceNU / AerospaceNU/stm32-avionics

Prefer enum classes in C++

Open
#286 0 comments 0 reactions 1 assignee Claimed by @kh9sd View on GitHub
Dominant language
C
Stars
5
Forks
0
PR merge metrics
No merged PRs in 30d

Description

Since all our system code is now C++, we should use enum classes where possible. This means converting all instances of `typedef enum {} name_e` to `enum class Name {}`. All the dumb typedefing we still do is arguably cruft left over from the legacy C code. This should be a zero-cost change from a compiled binary size POV.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.