| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108 |
- ---
- Language: Cpp
- BasedOnStyle: Google
- AccessModifierOffset: -1
- AlignAfterOpenBracket: Align
- AlignConsecutiveAssignments: true
- AlignConsecutiveDeclarations: false
- AlignOperands: true
- AlignTrailingComments: true
- AllowAllParametersOfDeclarationOnNextLine: false
- AllowShortBlocksOnASingleLine: false
- AllowShortCaseLabelsOnASingleLine: false
- AllowShortFunctionsOnASingleLine: All
- AllowShortIfStatementsOnASingleLine: true
- AllowShortLoopsOnASingleLine: true
- AlwaysBreakAfterDefinitionReturnType: None
- AlwaysBreakAfterReturnType: None
- AlwaysBreakBeforeMultilineStrings: true
- AlwaysBreakTemplateDeclarations: true
- BinPackArguments: false
- BinPackParameters: false
- BraceWrapping:
- AfterClass: false
- AfterControlStatement: false
- AfterEnum: false
- AfterFunction: false
- AfterNamespace: false
- AfterObjCDeclaration: false
- AfterStruct: false
- AfterUnion: false
- BeforeCatch: false
- BeforeElse: false
- IndentBraces: false
- BreakBeforeBinaryOperators: None
- BreakBeforeBraces: Attach
- BreakBeforeTernaryOperators: true
- BreakConstructorInitializersBeforeComma: false
- CommentPragmas: "^ IWYU pragma:"
- ConstructorInitializerAllOnOneLineOrOnePerLine: true
- ConstructorInitializerIndentWidth: 4
- ContinuationIndentWidth: 4
- Cpp11BracedListStyle: true
- DerivePointerAlignment: true
- DisableFormat: false
- ExperimentalAutoDetectBinPacking: false
- ForEachMacros:
- - foreach
- - Q_FOREACH
- - BOOST_FOREACH
- IncludeCategories:
- # Spacers
- - Regex: "^<clang-format-priority-15>$"
- Priority: 15
- - Regex: "^<clang-format-priority-25>$"
- Priority: 25
- - Regex: "^<clang-format-priority-35>$"
- Priority: 35
- - Regex: "^<clang-format-priority-45>$"
- Priority: 45
- # C system headers
- - 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[">]$'
- Priority: 10
- # C++ system headers
- - 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)[">]$'
- Priority: 20
- # Other library h files (with angles)
- - Regex: "^<"
- Priority: 30
- # Your project's h files (with angles)
- - Regex: "^<MambaGlue"
- Priority: 40
- # Your project's h files
- - Regex: '^"MambaGlue'
- Priority: 50
- IndentCaseLabels: true
- IndentWidth: 2
- IndentWrappedFunctionNames: false
- KeepEmptyLinesAtTheStartOfBlocks: false
- MacroBlockBegin: ""
- MacroBlockEnd: ""
- ColumnLimit: 100
- MaxEmptyLinesToKeep: 1
- NamespaceIndentation: None
- ObjCBlockIndentWidth: 2
- ObjCSpaceAfterProperty: false
- ObjCSpaceBeforeProtocolList: false
- PenaltyBreakBeforeFirstCallParameter: 1
- PenaltyBreakComment: 300
- PenaltyBreakFirstLessLess: 120
- PenaltyBreakString: 1000
- PenaltyExcessCharacter: 1000000
- PenaltyReturnTypeOnItsOwnLine: 200
- PointerAlignment: Left
- ReflowComments: true
- SortIncludes: true
- SpaceAfterCStyleCast: false
- SpaceBeforeAssignmentOperators: true
- SpaceBeforeParens: ControlStatements
- SpaceInEmptyParentheses: false
- SpacesBeforeTrailingComments: 2
- SpacesInAngles: false
- SpacesInContainerLiterals: true
- SpacesInCStyleCastParentheses: false
- SpacesInParentheses: false
- SpacesInSquareBrackets: false
- Standard: Auto
- TabWidth: 4
- UseTab: Never
|