Revert "[M120 Migration]Fix for crash during chrome exit"
[platform/framework/web/chromium-efl.git] / .clang-format
1 # Defines the Chromium style for automatic reformatting.
2 # http://clang.llvm.org/docs/ClangFormatStyleOptions.html
3 BasedOnStyle: Chromium
4 # 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.)
8 Standard: Cpp11
9
10 # TODO(crbug.com/1392808): Remove when InsertBraces has been upstreamed into
11 # the Chromium style (is implied by BasedOnStyle: Chromium).
12 InsertBraces: true
13 InsertNewlineAtEOF: true
14
15 # 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.
20 MacroBlockBegin: "^\
21 BEGIN_MSG_MAP|\
22 BEGIN_MSG_MAP_EX|\
23 BEGIN_SAFE_MSG_MAP_EX|\
24 CR_BEGIN_MSG_MAP_EX|\
25 IPC_BEGIN_MESSAGE_MAP|\
26 IPC_BEGIN_MESSAGE_MAP_WITH_PARAM|\
27 IPC_PROTOBUF_MESSAGE_TRAITS_BEGIN|\
28 IPC_STRUCT_BEGIN|\
29 IPC_STRUCT_BEGIN_WITH_PARENT|\
30 IPC_STRUCT_TRAITS_BEGIN|\
31 POLPARAMS_BEGIN|\
32 PPAPI_BEGIN_MESSAGE_MAP$"
33 MacroBlockEnd: "^\
34 CR_END_MSG_MAP|\
35 END_MSG_MAP|\
36 IPC_END_MESSAGE_MAP|\
37 IPC_PROTOBUF_MESSAGE_TRAITS_END|\
38 IPC_STRUCT_END|\
39 IPC_STRUCT_TRAITS_END|\
40 POLPARAMS_END|\
41 PPAPI_END_MESSAGE_MAP$"