-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Expand use of type-safe `BitFlags` and `enum class`. #### Problem - `BitFlags.h` has relatively unsafe deprecated functions. - Some bit flags use `enum` rather than type-safe `enum class`. #### Summary of Changes - Removed deprecated `SetFlags()`, `ClearFlags()`, and `GetFlags()`, replacing uses with `BitFlags`. - BitFlags.h changes: - Default to use `std::underlying_type` rather than requiring it as a template parameter. - Added `BitFlags` operations to reduce uses of type-unsafe `Raw()` and `SetRaw()`: - Multi-argument constructors. - `operator FlagsEnum()`. - `ClearAll()`. - `HasAny()` and `HasAll()`, following the pattern of the existing `HasOnly()`. - Binary `&`. - Converted various bit flag types from `enum` to `enum class`: - BLEEndPoint::ConnectionStateFlags - BLEEndPoint::TimerStateFlags - BLEManagerImpl::Flags - Command::CommandPathFlags - Encoding::HexFlags - GenericConfigurationManagerImpl::Flags - GenericConnectivityManagerImpl_Thread::Flags - GenericConnectivityManagerImpl_WiFi::ConnectivityFlags - bdx::RangeControlFlags - bdx::StatusCode - bdx::TransferControlFlags - bdx::TransferRole * doxygen
- Loading branch information
1 parent
182819f
commit 4b8d558
Showing
59 changed files
with
1,278 additions
and
1,814 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.