| 1 |
--- |
| 2 |
Language: Cpp |
| 3 |
# BasedOnStyle: LLVM |
| 4 |
AccessModifierOffset: -4 |
| 5 |
AlignAfterOpenBracket: DontAlign |
| 6 |
AlignConsecutiveAssignments: false |
| 7 |
AlignConsecutiveDeclarations: false |
| 8 |
AlignEscapedNewlines: Right |
| 9 |
AlignOperands: true |
| 10 |
AlignTrailingComments: true |
| 11 |
AllowAllParametersOfDeclarationOnNextLine: true |
| 12 |
AllowShortBlocksOnASingleLine: true |
| 13 |
AllowShortCaseLabelsOnASingleLine: false |
| 14 |
AllowShortFunctionsOnASingleLine: Inline |
| 15 |
AllowShortIfStatementsOnASingleLine: false |
| 16 |
AllowShortLoopsOnASingleLine: false |
| 17 |
AlwaysBreakAfterDefinitionReturnType: None |
| 18 |
AlwaysBreakAfterReturnType: None |
| 19 |
AlwaysBreakBeforeMultilineStrings: true |
| 20 |
AlwaysBreakTemplateDeclarations: false |
| 21 |
BinPackArguments: false |
| 22 |
BinPackParameters: false |
| 23 |
BraceWrapping: |
| 24 |
AfterClass: false |
| 25 |
AfterControlStatement: false |
| 26 |
AfterEnum: false |
| 27 |
AfterFunction: true |
| 28 |
AfterNamespace: false |
| 29 |
AfterObjCDeclaration: false |
| 30 |
AfterStruct: false |
| 31 |
AfterUnion: false |
| 32 |
AfterExternBlock: false |
| 33 |
BeforeCatch: false |
| 34 |
BeforeElse: false |
| 35 |
IndentBraces: false |
| 36 |
SplitEmptyFunction: true |
| 37 |
SplitEmptyRecord: true |
| 38 |
SplitEmptyNamespace: true |
| 39 |
BreakBeforeBinaryOperators: None |
| 40 |
BreakBeforeBraces: Custom |
| 41 |
BreakBeforeInheritanceComma: false |
| 42 |
BreakBeforeTernaryOperators: true |
| 43 |
BreakConstructorInitializersBeforeComma: true |
| 44 |
BreakConstructorInitializers: BeforeColon |
| 45 |
BreakAfterJavaFieldAnnotations: false |
| 46 |
BreakStringLiterals: true |
| 47 |
ColumnLimit: 120 |
| 48 |
CommentPragmas: '^ IWYU pragma:' |
| 49 |
CompactNamespaces: false |
| 50 |
ConstructorInitializerAllOnOneLineOrOnePerLine: false |
| 51 |
ConstructorInitializerIndentWidth: 4 |
| 52 |
ContinuationIndentWidth: 4 |
| 53 |
Cpp11BracedListStyle: true |
| 54 |
DerivePointerAlignment: false |
| 55 |
DisableFormat: false |
| 56 |
ExperimentalAutoDetectBinPacking: false |
| 57 |
FixNamespaceComments: true |
| 58 |
ForEachMacros: |
| 59 |
- foreach |
| 60 |
- Q_FOREACH |
| 61 |
- BOOST_FOREACH |
| 62 |
IncludeBlocks: Regroup |
| 63 |
IncludeCategories: |
| 64 |
# All (Q)t libraries |
| 65 |
- Regex: '^[<"]Q.*[">]$' |
| 66 |
Priority: 2 |
| 67 |
# C system headers. |
| 68 |
- Regex: '^[<"](aio|arpa/inet|assert|complex|cpio|ctype|curses|dirent|dlfcn|errno|fcntl|fenv|float|fmtmsg|fnmatch|ftw|glob|grp|iconv|inttypes|iso646|langinfo|libgen|limits|locale|math|monetary|mqueue|ndbm|netdb|net/if|netinet/in|netinet/tcp|nl_types|poll|pthread|pwd|regex|sched|search|semaphore|setjmp|signal|spawn|stdalign|stdarg|stdatomic|stdbool|stddef|stdint|stdio|stdlib|stdnoreturn|string|strings|stropts|sys/ipc|syslog|sys/mman|sys/msg|sys/resource|sys/select|sys/sem|sys/shm|sys/socket|sys/stat|sys/statvfs|sys/time|sys/times|sys/types|sys/uio|sys/un|sys/utsname|sys/wait|tar|term|termios|tgmath|threads|time|trace|uchar|ulimit|uncntrl|unistd|utime|utmpx|wchar|wctype|wordexp)\.h[">]$' |
| 69 |
Priority: 3 |
| 70 |
# C++ system headers (as of C++14). |
| 71 |
- Regex: '^[<"](algorithm|array|atomic|bitset|cassert|ccomplex|cctype|cerrno|cfenv|cfloat|chrono|cinttypes|ciso646|climits|clocale|cmath|codecvt|complex|condition_variable|csetjmp|csignal|cstdalign|cstdarg|cstdbool|cstddef|cstdint|cstdio|cstdlib|cstring|ctgmath|ctime|cuchar|cwchar|cwctype|deque|exception|forward_list|fstream|functional|future|initializer_list|iomanip|ios|iosfwd|iostream|istream|iterator|limits|list|locale|map|memory|mutex|new|numeric|ostream|queue|random|ratio|regex|scoped_allocator|set|shared_mutex|sstream|stack|stdexcept|streambuf|string|strstream|system_error|thread|tuple|type_traits|typeindex|typeinfo|unordered_map|unordered_set|utility|valarray|vector)[">]$' |
| 72 |
Priority: 4 |
| 73 |
# Other misc rules |
| 74 |
- Regex: '^<' |
| 75 |
Priority: 5 |
| 76 |
- Regex: '^"' |
| 77 |
Priority: 1 |
| 78 |
IncludeIsMainRegex: '(_test)?$' |
| 79 |
IndentCaseLabels: false |
| 80 |
IndentPPDirectives: None |
| 81 |
IndentWidth: 4 |
| 82 |
IndentWrappedFunctionNames: false |
| 83 |
JavaScriptQuotes: Leave |
| 84 |
JavaScriptWrapImports: true |
| 85 |
KeepEmptyLinesAtTheStartOfBlocks: false |
| 86 |
MacroBlockBegin: '' |
| 87 |
MacroBlockEnd: '' |
| 88 |
MaxEmptyLinesToKeep: 1 |
| 89 |
NamespaceIndentation: None |
| 90 |
ObjCBlockIndentWidth: 4 |
| 91 |
ObjCSpaceAfterProperty: false |
| 92 |
ObjCSpaceBeforeProtocolList: true |
| 93 |
PenaltyBreakAssignment: 2 |
| 94 |
PenaltyBreakBeforeFirstCallParameter: 19 |
| 95 |
PenaltyBreakComment: 300 |
| 96 |
PenaltyBreakFirstLessLess: 120 |
| 97 |
PenaltyBreakString: 1000 |
| 98 |
PenaltyExcessCharacter: 1000000 |
| 99 |
PenaltyReturnTypeOnItsOwnLine: 60 |
| 100 |
PointerAlignment: Left |
| 101 |
RawStringFormats: |
| 102 |
- Delimiter: pb |
| 103 |
Language: TextProto |
| 104 |
BasedOnStyle: google |
| 105 |
ReflowComments: true |
| 106 |
SortIncludes: true |
| 107 |
SortUsingDeclarations: true |
| 108 |
SpaceAfterCStyleCast: false |
| 109 |
SpaceAfterTemplateKeyword: true |
| 110 |
SpaceBeforeAssignmentOperators: true |
| 111 |
SpaceBeforeParens: ControlStatements |
| 112 |
SpaceInEmptyParentheses: false |
| 113 |
SpacesBeforeTrailingComments: 1 |
| 114 |
SpacesInAngles: false |
| 115 |
SpacesInContainerLiterals: true |
| 116 |
SpacesInCStyleCastParentheses: false |
| 117 |
SpacesInParentheses: false |
| 118 |
SpacesInSquareBrackets: false |
| 119 |
Standard: Cpp11 |
| 120 |
TabWidth: 8 |
| 121 |
UseTab: Never |
| 122 |
... |
| 123 |
|