blob: 8d4b5e40e0cf1eb11ff1a8cfc69aa96c7fc06c09 [file] [log] [blame]
[email protected]452ed0ea2013-11-01 01:53:401# Defines the Chromium style for automatic reformatting.
2# http://clang.llvm.org/docs/ClangFormatStyleOptions.html
3BasedOnStyle: Chromium
thakis1c79f8642014-10-31 23:00:184# This defaults to 'Auto'. Explicitly set it for a while, so that
5# 'vector<vector<int> >' in existing files gets formatted to
6# 'vector<vector<int>>'. ('Auto' means that clang-format will only use
7# 'int>>' if the file already contains at least one such instance.)
scottmg57e3f0a2014-09-25 06:32:458Standard: Cpp11
thakis6b08b5d2017-02-02 23:31:449
10# TODO(thakis): Default this to true in -style=Chromium if we decide to keep it.
11SortIncludes: true
12
Daniel Cheng9ce8be42015-07-16 21:44:5813# Make sure code like:
14# IPC_BEGIN_MESSAGE_MAP()
15# IPC_MESSAGE_HANDLER(WidgetHostViewHost_Update, OnUpdate)
16# IPC_END_MESSAGE_MAP()
17# gets correctly indented.
18MacroBlockBegin: "^\
19BEGIN_MSG_MAP|\
20BEGIN_MSG_MAP_EX|\
21BEGIN_SAFE_MSG_MAP_EX|\
22CR_BEGIN_MSG_MAP_EX|\
23IPC_BEGIN_MESSAGE_MAP|\
24IPC_BEGIN_MESSAGE_MAP_WITH_PARAM|\
dcheng0941e7d82015-07-17 03:51:4525IPC_PROTOBUF_MESSAGE_TRAITS_BEGIN|\
Daniel Cheng9ce8be42015-07-16 21:44:5826IPC_STRUCT_BEGIN|\
27IPC_STRUCT_BEGIN_WITH_PARENT|\
dcheng0941e7d82015-07-17 03:51:4528IPC_STRUCT_TRAITS_BEGIN|\
29POLPARAMS_BEGIN|\
30PPAPI_BEGIN_MESSAGE_MAP$"
Daniel Cheng9ce8be42015-07-16 21:44:5831MacroBlockEnd: "^\
32CR_END_MSG_MAP|\
33END_MSG_MAP|\
34IPC_END_MESSAGE_MAP|\
dcheng0941e7d82015-07-17 03:51:4535IPC_PROTOBUF_MESSAGE_TRAITS_END|\
Daniel Cheng9ce8be42015-07-16 21:44:5836IPC_STRUCT_END|\
dcheng0941e7d82015-07-17 03:51:4537IPC_STRUCT_TRAITS_END|\
38POLPARAMS_END|\
39PPAPI_END_MESSAGE_MAP$"