-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy path.clang-format
33 lines (30 loc) · 964 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
# 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_.*(.*)|\
MSL_FOREACH_GROUP_BEGIN|\
MSL_FOREACH_SURFACE_BEGIN|\
MSL_FOREACH_SURFACE_IN_GROUP_BEGIN|\
BEGIN_MESSAGE_MAP\
$"
MacroBlockEnd: "^\
END_.*()|\
MSL_FOREACH_GROUP_END|\
MSL_FOREACH_SURFACE_END|\
MSL_FOREACH_SURFACE_IN_GROUP_END|\
END_MESSAGE_MAP\
$"