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

Side by Side Diff: tools/clang/plugins/tests/trivial_ctor.h

Issue 2490473007: Improved check for trivial templates. (Closed)
Patch Set: Check isStdNamespace, too. 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 unified diff | Download patch
OLDNEW
(Empty)
1 // Copyright (c) 2016 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #ifndef TRIVIAL_CTOR_H_
6 #define TRIVIAL_CTOR_H_
7
8 template<typename T>
9 struct atomic {
10 T i;
11 };
12
13 typedef atomic<int> atomic_int;
14
15 struct MySpinLock {
16 MySpinLock();
17 ~MySpinLock();
18 MySpinLock(const MySpinLock&);
19 MySpinLock(MySpinLock&&);
20 atomic_int lock_;
21 };
22
23 #endif // TRIVIAL_CTOR_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698