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

Audit in-header namespace level using statements for correctness and non-pollution

    XMLWordPrintableJSON

Details

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major - P3 Major - P3
    • 3.7.3
    • None
    • None
    • None
    • Fully Compatible
    • ALL
    • Platforms 2018-02-26

    Description

      We have numerous in-header using statements:

      % grep -r '^using .*;' src/mongo/ | grep '\.h:'|wc -l
      138

      Some are basic typedefs. Some improperly import external namespace objects into mongo.

      Filtering for `stdx` which needs to do this, there are just under 100 potential violations:

      % grep -r '^using .;' src/mongo/ | grep '\.h:' | grep -v 'mongo/stdx/.\.h:' | less|wc -l
      98

      Attachments

        Activity

          People

            adam.martin@mongodb.com ADAM Martin (Inactive)
            adam.martin@mongodb.com ADAM Martin (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: