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

Issue 1728303003: tools/gn: Add out-of-line copy ctors for complex classes. (Closed)

Created:
4 years, 10 months ago by vmpstr
Modified:
4 years, 10 months ago
Reviewers:
tfarina, brettw, Nico, dcheng
CC:
chromium-reviews, tfarina
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

tools/gn: Add out-of-line copy ctors for complex classes. This patch adds out of line copy constructors for classes that our clang-plugin considers heavy. This is an effort to enable copy constructor checks by default. BUG=436357 R=brettw@chromium.org, dcheng@chromium.org, thakis@chromium.org Committed: https://crrev.com/7d50ff54f4c5fd2a1a4cf52a919f9eb15d5d5469 Cr-Commit-Position: refs/heads/master@{#377375}

Patch Set 1 #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+26 lines, -0 lines) Patch
M tools/gn/err.h View 1 chunk +2 lines, -0 lines 0 comments Download
M tools/gn/err.cc View 1 chunk +2 lines, -0 lines 0 comments Download
M tools/gn/label.h View 1 chunk +1 line, -0 lines 1 comment Download
M tools/gn/label.cc View 1 chunk +2 lines, -0 lines 0 comments Download
M tools/gn/label_pattern.h View 1 chunk +1 line, -0 lines 0 comments Download
M tools/gn/label_pattern.cc View 1 chunk +2 lines, -0 lines 0 comments Download
M tools/gn/pattern.h View 2 chunks +2 lines, -0 lines 0 comments Download
M tools/gn/pattern.cc View 2 chunks +4 lines, -0 lines 0 comments Download
M tools/gn/substitution_list.h View 1 chunk +1 line, -0 lines 0 comments Download
M tools/gn/substitution_list.cc View 1 chunk +2 lines, -0 lines 0 comments Download
M tools/gn/substitution_pattern.h View 1 chunk +1 line, -0 lines 0 comments Download
M tools/gn/substitution_pattern.cc View 1 chunk +3 lines, -0 lines 0 comments Download
M tools/gn/token.h View 1 chunk +1 line, -0 lines 0 comments Download
M tools/gn/token.cc View 1 chunk +2 lines, -0 lines 0 comments Download

Messages

Total messages: 13 (3 generated)
vmpstr
Please take a look.
4 years, 10 months ago (2016-02-24 18:59:56 UTC) #1
brettw
lgtm, thanks!
4 years, 10 months ago (2016-02-24 19:06:00 UTC) #2
tfarina
So is this different from DISALLOW_COPY macro? Sorry for my ignorance in C++11 here. https://chromium.googlesource.com/chromium/src/+/master/base/macros.h#17 ...
4 years, 10 months ago (2016-02-24 19:13:48 UTC) #3
tfarina
Actually, in those cases the classes are copyable? Hence the default rather than delete?
4 years, 10 months ago (2016-02-24 19:15:11 UTC) #4
brettw
I think I intended these classes to be copyable.
4 years, 10 months ago (2016-02-24 19:17:25 UTC) #5
vmpstr
Yeah these classes are being copied. The clang plugin to detect these cases saw that ...
4 years, 10 months ago (2016-02-24 19:30:28 UTC) #6
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1728303003/1 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1728303003/1
4 years, 10 months ago (2016-02-24 19:35:40 UTC) #8
tfarina
Thanks. lgtm
4 years, 10 months ago (2016-02-24 19:52:09 UTC) #10
commit-bot: I haz the power
Committed patchset #1 (id:1)
4 years, 10 months ago (2016-02-24 20:45:16 UTC) #11
commit-bot: I haz the power
4 years, 10 months ago (2016-02-24 20:46:15 UTC) #13
Message was sent while issue was closed.
Patchset 1 (id:??) landed as
https://crrev.com/7d50ff54f4c5fd2a1a4cf52a919f9eb15d5d5469
Cr-Commit-Position: refs/heads/master@{#377375}

Powered by Google App Engine
This is Rietveld 408576698