Does anyone have a clang-format for the style in the OpenUSD repo?
Correct me if I’m wrong, but I don’t think there’s a single style unfortunately due to the heritage of the repo, but I too would like one to check in new code if someone has something.
Also, to note, clang-format can vary by clang version. So it would be good to specify a version too that it was setup with if there is such a thing
I’ve found:
BasedOnStyle: Mozilla
AccessModifierOffset: -4
IndentWidth: 4
ContinuationIndentWidth: 4
IndentPPDirectives: AfterHash
SortIncludes: false
SpaceInEmptyBlock: true
To be a reasonable approximate. At least for the code under pxr/usd/. Tested using clang 13.