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

Issue 2483973003: Treat std::atomic_int as a trivial class member when checking for non-trivial classes. (Closed)

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

Description

Treat atomic_int as a trivial class member when checking for non-trivial classes. This is a quick hack to unblock work on https://codereview.chromium.org/2484803003. The real fix will be to check the class after template instantiation. BUG=663463 Committed: https://crrev.com/9d17488d4ed2bfecab3d6e723881e1d9cedfb90a Cr-Commit-Position: refs/heads/master@{#430773}

Patch Set 1 #

Total comments: 1

Patch Set 2 : Add a test, and fix a typo. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+64 lines, -5 lines) Patch
M tools/clang/plugins/FindBadConstructsConsumer.cpp View 1 chunk +6 lines, -2 lines 0 comments Download
A tools/clang/plugins/tests/trivial_ctor.h View 1 1 chunk +33 lines, -0 lines 0 comments Download
A tools/clang/plugins/tests/trivial_ctor.cpp View 1 1 chunk +22 lines, -0 lines 0 comments Download
M tools/clang/plugins/tests/virtual_bodies.h View 1 2 chunks +3 lines, -3 lines 0 comments Download

Messages

Total messages: 14 (4 generated)
palmer
A trivial review for a quick hack to unblock other work. I'll re-assign the bug ...
4 years, 1 month ago (2016-11-08 20:28:21 UTC) #2
Elliot Glaysher
lgtm (You might want to mention that this is in std:: in the commit message; ...
4 years, 1 month ago (2016-11-08 20:47:31 UTC) #3
dcheng
LGTM, but let's add a test for this in the plugin tests. https://codereview.chromium.org/2483973003/diff/1/tools/clang/plugins/FindBadConstructsConsumer.cpp File tools/clang/plugins/FindBadConstructsConsumer.cpp ...
4 years, 1 month ago (2016-11-08 21:06:20 UTC) #4
dcheng
On 2016/11/08 21:06:20, dcheng wrote: > LGTM, but let's add a test for this in ...
4 years, 1 month ago (2016-11-08 21:06:45 UTC) #5
palmer
> (You might want to mention that this is in std:: in the commit message; ...
4 years, 1 month ago (2016-11-08 21:31:36 UTC) #6
palmer
> LGTM, but let's add a test for this in the plugin tests. Done. > ...
4 years, 1 month ago (2016-11-08 23:41:08 UTC) #7
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/2483973003/20001
4 years, 1 month ago (2016-11-08 23:41:51 UTC) #10
commit-bot: I haz the power
Committed patchset #2 (id:20001)
4 years, 1 month ago (2016-11-08 23:55:34 UTC) #11
commit-bot: I haz the power
Patchset 2 (id:??) landed as https://crrev.com/9d17488d4ed2bfecab3d6e723881e1d9cedfb90a Cr-Commit-Position: refs/heads/master@{#430773}
4 years, 1 month ago (2016-11-08 23:58:30 UTC) #13
Nico
4 years, 1 month ago (2016-11-09 15:05:00 UTC) #14
Message was sent while issue was closed.
A revert of this CL (patchset #2 id:20001) has been created in
https://codereview.chromium.org/2491523002/ by thakis@chromium.org.

The reason for reverting is: This broke all clang tot bots, e.g. here: 

https://build.chromium.org/p/chromium.fyi/builders/ClangToTLinux%20%28dbg%29/...

Testing trivial_ctor.cpp... failed: no expected file found
...
Ran 18 tests: 17 succeeded, 1 failed
    trivial_ctor.

Powered by Google App Engine
This is Rietveld 408576698