Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

src: make minor improvements to EnabledDebugList #44350

Merged

Commits on Aug 23, 2022

  1. src: make minor improvements to EnabledDebugList

    Change the underlying type of DebugCategory to unsigned int so that it
    can be safely cast to an unsigned type without having to worry about
    negative values, removing the need for the DCHECK_GE statements.
    
    To fully benefit from type safety, remove DebugCategory::CATEGORY_COUNT
    and instead add a constexpr kDebugCategoryCount.
    
    Remove the second argument from EnabledDebugList::set_enabled() and
    EnabledDebugList::Parse() because it was always set to true.
    tniessen committed Aug 23, 2022
    Configuration menu
    Copy the full SHA
    9045150 View commit details
    Browse the repository at this point in the history