HomeSort by relevance Sort by last modified time
    Searched full:destructor (Results 1 - 25 of 4057) sorted by null

1 2 3 4 5 6 7 8 91011>>

  /external/clang/test/Sema/
constructor-attribute.c 9 int x __attribute__((destructor)); // expected-warning {{'destructor' attribute only applies to functions}}
10 int f() __attribute__((destructor));
11 int f() __attribute__((destructor(1)));
12 int f() __attribute__((destructor(1,2))); // expected-error {{'destructor' attribute takes no more than 1 argument}}
13 int f() __attribute__((destructor(1.0))); // expected-error {{'destructor' attribute requires an integer constant}}
  /external/clang/test/SemaCXX/
defaulted-private-dtor.cpp 4 // A private, but nonetheless trivial, destructor.
9 BadDtor *p = new BadDtor[3]; // expected-error {{private destructor}}
10 delete [] p; // expected-error {{private destructor}}
11 const BadDtor &dd2 = BadDtor(); // expected-error {{private destructor}}
12 BadDtor dd; // expected-error {{private destructor}}
13 throw dd; // expected-error {{private destructor}}
17 BadDtor bd; // expected-note {{inaccessible destructor}}
20 struct W : BadDtor { // expected-note {{inaccessible destructor}}
24 struct X : BadDtor { // expected-error {{private destructor}}
28 BadDtor dd; // expected-error {{private destructor}}
    [all...]
trivial-destructor.cpp 5 static_assert(__has_trivial_destructor(T1), "T1 has trivial destructor!");
10 static_assert(!__has_trivial_destructor(T2), "T2 has a user-declared destructor!");
15 static_assert(__has_trivial_destructor(T3), "T3 has a virtual function (but still a trivial destructor)!");
19 static_assert(__has_trivial_destructor(T4), "T4 has a virtual base class! (but still a trivial destructor)!");
35 static_assert(!__has_trivial_destructor(T7), "t2 does not have a trivial destructor!");
39 static_assert(!__has_trivial_destructor(T8), "The base class T2 does not have a trivial destructor!");
warn-exit-time-destructors.cpp 5 A a; // expected-warning {{declaration requires an exit-time destructor}}
6 A b[10]; // expected-warning {{declaration requires an exit-time destructor}}
7 A c[10][10]; // expected-warning {{declaration requires an exit-time destructor}}
18 static A a; // expected-warning {{declaration requires an exit-time destructor}}
19 static A b[10]; // expected-warning {{declaration requires an exit-time destructor}}
20 static A c[10][10]; // expected-warning {{declaration requires an exit-time destructor}}
34 C c; // expected-warning {{exit-time destructor}}
PR9572.cpp 5 struct Foo : public Base { // expected-error {{base class 'Base' has private destructor}}
10 Bar() { } // expected-note {{implicit destructor for 'Foo' first required here}}
virtual-base-used.cpp 17 // expected-error@+3 {{field of type 'NoDestroy' has private destructor}}
20 NoDestroy x; // expected-error {{field of type 'NoDestroy' has private destructor}}
24 // expected-note@+2 {{implicit destructor for 'B' first required here}}
33 void D::foo() { // expected-note {{implicit destructor for 'B' first required here}}
38 // expected-error@+3 {{field of type 'NoDestroy' has private destructor}}
41 NoDestroy x; // expected-error {{field of type 'NoDestroy' has private destructor}}
46 struct F : public E { // expected-note {{implicit destructor for 'E' first required here}}
58 void G::foo() { // expected-note {{implicit destructor for 'F' first required here}}
64 // expected-error@+3 {{field of type 'NoDestroy' has private destructor}}
67 NoDestroy x; // expected-error {{field of type 'NoDestroy' has private destructor}}
    [all...]
destructor.cpp 21 // expected-error{{destructor cannot be declared 'static'}} \
22 // expected-error{{destructor cannot have any parameters}} \
23 // expected-error{{destructor cannot be variadic}} \
24 // expected-error{{destructor cannot have a return type}} \
25 // expected-error{{'const' qualifier is not allowed on a destructor}}
30 // expected-error{{destructor cannot have a return type}}
38 ~E_typedef(); // expected-error{{destructor cannot be declared using a typedef 'E_typedef' (aka 'E') of the class name}}
43 ~F(); // expected-error {{destructor cannot be redeclared}}
46 ~; // expected-error {{expected a class name after '~' to name a destructor}}
47 ~undef(); // expected-error {{expected the class name after '~' to name a destructor}}
    [all...]
  /external/clang/test/CXX/special/class.dtor/
p5-0x.cpp 13 // A defaulted destructor for a class X is defined as deleted if:
16 // destructor.
19 NonTrivDtor n; // expected-note {{destructor of 'A1' is implicitly deleted because variant field 'n' has a non-trivial destructor}}
25 NonTrivDtor n; // expected-note {{because variant field 'n' has a non-trivial destructor}}
31 NonTrivDtor n[3]; // expected-note {{because variant field 'n' has a non-trivial destructor}}
37 NonTrivDtor n[3]; // expected-note {{because variant field 'n' has a non-trivial destructor}}
43 // M has a deleted or inaccessible destructor.
46 DeletedDtor a; // expected-note {{because field 'a' has a deleted destructor}}
51 InaccessibleDtor a; // expected-note {{because field 'a' has an inaccessible destructor}}
    [all...]
p2-0x.cpp 3 // A destructor shall not be declared with a ref-qualifier.
5 ~X() &; // expected-error{{ref-qualifier '&' is not allowed on a destructor}}
9 ~Y() &&; // expected-error{{ref-qualifier '&&' is not allowed on a destructor}}
p10-0x.cpp 9 x->~decltype(*x)(); // expected-error{{the type of object expression ('const int') does not match the type being destroyed ('decltype(*x)' (aka 'const int &')) in pseudo-destructor expression}} \
13 y->~decltype(*y)(); // expected-error{{destructor type 'decltype(*y)' (aka 'const A &') in object destruction expression does not match the type 'const A' of the object being destroyed}}
14 y->~decltype(T())(); // expected-error{{destructor type 'decltype(T())' in object destruction expression does not match the type 'const A' of the object being destroyed}}
21 x->~decltype(*x)(); // expected-error{{destructor type 'decltype(*x)' (aka 'const A &') in object destruction expression does not match the type 'const A' of the object being destroyed}}
23 x->~decltype(B())(); // expected-error{{destructor type 'decltype(B())' (aka 'B') in object destruction expression does not match the type 'const A' of the object being destroyed}}
24 x->~decltype(x)(); // expected-error{{destructor type 'decltype(x)' (aka 'const A *') in object destruction expression does not match the type 'const A' of the object being destroyed}}
26 x->::A::~decltype(*x)(); // expected-error{{expected a class name after '~' to name a destructor}}
33 expected-error{{the type of object expression ('int') does not match the type being destroyed ('decltype(intp())' (aka 'int *')) in pseudo-destructor expression}}
34 i.~decltype(intp())(); // expected-error{{the type of object expression ('int') does not match the type being destroyed ('decltype(intp())' (aka 'int *')) in pseudo-destructor expression}}
36 pi.~decltype(int())(); // expected-error{{the type of object expression ('int *') does not match the type being destroyed ('decltype(int())' (aka 'int')) in pseudo-destructor expression}
    [all...]
  /ndk/sources/cxx-stl/gabi++/src/
cxxabi_vec.cc 73 destructor_func destructor)
75 destructor_(destructor) {}
123 destructor_func destructor) {
125 constructor, destructor,
133 destructor_func destructor,
141 constructor, destructor, alloc,
149 destructor_func destructor,
184 constructor, destructor);
204 destructor_func destructor) {
209 scoped_cleanup cleanup(array_address, n, element_size, destructor);
    [all...]
  /external/clang/test/CXX/expr/expr.unary/expr.new/
p17.cpp 13 new dtor[0]; // expected-error{{calling a private destructor of class 'dtor'}}
14 new dtor[3]; // expected-error{{calling a private destructor of class 'dtor'}}
15 new dtor[3][3]; // expected-error{{calling a private destructor of class 'dtor'}}
  /external/compiler-rt/test/asan/TestCases/Helpers/
initialization-nobug-extra.cc 7 // Trivial constructor, non-trivial destructor:
  /ndk/tests/standalone/init-fini-arrays/
foo.cpp 11 void __attribute__((destructor))
  /external/libcxxabi/src/
cxa_vector.cpp 34 // 'release' method is called, they deallocate the memory in the destructor.
77 st_cxa_cleanup ( void *ptr, size_t &idx, size_t element_size, destruct_f destructor )
79 destructor_ ( destructor ), enabled_ ( true ) {}
112 // destructor, &::operator new[], &::operator delete[])
115 void (*constructor)(void*), void (*destructor)(void*) ) {
118 constructor, destructor, &::operator new [], &::operator delete [] );
131 // destructor for any already constructed elements, and rethrow the
132 // exception. If the destructor throws an exception, call std::terminate.
135 // padding_size is zero, the destructor may be NULL; in that case it must
141 void (*constructor)(void*), void (*destructor)(void*)
    [all...]
  /ndk/sources/cxx-stl/llvm-libc++abi/libcxxabi/src/
cxa_vector.cpp 34 // 'release' method is called, they deallocate the memory in the destructor.
77 st_cxa_cleanup ( void *ptr, size_t &idx, size_t element_size, destruct_f destructor )
79 destructor_ ( destructor ), enabled_ ( true ) {}
112 // destructor, &::operator new[], &::operator delete[])
115 void (*constructor)(void*), void (*destructor)(void*) ) {
118 constructor, destructor, &::operator new [], &::operator delete [] );
131 // destructor for any already constructed elements, and rethrow the
132 // exception. If the destructor throws an exception, call std::terminate.
135 // padding_size is zero, the destructor may be NULL; in that case it must
141 void (*constructor)(void*), void (*destructor)(void*)
    [all...]
  /external/clang/test/Analysis/
dtors-in-dtor-cfg-output.cpp 40 // CHECK: 1: this->a.~A() (Member object destructor)
41 // CHECK: 2: ~B() (Base object destructor)
42 // CHECK: 3: ~C() (Base object destructor)
43 // CHECK: 4: ~A() (Base object destructor)
51 // CHECK: 1: this->a.~A() (Member object destructor)
  /development/ndk/tests/dlclose-destruction/jni/
main.c 39 printf("Test destructor called !\n");
41 fprintf(stderr, "Test destructor was *not* called !\n");
44 fprintf(stderr, "Test destructor called but returned invalid value (%d)\n", x);
  /external/clang/test/SemaObjCXX/
ivar-construct.mm 10 struct X : T { }; // expected-error 2{{private destructor}}
15 X<Y> x; // expected-note{{implicit destructor}}
16 Y y; // expected-error{{private destructor}}
  /external/bison/src/
symtab.h 74 /** Any \c \%destructor declared specifically for this symbol.
77 functions. For example, if <tt>symbol::destructor = NULL</tt>, a
78 default \c \%destructor or a per-type \c \%destructor might be
81 code_props destructor; member in struct:symbol
86 \sa symbol::destructor */
143 /** Set the \c destructor associated with \c sym. */
144 void symbol_destructor_set (symbol *sym, code_props const *destructor);
146 /** Get the computed \c \%destructor for \c sym, which was initialized with
147 \c code_props_none_init if there's no \c \%destructor. *
201 code_props destructor; member in struct:__anon5011
    [all...]
  /external/chromium_org/chrome/browser/ui/views/toolbar/
wrench_menu_observer.h 10 // Invoked when the WrenchMenu is about to be destroyed (from its destructor).
  /external/chromium_org/tools/clang/plugins/tests/
inline_ctor.txt 5 ./inline_ctor.h:14:3: warning: [chromium-style] Complex destructor has an inline body.
nested_class_inline_ctor.txt 5 ./nested_class_inline_ctor.h:16:5: warning: [chromium-style] Complex destructor has an inline body.
  /external/clang/test/CXX/expr/expr.prim/expr.prim.lambda/
p20.cpp 10 void destructor() { function
  /external/clang/test/CodeGenCXX/
virt-dtor-gen.cpp 4 // Make sure we generate all three forms of the destructor when it is virtual.

Completed in 809 milliseconds

1 2 3 4 5 6 7 8 91011>>