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

Issue 1225333004: Add IPC and Windows message map macro blocks to .clang-format options (Closed)

Created:
5 years, 5 months ago by dcheng
Modified:
5 years, 5 months ago
Reviewers:
Nico
CC:
chromium-reviews, darin (slow to review), ncarter (slow), Peter Kasting
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Add IPC and Windows message map macro blocks to .clang-format options Use the new MacroBlockBegin/MacroBlockEnd options introduced in http://reviews.llvm.org/rL241363 so clang-format can correctly indent the bodies of IPC message maps, etc. BUG=373340 R=thakis@chromium.org TBR=darin@chromium.org Committed: https://chromium.googlesource.com/chromium/src/+/9ce8be44d36f1d8e52a571a18def3b5295cf0763

Patch Set 1 #

Total comments: 1

Patch Set 2 : . #

Patch Set 3 : Moar macros #

Unified diffs Side-by-side diffs Delta from patch set Stats (+24 lines, -3 lines) Patch
M .clang-format View 1 2 1 chunk +21 lines, -0 lines 0 comments Download
M ipc/attachment_broker_messages.h View 1 1 chunk +3 lines, -3 lines 0 comments Download

Messages

Total messages: 11 (1 generated)
dcheng
Yay, clang-format.
5 years, 5 months ago (2015-07-16 21:24:42 UTC) #2
Nico
Is there some way of formatting this that we don't have to put all of ...
5 years, 5 months ago (2015-07-16 21:26:47 UTC) #3
Nico
https://codereview.chromium.org/1225333004/diff/1/.clang-format File .clang-format (right): https://codereview.chromium.org/1225333004/diff/1/.clang-format#newcode9 .clang-format:9: MacroBlockBegin: ^BEGIN_SAFE_MSG_MAP_EX|CR_BEGIN_MSG_MAP_EX|IPC_BEGIN_MESSAGE_MAP|IPC_BEGIN_MESSAGE_MAP_WITH_PARAM|IPC_STRUCT_BEGIN|IPC_STRUCT_BEGIN_WITH_PARENT|IPC_STRUCT_TRAITS_BEGIN$ what about regular BEGIN_MSG_MAP_EX? all the mfc/atl-y ...
5 years, 5 months ago (2015-07-16 21:28:27 UTC) #4
dcheng
On 2015/07/16 at 21:26:47, thakis wrote: > Is there some way of formatting this that ...
5 years, 5 months ago (2015-07-16 21:35:26 UTC) #5
dcheng
On 2015/07/16 at 21:28:27, thakis wrote: > https://codereview.chromium.org/1225333004/diff/1/.clang-format > File .clang-format (right): > > https://codereview.chromium.org/1225333004/diff/1/.clang-format#newcode9 ...
5 years, 5 months ago (2015-07-16 21:38:04 UTC) #6
Nico
Nice, thanks! Did you see the "what about regular BEGIN_MSG_MAP_EX? all the mfc/atl-y message routing ...
5 years, 5 months ago (2015-07-16 21:38:27 UTC) #7
dcheng
On 2015/07/16 at 21:38:27, thakis wrote: > Nice, thanks! > > Did you see the ...
5 years, 5 months ago (2015-07-16 21:41:15 UTC) #8
Nico
makes sense. lgtm, thanks!
5 years, 5 months ago (2015-07-16 21:43:03 UTC) #9
dcheng
TBRing darin@ for OWNERS approval in /
5 years, 5 months ago (2015-07-16 21:44:41 UTC) #10
dcheng
5 years, 5 months ago (2015-07-16 21:47:04 UTC) #11
Message was sent while issue was closed.
Committed patchset #3 (id:40001) manually as
9ce8be44d36f1d8e52a571a18def3b5295cf0763 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698