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

Unified Diff: tools/clang/plugins/tests/trivial_ctor.cpp

Issue 2491523002: Revert of Treat std::atomic_int as a trivial class member when checking for non-trivial classes. (Closed)
Patch Set: Created 4 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « tools/clang/plugins/tests/trivial_ctor.h ('k') | tools/clang/plugins/tests/virtual_bodies.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/clang/plugins/tests/trivial_ctor.cpp
diff --git a/tools/clang/plugins/tests/trivial_ctor.cpp b/tools/clang/plugins/tests/trivial_ctor.cpp
deleted file mode 100644
index e24bb6f1e0329bf3f6204750e596a4ddc8f62ddc..0000000000000000000000000000000000000000
--- a/tools/clang/plugins/tests/trivial_ctor.cpp
+++ /dev/null
@@ -1,22 +0,0 @@
-// Copyright (c) 2016 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#include "trivial_ctor.h"
-
-// Due to https://bugs.chromium.org/p/chromium/issues/detail?id=663463, we treat
-// templated classes/structs as non-trivial, even if they really are trivial.
-// Thus, classes that have such a class/struct as a member get flagged as being
-// themselves non-trivial, even if (like |MySpinLock|) they are. Special-case
-// [std::]atomic_int.
-class TrivialTemplateOK {
- public:
-
- private:
- MySpinLock lock_;
-};
-
-int main() {
- TrivialTemplateOK one;
- return 0;
-}
« no previous file with comments | « tools/clang/plugins/tests/trivial_ctor.h ('k') | tools/clang/plugins/tests/virtual_bodies.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698