Uploaded image for project: 'C++ Driver'
  1. C++ Driver
  2. CXX-2469

clang_format.py stops on version mismatch

    • Type: Icon: Bug Bug
    • Resolution: Won't Do
    • Priority: Icon: Unknown Unknown
    • None
    • Affects Version/s: None
    • Component/s: None
    • None
    • Hide

      1. What would you like to communicate to the user about this feature?
      2. Would you like the user to see examples of the syntax and/or executable code and its output?
      3. Which versions of the driver/connector does this apply to?

      Show
      1. What would you like to communicate to the user about this feature? 2. Would you like the user to see examples of the syntax and/or executable code and its output? 3. Which versions of the driver/connector does this apply to?
    • None
    • None
    • None
    • None
    • None
    • None

      When running with a unrecognized version of clang-format, the script issues a warning but then proceeds to stop:

      python2 ./etc/clang_format.py format src/mongocxx/exception/private/mongoc_error.hh
      WARNING: clang-format found in path, but incorrect version found at /home/foo/bin/clang-format with version: clang-format version 13.0.1

      Relaxing _validate_version() to issue the warning message and then proceed allows the tool to continue.

            Assignee:
            ezra.chung@mongodb.com Ezra Chung
            Reporter:
            jesse.williamson@mongodb.com Jesse Williamson (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved:
              None
              None
              None
              None