[go: nahoru, domu]

blob: 5a40766bbe63eabd21287812a12f54f67ca2657e [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
Zequan Wua84a23ae2023-03-22 18:12:2913InsertNewlineAtEOF: true
Peter Boström9f9b576d2022-12-13 19:02:3314
Daniel Cheng9ce8be42015-07-16 21:44:5815# Make sure code like:
16# IPC_BEGIN_MESSAGE_MAP()
17# IPC_MESSAGE_HANDLER(WidgetHostViewHost_Update, OnUpdate)
18# IPC_END_MESSAGE_MAP()
19# gets correctly indented.
20MacroBlockBegin: "^\
21BEGIN_MSG_MAP|\
22BEGIN_MSG_MAP_EX|\
23BEGIN_SAFE_MSG_MAP_EX|\
24CR_BEGIN_MSG_MAP_EX|\
25IPC_BEGIN_MESSAGE_MAP|\
26IPC_BEGIN_MESSAGE_MAP_WITH_PARAM|\
dcheng0941e7d82015-07-17 03:51:4527IPC_PROTOBUF_MESSAGE_TRAITS_BEGIN|\
Daniel Cheng9ce8be42015-07-16 21:44:5828IPC_STRUCT_BEGIN|\
29IPC_STRUCT_BEGIN_WITH_PARENT|\
dcheng0941e7d82015-07-17 03:51:4530IPC_STRUCT_TRAITS_BEGIN|\
31POLPARAMS_BEGIN|\
32PPAPI_BEGIN_MESSAGE_MAP$"
Daniel Cheng9ce8be42015-07-16 21:44:5833MacroBlockEnd: "^\
34CR_END_MSG_MAP|\
35END_MSG_MAP|\
36IPC_END_MESSAGE_MAP|\
dcheng0941e7d82015-07-17 03:51:4537IPC_PROTOBUF_MESSAGE_TRAITS_END|\
Daniel Cheng9ce8be42015-07-16 21:44:5838IPC_STRUCT_END|\
dcheng0941e7d82015-07-17 03:51:4539IPC_STRUCT_TRAITS_END|\
40POLPARAMS_END|\
41PPAPI_END_MESSAGE_MAP$"