--- Language: Cpp BasedOnStyle: WebKit AlignAfterOpenBracket: AlwaysBreak AlignConsecutiveMacros: 'true' AlignConsecutiveDeclarations: 'true' AlignEscapedNewlines: Left AlignTrailingComments: 'true' AllowAllConstructorInitializersOnNextLine: 'false' AllowAllParametersOfDeclarationOnNextLine: 'false' AllowShortCaseLabelsOnASingleLine: 'true' AllowShortIfStatementsOnASingleLine: Never AllowShortLambdasOnASingleLine: All AllowShortLoopsOnASingleLine: 'false' AlwaysBreakTemplateDeclarations: MultiLine BinPackArguments: 'false' BinPackParameters: 'false' BreakBeforeBraces: Custom BraceWrapping: AfterClass: 'true' AfterEnum: 'true' AfterFunction: 'true' AfterStruct: 'true' AfterUnion: 'true' BreakBeforeTernaryOperators: 'true' BreakConstructorInitializers: BeforeComma BreakInheritanceList: BeforeComma ColumnLimit: '100' FixNamespaceComments: 'true' IncludeBlocks: Regroup IncludeCategories: # Desired final ordering: # 0. Glew must be included before any other GL header # 1. Related header # 2. All private headers # 3. All public headers from this repository (maya-usd) # 4. UsdUfe headers # 5. Pixar + USD headers # 6. Autodesk + Maya headers # 7. Other libraries' headers # 8. C++ standard library headers # 9. C system headers # 10. Conditional includes # 0. GL loaders must be included before any other GL header # Negative priority puts it above the default IncludeIsMainRegex - Regex: '' Priority: -1 # 1. Related header # Handled by the default IncludeIsMainRegex regex, and auto-assigned # Priority 0 # 3. All public headers from this repository (maya-usd) - Regex: '^<(mayaUsd.*|hdMaya|AL|usdMaya)/' Priority: 3 # 4. UsdUfe library headers - Regex: '^$' Priority: 8 # 9. C system headers # angle brackets, no directory, end with ".h" - Regex: '^<[A-Za-z0-9_-]+\.h>$' Priority: 9 # 2. All private headers - Regex: '^"' Priority: 2 # 7. Other libraries' headers - Regex: '^<' Priority: 7 # 10. Conditional includes # Not reordered by clang-format, we need to manually make sure these come last MaxEmptyLinesToKeep: '1' NamespaceIndentation: None UseTab: Never ...