1 // Copyright (c) 2011 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.
5 #ifndef MISSING_CTOR_H_
6 #define MISSING_CTOR_H_
10 MyString(const MyString
&);
17 MyVector(const MyVector
&);
21 // For now, this should only warn on the missing constructor, not on the missing
22 // copy and move constructors on dllexported classes.
23 class __declspec(dllexport
) MissingCtorsArentOKInHeader
{
28 MyVector
<MyString
> two_
;
31 class __declspec(dllexport
) InlineImplicitMoveCtorOK
{
33 InlineImplicitMoveCtorOK();
36 // ctor weight = 12, dtor weight = 9.
45 class __declspec(dllexport
) ExplicitlyDefaultedInlineAlsoWarns
{
47 ExplicitlyDefaultedInlineAlsoWarns() = default;
48 ~ExplicitlyDefaultedInlineAlsoWarns() = default;
49 ExplicitlyDefaultedInlineAlsoWarns(
50 const ExplicitlyDefaultedInlineAlsoWarns
&) = default;
51 ExplicitlyDefaultedInlineAlsoWarns(ExplicitlyDefaultedInlineAlsoWarns
&&) =
56 MyVector
<MyString
> two_
;
60 #endif // MISSING_CTOR_H_