/external/clang/test/Analysis/ |
temporaries.cpp | 7 struct Trivial { 8 Trivial(int x) : value(x) {} 12 struct NonTrivial : public Trivial { 13 NonTrivial(int x) : Trivial(x) {} 18 Trivial getTrivial() { 19 return Trivial(42); // no-warning 22 const Trivial &getTrivialRef() { 23 return Trivial(42); // expected-warning {{Address of stack memory associated with temporary object of type 'Trivial' returned to caller}} 36 struct TrivialSubclass : public Trivial { [all...] |
/external/clang/test/CXX/class/ |
p6-0x.cpp | 4 class Trivial { int n; void f(); }; 11 static_assert(__is_trivial(Trivial), "Trivial is not trivial"); 12 static_assert(!__is_trivial(NonTrivial1), "NonTrivial1 is trivial"); 13 static_assert(!__is_trivial(NonTrivial2), "NonTrivial2 is trivial"); 14 static_assert(!__is_trivial(NonTrivial3), "NonTrivial3 is trivial"); 15 static_assert(!__is_trivial(NonTrivial4), "NonTrivial4 is trivial"); 16 static_assert(!__is_trivial(NonTrivial5), "NonTrivial5 is trivial"); 31 static_assert(!__is_trivial(NonTrivial6), "NonTrivial6 is trivial"); [all...] |
/external/clang/test/SemaCXX/ |
warn-unused-private-field.cpp | 80 class Trivial { 82 Trivial() = default; 83 Trivial(int a) {} 110 Trivial trivial_initializer_ = Trivial(); // expected-warning{{private field 'trivial_initializer_' is not used}} 111 Trivial non_trivial_initializer_ = Trivial(42); 115 Trivial trivial_; // expected-warning{{private field 'trivial_' is not used}} 116 Trivial user_constructor_;
|
/external/clang/test/CXX/special/class.copy/ |
p11.0x.move.cpp | 3 struct Trivial {}; 10 // -- a variant member with a non-trivial corresponding constructor 12 NonTrivial NT; // expected-note{{deleted because variant field 'NT' has a non-trivial move constructor}} 19 NonTrivial NT; // expected-note{{deleted because variant field 'NT' has a non-trivial move constructor}} 71 const Trivial ct; 84 volatile Trivial vt; // expected-note{{deleted because field 'vt' has no move constructor}}
|
p23-cxx11.cpp | 3 struct Trivial {}; 59 // -- a variant member with a non-trivial corresponding assignment operator 63 NonTrivialCopyAssign x; // expected-note {{variant field 'x' has a non-trivial copy assign}} 71 NonTrivialMoveAssign x; // expected-note {{variant field 'x' has a non-trivial move assign}} 123 const Trivial a; // expected-note 3{{field 'a' has no }} 126 volatile Trivial a; // expected-note 3{{field 'a' has no }}
|
p11.0x.copy.cpp | 3 struct Trivial {}; 10 // -- a variant member with a non-trivial corresponding constructor 12 NonTrivial NT; // expected-note{{copy constructor of 'DeletedNTVariant' is implicitly deleted because variant field 'NT' has a non-trivial copy constructor}} 20 NonTrivial NT; // expected-note{{copy constructor of 'DeletedNTVariant2' is implicitly deleted because variant field 'NT' has a non-trivial copy constructor}} 76 volatile Trivial vm; // expected-note {{has no copy}}
|
p12-0x.cpp | 17 struct Trivial {}; 18 using _ = trivially_copyable<Trivial>; 20 // A copy/move constructor for class X is trivial if it is not user-provided, 40 struct VBase : virtual Trivial {}; 43 // and the constructor selected to copy/move each [direct subobject] is trivial 53 // We can select a non-trivial copy ctor even if there is a trivial one. 67 // Both trivial and non-trivial special members. 69 TNT(const TNT &) = default; // trivial [all...] |
p25-0x.cpp | 20 struct Trivial {}; 21 using _ = trivially_assignable<Trivial>; 23 // A copy/move assignment operator for class X is trivial if it is not user-provided, 43 struct VBase : virtual Trivial {}; 46 // and the assignment operator selected to copy/move each [direct subobject] is trivial 61 // Both trivial and non-trivial special members. 63 TNT &operator=(const TNT &) = default; // trivial 64 TNT &operator=(TNT &); // non-trivial 66 TNT &operator=(TNT &&) = default; // trivial [all...] |
/external/chromium_org/testing/gtest/samples/ |
sample1_unittest.cc | 127 // Tests some trivial cases. 128 TEST(IsPrimeTest, Trivial) {
|
/external/protobuf/gtest/samples/ |
sample1_unittest.cc | 127 // Tests some trivial cases. 128 TEST(IsPrimeTest, Trivial) {
|
/ndk/sources/third_party/googletest/googletest/samples/ |
sample1_unittest.cc | 127 // Tests some trivial cases. 128 TEST(IsPrimeTest, Trivial) {
|
/external/clang/test/CXX/special/class.ctor/ |
p5-0x.cpp | 22 // - X is a union-like class that has a variant member with a non-trivial 24 union Deleted1a { UserProvidedDefCtor u; }; // expected-note {{default constructor of 'Deleted1a' is implicitly deleted because variant field 'u' has a non-trivial default constructor}} 80 const UserProvidedDefCtor c; // expected-note {{because variant field 'c' has a non-trivial default constructor}} 145 class Trivial { static const int n = 42; }; 146 static_assert(__has_trivial_constructor(Trivial), "Trivial is nontrivial"); 148 // A default constructor is trivial if it is not user-provided and if: 150 static_assert(!__has_trivial_constructor(NonTrivialDefCtor1), "NonTrivialDefCtor1 is trivial"); 162 ASSERT_NONTRIVIAL(NonTrivialDefCtor3, : virtual Trivial, ) 167 // - all the direct base classes of its class have trivial default constructors, an [all...] |
/external/chromium_org/base/threading/ |
platform_thread_unittest.cc | 12 // Trivial tests that thread runs and doesn't crash on create and join --------- 30 TEST(PlatformThreadTest, Trivial) {
|
/ndk/tests/device/issue42891-boost-1_52/jni/boost/boost/numeric/conversion/detail/ |
converter.hpp | 450 // Trivial Converter : used when (cv-unqualified) T == (cv-unqualified) S 583 typedef trivial_converter_impl<Traits> Trivial ; 584 typedef mpl::identity <Trivial> TrivialQ ; 593 typedef typename Traits::trivial trivial ; typedef in struct:boost::numeric::convdetail::get_converter_impl 595 typedef typename mpl::eval_if<trivial,TrivialQ,NonTrivialQ>::type type ;
|
/prebuilts/tools/common/netbeans-visual/ |
org-openide-util.jar | |
/ndk/build/core/ |
definitions.mk | [all...] |