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

Issue 1310423002: Mojo Mutex: fix declspec and GNU attribute order (Closed)

Created:
5 years, 4 months ago by hans
Modified:
5 years, 4 months ago
CC:
chromium-reviews, qsr+mojo_chromium.org, viettrungluu+watch_chromium.org, yzshen+watch_chromium.org, abarth-chromium, Aaron Boodman, darin (slow to review), ben+mojo_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Mojo Mutex: fix declspec and GNU attribute order Clang can't parse this: class __declspec(dllexport) __attribute__((lockable)) Mutex { }; the attribute and declspec have to come in the other order. BUG=82385 R=rockot@chromium.org Committed: https://chromium.googlesource.com/chromium/src/+/ad8ca12b69aa89fa781998764c19504967810237

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+2 lines, -2 lines) Patch
M third_party/mojo/src/mojo/edk/system/mutex.h View 2 chunks +2 lines, -2 lines 0 comments Download

Messages

Total messages: 9 (3 generated)
hans
Let's get this in to fix the build break, and then also commit it upstream. ...
5 years, 4 months ago (2015-08-24 22:47:51 UTC) #2
Ken Rockot(use gerrit already)
lgtm
5 years, 4 months ago (2015-08-24 22:50:46 UTC) #3
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1310423002/1 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1310423002/1
5 years, 4 months ago (2015-08-24 22:51:37 UTC) #5
hans
Committed patchset #1 (id:1) manually as ad8ca12b69aa89fa781998764c19504967810237 (presubmit successful).
5 years, 4 months ago (2015-08-24 23:17:31 UTC) #6
Nico
Since cl understands this, should we teach clang to understand this order too? Since this ...
5 years, 4 months ago (2015-08-24 23:45:01 UTC) #8
hans
5 years, 4 months ago (2015-08-24 23:48:46 UTC) #9
Message was sent while issue was closed.
On 2015/08/24 23:45:01, Nico wrote:
> Since cl understands this, should we teach clang to understand this order too?
> Since this is very rarely a problem, I guess it's better to demand a
consistent
> order?

cl won't get the thread-safety attribute (it's behind #ifdef __clang__), and it
wouldn't understand it as it's a GNU-style attribute.

It would good if Clang could parse these in any order (http://llvm.org/PR24559),
but I'm not sure how soon it can happen.

Powered by Google App Engine
This is Rietveld 408576698