-
Notifications
You must be signed in to change notification settings - Fork 2
/
.clang-format
48 lines (43 loc) · 972 Bytes
/
.clang-format
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
---
BasedOnStyle: LLVM
ColumnLimit: 120
Language: Cpp
Standard: Cpp03
ContinuationIndentWidth: 4
IndentWidth: 4
UseTab: Never
AlignTrailingComments: false
AllowShortFunctionsOnASingleLine: None
AllowShortIfStatementsOnASingleLine: Never
AlwaysBreakBeforeMultilineStrings: true
Cpp11BracedListStyle: false
IncludeBlocks: Regroup
IncludeCategories:
- Regex: '^(<|")(lua|luaconf).h'
Priority: 1
- Regex: '^(<|")(lauxlib|lualib).h'
Priority: 3
- Regex: '^"l[[:alnum:]]+.h"$'
Priority: 2
- Regex: '<windows.h>'
Priority: 4
- Regex: '<[[:alnum:].]+>'
Priority: 5
IndentCaseLabels: true
PointerAlignment: Right
SortIncludes: true
SpaceAfterCStyleCast: true
SpaceBeforeParens: Custom
SpaceBeforeParensOptions:
AfterFunctionDeclarationName: true
AfterFunctionDefinitionName: true
AttributeMacros:
- LUA_API
- LUA_DECL_EXPORT
- LUA_DECL_HIDDEN
- LUA_DECL_IMPORT
- LUA_NORETURN
- LUALIB_API
StatementMacros:
- LUA_FALLTHROUGH
...