Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-25668

Add lint rule to ban names reserved by the C++ standard

    XMLWordPrintableJSON

Details

    • Icon: Improvement Improvement
    • Resolution: Unresolved
    • Icon: Minor - P4 Minor - P4
    • None
    • None
    • Internal Code
    • Service Arch

    Description

      The C++ standard reserves identifiers containing a double underscore (__) and identifiers that begin with an underscore followed by a capital letter A through Z (_[A-Z]). The codebase currently contains a few instances of these reserved identifiers. For instance,

      https://github.com/mongodb/mongo/blob/r3.3.10/src/mongo/unittest/unittest.h#L103

      We should clean up existing usages of reserved names and add a lint rule to enforce that they aren't added in the future.

      Attachments

        Activity

          People

            backlog-server-servicearch Backlog - Service Architecture
            david.storch@mongodb.com David Storch
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated: