Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(19)

Side by Side Diff: .clang-format

Issue 1225333004: Add IPC and Windows message map macro blocks to .clang-format options (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Moar macros Created 5 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | ipc/attachment_broker_messages.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 # Defines the Chromium style for automatic reformatting. 1 # Defines the Chromium style for automatic reformatting.
2 # http://clang.llvm.org/docs/ClangFormatStyleOptions.html 2 # http://clang.llvm.org/docs/ClangFormatStyleOptions.html
3 BasedOnStyle: Chromium 3 BasedOnStyle: Chromium
4 # This defaults to 'Auto'. Explicitly set it for a while, so that 4 # This defaults to 'Auto'. Explicitly set it for a while, so that
5 # 'vector<vector<int> >' in existing files gets formatted to 5 # 'vector<vector<int> >' in existing files gets formatted to
6 # 'vector<vector<int>>'. ('Auto' means that clang-format will only use 6 # 'vector<vector<int>>'. ('Auto' means that clang-format will only use
7 # 'int>>' if the file already contains at least one such instance.) 7 # 'int>>' if the file already contains at least one such instance.)
8 Standard: Cpp11 8 Standard: Cpp11
9 # Make sure code like:
10 # IPC_BEGIN_MESSAGE_MAP()
11 # IPC_MESSAGE_HANDLER(WidgetHostViewHost_Update, OnUpdate)
12 # IPC_END_MESSAGE_MAP()
13 # gets correctly indented.
14 MacroBlockBegin: "^\
15 BEGIN_MSG_MAP|\
16 BEGIN_MSG_MAP_EX|\
17 BEGIN_SAFE_MSG_MAP_EX|\
18 CR_BEGIN_MSG_MAP_EX|\
19 IPC_BEGIN_MESSAGE_MAP|\
20 IPC_BEGIN_MESSAGE_MAP_WITH_PARAM|\
21 IPC_STRUCT_BEGIN|\
22 IPC_STRUCT_BEGIN_WITH_PARENT|\
23 IPC_STRUCT_TRAITS_BEGIN$"
24 MacroBlockEnd: "^\
25 CR_END_MSG_MAP|\
26 END_MSG_MAP|\
27 IPC_END_MESSAGE_MAP|\
28 IPC_STRUCT_END|\
29 IPC_STRUCT_TRAITS_END$"
OLDNEW
« no previous file with comments | « no previous file | ipc/attachment_broker_messages.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698