1 Star 1 Fork 0

xtvjxk / maya-usd

Create your Gitee Account
Explore and code with more than 12 million developers,Free private repositories !:)
Sign up
This repository doesn't specify license. Please pay attention to the specific project description and its upstream code dependency when using it.
Clone or Download
.clang-format 2.50 KB
Copy Edit Raw Blame History
---
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. Pixar + USD headers
# 5. Autodesk + Maya headers
# 6. Other libraries' headers
# 7. C++ standard library headers
# 8. C system headers
# 9. Conditional includes
# 0. GL loaders must be included before any other GL header
# Negative priority puts it above the default IncludeIsMainRegex
- Regex: '<pxr/imaging/(garch/glApi.h|glf/glew.h)>'
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. Pixar + USD headers
- Regex: '^<pxr/'
Priority: 4
# 5. Autodesk + Maya headers
- Regex: '^<(maya|ufe)/'
Priority: 5
# 7. C++ standard library headers
# angle brackets, no directory, no extension
- Regex: '^<[A-Za-z0-9_-]+>$'
Priority: 7
# 8. C system headers
# angle brackets, no directory, end with ".h"
- Regex: '^<[A-Za-z0-9_-]+\.h>$'
Priority: 8
# 2. All private headers
- Regex: '^"'
Priority: 2
# 6. Other libraries' headers
- Regex: '^<'
Priority: 6
# 9. Conditional includes
# Not reordered by clang-format, we need to manually make sure these come last
MaxEmptyLinesToKeep: '1'
NamespaceIndentation: None
UseTab: Never
...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/zhangxuqiang/maya-usd.git
git@gitee.com:zhangxuqiang/maya-usd.git
zhangxuqiang
maya-usd
maya-usd
master

Search

344bd9b3 5694891 D2dac590 5694891