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_
11 MyString(const MyString
&);
19 MyVector(const MyVector
&);
23 // Note: this should warn for an implicit copy constructor too, but currently
24 // doesn't, due to a plugin bug.
25 class MissingCtorsArentOKInHeader
{
30 MyVector
<MyString
> two_
;
33 // Inline move ctors shouldn't be warned about. Similar to the previous test
34 // case, this also incorrectly fails to warn for the implicit copy ctor.
35 class InlineImplicitMoveCtorOK
{
37 InlineImplicitMoveCtorOK();
40 // ctor weight = 12, dtor weight = 9.
49 class ExplicitlyDefaultedInlineAlsoWarns
{
51 ExplicitlyDefaultedInlineAlsoWarns() = default;
52 ~ExplicitlyDefaultedInlineAlsoWarns() = default;
53 ExplicitlyDefaultedInlineAlsoWarns(
54 const ExplicitlyDefaultedInlineAlsoWarns
&) = default;
58 MyVector
<MyString
> two_
;
62 #endif // MISSING_CTOR_H_