-
Notifications
You must be signed in to change notification settings - Fork 98
Expand file tree
/
Copy path.clang-format
More file actions
60 lines (52 loc) · 1.5 KB
/
Copy path.clang-format
File metadata and controls
60 lines (52 loc) · 1.5 KB
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
48
49
50
51
52
53
54
55
56
57
58
59
60
BasedOnStyle: LLVM
ColumnLimit: 120
IndentWidth: 4
TabWidth: 4
UseTab: Never
ContinuationIndentWidth: 8
ConstructorInitializerIndentWidth: 4
ObjCBlockIndentWidth: 4
InsertBraces: true
AttributeMacros:
- CF_REFINED_FOR_SWIFT
- CF_RELEASES_ARGUMENT
- NS_REFINED_FOR_SWIFT
- NS_DESIGNATED_INITIALIZER
- NS_UNAVAILABLE
- NS_SWIFT_UNAVAILABLE
- NS_FORMAT_FUNCTION
- NS_TYPED_ENUM
- NS_TYPED_EXTENSIBLE_ENUM
StatementMacros:
- CF_ASSUME_NONNULL_BEGIN
- CF_ASSUME_NONNULL_END
- NS_ASSUME_NONNULL_BEGIN
- NS_ASSUME_NONNULL_END
Macros:
- "CF_ENUM(type)=enum : type"
- "CF_ENUM(type,name)=enum name : type"
- "CF_CLOSED_ENUM(type,name)=enum name : type"
- "NS_ENUM(type)=enum : type"
- "NS_ENUM(type,name)=enum name : type"
- "NS_CLOSED_ENUM(type,name)=enum name : type"
- "NS_OPTIONS(type,name)=enum name : type"
- "NS_ERROR_ENUM(domain)=enum : NSInteger"
- "NS_ERROR_ENUM(domain,name)=enum name : NSInteger"
IncludeBlocks: Regroup
IncludeCategories:
- Regex: '^".*"$'
Priority: 1
- Regex: '^<SFBAudioEngine/'
Priority: 1
- Regex: '^<(dsema|mtx|spsc|AVFAudioExtensions)/'
Priority: 2
- Regex: '^<(dumb|FLAC|mpg123|mpc|ogg|opus|sndfile|speex|taglib|vorbis|wavpack)/'
Priority: 2
- Regex: '^<(CoreFoundation|CoreAudioTypes|CoreAudio|AudioToolbox|Foundation|AVFAudio|Accelerate|CommonCrypto|ImageIO|UniformTypeIdentifiers)/'
Priority: 3
- Regex: '^<(libkern|mach|objc|os)/'
Priority: 5
- Regex: '^<[^./>]+>$'
Priority: 10
- Regex: '.*'
Priority: 20