| 1 |
--- |
| 2 |
Language: Cpp |
| 3 |
# BasedOnStyle: LLVM |
| 4 |
AccessModifierOffset: -4 |
| 5 |
ConstructorInitializerIndentWidth: 4 |
| 6 |
AlignEscapedNewlinesLeft: false |
| 7 |
AlignTrailingComments: true |
| 8 |
AllowAllParametersOfDeclarationOnNextLine: true |
| 9 |
AllowShortBlocksOnASingleLine: false |
| 10 |
AllowShortIfStatementsOnASingleLine: false |
| 11 |
AllowShortLoopsOnASingleLine: false |
| 12 |
AllowShortFunctionsOnASingleLine: All |
| 13 |
AlwaysBreakTemplateDeclarations: true |
| 14 |
AlwaysBreakBeforeMultilineStrings: false |
| 15 |
BreakBeforeBinaryOperators: false |
| 16 |
BreakBeforeTernaryOperators: true |
| 17 |
BreakConstructorInitializersBeforeComma: false |
| 18 |
BinPackParameters: true |
| 19 |
ColumnLimit: 80 |
| 20 |
ConstructorInitializerAllOnOneLineOrOnePerLine: false |
| 21 |
DerivePointerAlignment: false |
| 22 |
ExperimentalAutoDetectBinPacking: false |
| 23 |
IndentCaseLabels: false |
| 24 |
IndentWrappedFunctionNames: false |
| 25 |
IndentFunctionDeclarationAfterType: false |
| 26 |
MaxEmptyLinesToKeep: 1 |
| 27 |
KeepEmptyLinesAtTheStartOfBlocks: true |
| 28 |
NamespaceIndentation: None |
| 29 |
ObjCSpaceAfterProperty: false |
| 30 |
ObjCSpaceBeforeProtocolList: true |
| 31 |
PenaltyBreakBeforeFirstCallParameter: 19 |
| 32 |
PenaltyBreakComment: 300 |
| 33 |
PenaltyBreakString: 1000 |
| 34 |
PenaltyBreakFirstLessLess: 120 |
| 35 |
PenaltyExcessCharacter: 1000000 |
| 36 |
PenaltyReturnTypeOnItsOwnLine: 60 |
| 37 |
PointerAlignment: Right |
| 38 |
SpacesBeforeTrailingComments: 1 |
| 39 |
Cpp11BracedListStyle: true |
| 40 |
Standard: Cpp11 |
| 41 |
IndentWidth: 4 |
| 42 |
TabWidth: 4 |
| 43 |
UseTab: Never |
| 44 |
BreakBeforeBraces: Attach |
| 45 |
SpacesInParentheses: false |
| 46 |
SpacesInAngles: false |
| 47 |
SpaceInEmptyParentheses: false |
| 48 |
SpacesInCStyleCastParentheses: false |
| 49 |
SpacesInContainerLiterals: true |
| 50 |
SpaceBeforeAssignmentOperators: true |
| 51 |
ContinuationIndentWidth: 4 |
| 52 |
CommentPragmas: '^ IWYU pragma:' |
| 53 |
ForEachMacros: [ Q_FOREACH, BOOST_FOREACH ] |
| 54 |
SpaceBeforeParens: ControlStatements |
| 55 |
DisableFormat: false |
| 56 |
SortIncludes: true |
| 57 |
IncludeCategories: |
| 58 |
# C system headers. |
| 59 |
- 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[">]$' |
| 60 |
Priority: 20 |
| 61 |
# C++ system headers (as of C++17). |
| 62 |
- Regex: '^[<"](algorithm|any|array|atomic|bitset|cassert|ccomplex|cctype|cerrno|cfenv|cfloat|charconv|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|execution|filesystem|forward_list|fstream|functional|future|initializer_list|iomanip|ios|iosfwd|iostream|istream|iterator|limits|list|locale|map|memory|memory_resource|mutex|new|numeric|optional|ostream|queue|random|ratio|regex|scoped_allocator|set|shared_mutex|sstream|stack|stdexcept|streambuf|string|string_view|strstream|system_error|thread|tuple|type_traits|typeindex|typeinfo|unordered_map|unordered_set|utility|valarray|variant|vector)[">]$' |
| 63 |
Priority: 30 |
| 64 |
# Other libraries' h files (with angles). |
| 65 |
- Regex: '^<' |
| 66 |
Priority: 40 |
| 67 |
# Your project's h files. |
| 68 |
- Regex: '^[<"]fcitx' |
| 69 |
Priority: 45 |
| 70 |
# Other libraries' h files (with quotes). |
| 71 |
- Regex: '^"' |
| 72 |
Priority: 50 |
| 73 |
... |
| 74 |
|