Uploaded image for project: 'C Driver'
  1. C Driver
  2. CDRIVER-1167

clang-format config

    • Type: Icon: Improvement Improvement
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • 1.6.0
    • Affects Version/s: None
    • Component/s: Build
    • None

      Lets come up with a clang-format configuration that formats the code into the ascii art of our current preference and stick to it.
      Reformat the current source, fully (--commit-author "clang-format <drivers@mongodb.com>") so we can stick it into pre-commit hook.

      The server did something similar recently. We might steal their configuration if reasonable.


      remember to remove https://github.com/mongodb/mongo-c-driver/blob/master/src/mongoc/uncrustify.cfg and https://github.com/mongodb/mongo-c-driver/blob/master/src/mongoc/indent after the switch

      http://zed0.co.uk/clang-format-configurator/

        1. clang-format (2).txt
          1.0 kB
          A. Jesse Jiryu Davis

            Assignee:
            bjori Hannes Magnusson
            Reporter:
            bjori Hannes Magnusson
            Votes:
            1 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: