forked from lua9520/source-engine-2018-hl2_src
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.clang-format
45 lines (42 loc) · 1.21 KB
/
.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
# Copyright Valve Corporation, All rights reserved.
# Defines the Chromium style for automatic reformatting.
# https://clang.llvm.org/docs/ClangFormatStyleOptions.html
BasedOnStyle: Google
# This defaults to 'Auto'. Explicitly set it for a while, so that
# 'vector<vector<int> >' in existing files gets formatted to
# 'vector<vector<int>>'. ('Auto' means that clang-format will only use
# 'int>>' if the file already contains at least one such instance.)
Standard: Cpp11
# Includes order matters
SortIncludes: false
# Make sure code like:
# IPC_BEGIN_MESSAGE_MAP()
# IPC_MESSAGE_HANDLER(WidgetHostViewHost_Update, OnUpdate)
# IPC_END_MESSAGE_MAP()
# gets correctly indented.
MacroBlockBegin: "^\
BEGIN_BITFIELD|\
BEGIN_BYTESWAP_DATADESC|\
BEGIN_DATADESC_GUTS|\
BEGIN_DATADESC_GUTS_NAMESPACE
BEGIN_DATADESC_NO_BASE|\
BEGIN_DEFINE_LOGGING_CHANNEL|\
BEGIN_SIMPLE_DATADESC|\
BEGIN_SIMPLE_DATADESC_|\
MSL_FOREACH_GROUP_BEGIN|\
MSL_FOREACH_SURFACE_BEGIN|\
MSL_FOREACH_SURFACE_IN_GROUP_BEGIN\
$"
MacroBlockEnd: "^\
END_BITFIELD|\
END_BYTESWAP_DATADESC|\
END_DATADESC|\
END_DATADESC|\
END_DATADESC|\
END_DEFINE_LOGGING_CHANNEL|\
END_DATADESC|\
END_DATADESC|\
MSL_FOREACH_GROUP_END|\
MSL_FOREACH_SURFACE_END|\
MSL_FOREACH_SURFACE_IN_GROUP_END\
$"