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

clang-format config

    XMLWordPrintableJSON

Details

    • Icon: Improvement Improvement
    • Resolution: Done
    • Icon: Major - P3 Major - P3
    • 1.6.0
    • None
    • Build
    • None

    Description

      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/

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: