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

Support mongo-authored clang-tidy plugins

    • Type: Icon: Improvement Improvement
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 6.3.0-rc0
    • Affects Version/s: None
    • Component/s: None
    • None
    • Fully Compatible

      Create scons build logic and simple check matching SERVER-68867.

      As a result of this ticket
      1. There should be a scons target that builds a shared object that can be used with https://clang.llvm.org/extra/clang-tidy/Contributing.html#out-of-tree-check-plugins. I think the source code should live in buildscripts/clang_tidy/[*.cpp|*.h]. Open to other ideas.

      2. There should be a check matching the requirements of SERVER-68867

      3. The run_clang_tidy.py script should be updated to optionally take an argument to a shared object to be loaded. On the pr you should run this locally and paste the output showing that it is working.

            Assignee:
            daniel.moody@mongodb.com Daniel Moody
            Reporter:
            alex.neben@mongodb.com Alex Neben
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: