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

clang_tidy_vscode.py should use installed clang-tidy, at least for now

    • Type: Icon: Improvement Improvement
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 8.2.0-rc0
    • Affects Version/s: None
    • Component/s: None
    • None
    • Server Programmability
    • Fully Compatible
    • Programmability 2025-03-31
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      Right now it requires the toolchain be installed because it hardcodes the path to python in the installed v4 toolchain. It also tries to use clang-tidy from the bazel toolchain. While that may be desireable, it currently adds an extra second to every run to invoke bazel to locate the toolchain. And it only works with the main execroot, not the compiledb execroot. We may want to move to the bazel toolchain long term, but until we work out the details, since we are requiring the installed toolchain for some ide integrations, we should probably still use the installed version here and save that second. It is often something that people will be waiting for if they want to see if a warning went away after saving.

            Assignee:
            mathias@mongodb.com Mathias Stearn
            Reporter:
            mathias@mongodb.com Mathias Stearn
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: