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

clang_format.py stops on version mismatch

    XMLWordPrintableJSON

Details

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Unknown Unknown
    • None
    • None
    • None
    • None

    Description

      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.

      Attachments

        Activity

          People

            Unassigned Unassigned
            jesse.williamson@mongodb.com Jesse Williamson (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated: