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

XMLWordPrintableJSON

    • Type: Improvement
    • Resolution: Unresolved
    • Priority: Minor - P4
    • None
    • Affects Version/s: None
    • Component/s: Internal Code
    • Server Programmability
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      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.

            Assignee:
            Unassigned
            Reporter:
            David Storch
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated: