Skip to content
GitLab
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • D dynamorio
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 1,467
    • Issues 1,467
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 44
    • Merge requests 44
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages and registries
    • Packages and registries
    • Package Registry
    • Infrastructure Registry
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • DynamoRIO
  • dynamorio
  • Issues
  • #5857
Closed
Open
Issue created Feb 07, 2023 by Derek Bruening@derekbrueningContributor

Cleanup: Make C++ constant style consistent and remove CONSTEXPR define

We have two cleanup issues related to C++ constants:

  1. Now that do not support VS2013 and have C++11 everywhere we can remove this in clients/drcachesim/common/utils.h:
/* TODO(i#2924): Remove this and others like it once we stop supporting VS2013. */
#if defined(WINDOWS) && _MSC_VER < 1900
#    define CONSTEXPR const /* 'constexpr' not supported */
#else
#    define CONSTEXPR constexpr
#endif
  1. We should make the constant variable names consistent in drcachesim. The official style from https://dynamorio.org/page_code_style.html#autotoc_md122 is to use all caps, yet a number of files are using kCamelCase.
Assignee
Assign to
Time tracking