[go: nahoru, domu]

blob: 01be22fa1e582957290224b3b35466d431b8c048 [file] [log] [blame]
jyasskin@chromium.org452ed0ea2013-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
Peter Boström9f9b576d2022-12-13 19:02:3310# TODO(crbug.com/1392808): Remove when InsertBraces has been upstreamed into
11# the Chromium style (is implied by BasedOnStyle: Chromium).
12InsertBraces: true
13
Daniel Cheng9ce8be42015-07-16 21:44:5814# Make sure code like:
15# IPC_BEGIN_MESSAGE_MAP()
16# IPC_MESSAGE_HANDLER(WidgetHostViewHost_Update, OnUpdate)
17# IPC_END_MESSAGE_MAP()
18# gets correctly indented.
19MacroBlockBegin: "^\
20BEGIN_MSG_MAP|\
21BEGIN_MSG_MAP_EX|\
22BEGIN_SAFE_MSG_MAP_EX|\
23CR_BEGIN_MSG_MAP_EX|\
24IPC_BEGIN_MESSAGE_MAP|\
25IPC_BEGIN_MESSAGE_MAP_WITH_PARAM|\
dcheng0941e7d82015-07-17 03:51:4526IPC_PROTOBUF_MESSAGE_TRAITS_BEGIN|\
Daniel Cheng9ce8be42015-07-16 21:44:5827IPC_STRUCT_BEGIN|\
28IPC_STRUCT_BEGIN_WITH_PARENT|\
dcheng0941e7d82015-07-17 03:51:4529IPC_STRUCT_TRAITS_BEGIN|\
30POLPARAMS_BEGIN|\
31PPAPI_BEGIN_MESSAGE_MAP$"
Daniel Cheng9ce8be42015-07-16 21:44:5832MacroBlockEnd: "^\
33CR_END_MSG_MAP|\
34END_MSG_MAP|\
35IPC_END_MESSAGE_MAP|\
dcheng0941e7d82015-07-17 03:51:4536IPC_PROTOBUF_MESSAGE_TRAITS_END|\
Daniel Cheng9ce8be42015-07-16 21:44:5837IPC_STRUCT_END|\
dcheng0941e7d82015-07-17 03:51:4538IPC_STRUCT_TRAITS_END|\
39POLPARAMS_END|\
40PPAPI_END_MESSAGE_MAP$"
Yun Liuf40227d92019-04-04 17:37:4641
42# TODO: Remove this once clang-format r357700 is rolled in.
43JavaImportGroups: ['android', 'androidx', 'com', 'dalvik', 'junit', 'org', 'com.google.android.apps.chrome', 'org.chromium', 'java', 'javax']