blob: fcbc9c321a5c61e96b3e21aa510818a4d9c20ea0 [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
Daniel Cheng9ce8be42015-07-16 21:44:5810# Make sure code like:
11# IPC_BEGIN_MESSAGE_MAP()
12# IPC_MESSAGE_HANDLER(WidgetHostViewHost_Update, OnUpdate)
13# IPC_END_MESSAGE_MAP()
14# gets correctly indented.
15MacroBlockBegin: "^\
16BEGIN_MSG_MAP|\
17BEGIN_MSG_MAP_EX|\
18BEGIN_SAFE_MSG_MAP_EX|\
19CR_BEGIN_MSG_MAP_EX|\
20IPC_BEGIN_MESSAGE_MAP|\
21IPC_BEGIN_MESSAGE_MAP_WITH_PARAM|\
dcheng0941e7d82015-07-17 03:51:4522IPC_PROTOBUF_MESSAGE_TRAITS_BEGIN|\
Daniel Cheng9ce8be42015-07-16 21:44:5823IPC_STRUCT_BEGIN|\
24IPC_STRUCT_BEGIN_WITH_PARENT|\
dcheng0941e7d82015-07-17 03:51:4525IPC_STRUCT_TRAITS_BEGIN|\
26POLPARAMS_BEGIN|\
27PPAPI_BEGIN_MESSAGE_MAP$"
Daniel Cheng9ce8be42015-07-16 21:44:5828MacroBlockEnd: "^\
29CR_END_MSG_MAP|\
30END_MSG_MAP|\
31IPC_END_MESSAGE_MAP|\
dcheng0941e7d82015-07-17 03:51:4532IPC_PROTOBUF_MESSAGE_TRAITS_END|\
Daniel Cheng9ce8be42015-07-16 21:44:5833IPC_STRUCT_END|\
dcheng0941e7d82015-07-17 03:51:4534IPC_STRUCT_TRAITS_END|\
35POLPARAMS_END|\
36PPAPI_END_MESSAGE_MAP$"