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
–
- is duplicated by
-
CDRIVER-706 Document coding style changes and update indent rules
- Closed
- related to
-
CDRIVER-1577 Declare __cdecl as calling convention on Windows
- Closed