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

Issue 2490473007: Improved check for trivial templates. (Closed)

Created:
4 years, 1 month ago by palmer
Modified:
4 years, 1 month ago
CC:
chromium-reviews
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Improved check for trivial templates. This is a follow-up to/fix for https://codereview.chromium.org/2483973003 (Treat std::atomic_int as a trivial class member when checking for non-trivial classes.). BUG=663463 Committed: https://crrev.com/59b560a688614d2d283ff12f8b36e2fc29d92932 Cr-Commit-Position: refs/heads/master@{#431450}

Patch Set 1 #

Patch Set 2 : atomic_int is not necessary called that at this point in the check. #

Total comments: 3

Patch Set 3 : Check in Type::Typedef, and add a test expectations file. #

Total comments: 1

Patch Set 4 : Rebase to re-add test! #

Patch Set 5 : Check isStdNamespace, too. #

Total comments: 3

Patch Set 6 : Check in case Type::Typedef, and check isStdNamespace. #

Patch Set 7 : Enable GNU asm for spin_lock. #

Patch Set 8 : GNU asm change was out of scope for this CL. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+58 lines, -1 line) Patch
M tools/clang/plugins/FindBadConstructsConsumer.cpp View 1 2 3 4 5 2 chunks +10 lines, -2 lines 0 comments Download
A tools/clang/plugins/tests/trivial_ctor.h View 1 2 3 4 5 1 chunk +28 lines, -0 lines 0 comments Download
A tools/clang/plugins/tests/trivial_ctor.cpp View 1 2 3 4 5 1 chunk +21 lines, -0 lines 0 comments Download
A tools/clang/plugins/tests/trivial_ctor.txt View 1 2 0 chunks +-1 lines, --1 lines 0 comments Download

Messages

Total messages: 41 (12 generated)
palmer
The previous CL wasn't quite the trick, alas.
4 years, 1 month ago (2016-11-09 02:00:07 UTC) #2
dcheng
https://codereview.chromium.org/2490473007/diff/20001/tools/clang/plugins/FindBadConstructsConsumer.cpp File tools/clang/plugins/FindBadConstructsConsumer.cpp (right): https://codereview.chromium.org/2490473007/diff/20001/tools/clang/plugins/FindBadConstructsConsumer.cpp#newcode667 tools/clang/plugins/FindBadConstructsConsumer.cpp:667: base_name == "__atomic_base") { I'm wondering if we should ...
4 years, 1 month ago (2016-11-09 06:33:46 UTC) #3
hans
https://codereview.chromium.org/2490473007/diff/20001/tools/clang/plugins/FindBadConstructsConsumer.cpp File tools/clang/plugins/FindBadConstructsConsumer.cpp (right): https://codereview.chromium.org/2490473007/diff/20001/tools/clang/plugins/FindBadConstructsConsumer.cpp#newcode667 tools/clang/plugins/FindBadConstructsConsumer.cpp:667: base_name == "__atomic_base") { On 2016/11/09 06:33:45, dcheng wrote: ...
4 years, 1 month ago (2016-11-09 16:48:01 UTC) #5
palmer
https://codereview.chromium.org/2490473007/diff/20001/tools/clang/plugins/FindBadConstructsConsumer.cpp File tools/clang/plugins/FindBadConstructsConsumer.cpp (right): https://codereview.chromium.org/2490473007/diff/20001/tools/clang/plugins/FindBadConstructsConsumer.cpp#newcode667 tools/clang/plugins/FindBadConstructsConsumer.cpp:667: base_name == "__atomic_base") { > I'm wondering if we ...
4 years, 1 month ago (2016-11-10 00:25:22 UTC) #6
dcheng
(I think the DeclContext should always be non-null... but maybe C++ is weirder than I ...
4 years, 1 month ago (2016-11-10 00:41:03 UTC) #11
palmer
> (I think the DeclContext should always be non-null... but maybe C++ is weirder than ...
4 years, 1 month ago (2016-11-10 02:27:24 UTC) #12
palmer
> > Nit: I wonder if we should get the decl context and call isStdNamespace() ...
4 years, 1 month ago (2016-11-10 02:28:56 UTC) #13
dcheng
On 2016/11/10 02:28:56, palmer wrote: > > > Nit: I wonder if we should get ...
4 years, 1 month ago (2016-11-10 06:58:45 UTC) #14
dcheng
(FOrgot to publish the lone comment) https://codereview.chromium.org/2490473007/diff/80001/tools/clang/plugins/FindBadConstructsConsumer.cpp File tools/clang/plugins/FindBadConstructsConsumer.cpp (right): https://codereview.chromium.org/2490473007/diff/80001/tools/clang/plugins/FindBadConstructsConsumer.cpp#newcode680 tools/clang/plugins/FindBadConstructsConsumer.cpp:680: if (auto* context ...
4 years, 1 month ago (2016-11-10 06:58:56 UTC) #15
hans
https://codereview.chromium.org/2490473007/diff/80001/tools/clang/plugins/FindBadConstructsConsumer.cpp File tools/clang/plugins/FindBadConstructsConsumer.cpp (right): https://codereview.chromium.org/2490473007/diff/80001/tools/clang/plugins/FindBadConstructsConsumer.cpp#newcode680 tools/clang/plugins/FindBadConstructsConsumer.cpp:680: if (auto* context = decl->getDeclContext()) { On 2016/11/10 06:58:56, ...
4 years, 1 month ago (2016-11-10 16:35:36 UTC) #16
palmer
https://codereview.chromium.org/2490473007/diff/80001/tools/clang/plugins/FindBadConstructsConsumer.cpp File tools/clang/plugins/FindBadConstructsConsumer.cpp (right): https://codereview.chromium.org/2490473007/diff/80001/tools/clang/plugins/FindBadConstructsConsumer.cpp#newcode680 tools/clang/plugins/FindBadConstructsConsumer.cpp:680: if (auto* context = decl->getDeclContext()) { > > hans@, ...
4 years, 1 month ago (2016-11-10 23:25:58 UTC) #17
palmer
> tools/clang/plugins/FindBadConstructsConsumer.cpp:667: base_name == "__atomic_base") { > I'm wondering if we should just intercept this ...
4 years, 1 month ago (2016-11-10 23:26:35 UTC) #18
dcheng
LGTM This is verified to unblock the SpinLock changes, right?
4 years, 1 month ago (2016-11-11 00:09:25 UTC) #19
Elliot Glaysher
lgtm
4 years, 1 month ago (2016-11-11 00:10:15 UTC) #20
hans
lgtm
4 years, 1 month ago (2016-11-11 00:12:35 UTC) #21
palmer
> This is verified to unblock the SpinLock changes, right? It gets me to the ...
4 years, 1 month ago (2016-11-11 01:15:48 UTC) #22
hans
On 2016/11/11 01:15:48, palmer wrote: > But the next patchset fixes that. Turns out you ...
4 years, 1 month ago (2016-11-11 01:18:11 UTC) #23
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2490473007/120001
4 years, 1 month ago (2016-11-11 01:19:25 UTC) #26
hans
not LGTM; the base/BUILD.gn change is out of scope
4 years, 1 month ago (2016-11-11 01:20:00 UTC) #28
palmer
> not LGTM; the base/BUILD.gn change is out of scope dcheng asked if I could ...
4 years, 1 month ago (2016-11-11 01:22:27 UTC) #29
palmer
> dcheng asked if I could make it into this CL so that we don't ...
4 years, 1 month ago (2016-11-11 01:23:58 UTC) #30
hans
On 2016/11/11 01:22:27, palmer wrote: > > not LGTM; the base/BUILD.gn change is out of ...
4 years, 1 month ago (2016-11-11 01:23:59 UTC) #31
hans
On 2016/11/11 01:23:58, palmer wrote: > > dcheng asked if I could make it into ...
4 years, 1 month ago (2016-11-11 01:25:02 UTC) #32
palmer
> I don't have an opinion about the change itself, but it should go in ...
4 years, 1 month ago (2016-11-11 01:25:18 UTC) #33
hans
On 2016/11/11 01:25:18, palmer wrote: > > I don't have an opinion about the change ...
4 years, 1 month ago (2016-11-11 01:25:57 UTC) #34
dcheng
On 2016/11/11 01:25:57, hans wrote: > On 2016/11/11 01:25:18, palmer wrote: > > > I ...
4 years, 1 month ago (2016-11-11 01:27:24 UTC) #35
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2490473007/140001
4 years, 1 month ago (2016-11-11 01:35:31 UTC) #38
commit-bot: I haz the power
Committed patchset #8 (id:140001)
4 years, 1 month ago (2016-11-11 01:48:33 UTC) #39
commit-bot: I haz the power
4 years, 1 month ago (2016-11-11 01:55:02 UTC) #41
Message was sent while issue was closed.
Patchset 8 (id:??) landed as
https://crrev.com/59b560a688614d2d283ff12f8b36e2fc29d92932
Cr-Commit-Position: refs/heads/master@{#431450}

Powered by Google App Engine
This is Rietveld 408576698