OpenGrok
Home
Sort by relevance
Sort by last modified time
Full Search
Definition
Symbol
File Path
History
|
|
Help
Searched
full:destructor
(Results
1 - 25
of
1898
) sorted by null
1
2
3
4
5
6
7
8
9
10
11
>>
/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 {{attribute takes no more than 1 argument}}
13
int f() __attribute__((
destructor
(1.0))); // expected-error {{'
destructor
' attribute requires parameter 1 to be an integer constant}}
/external/clang/test/SemaCXX/
trivial-destructor.cpp
4
static_assert(__has_trivial_destructor(T1), "T1 has trivial
destructor
!");
9
static_assert(!__has_trivial_destructor(T2), "T2 has a user-declared
destructor
!");
14
static_assert(__has_trivial_destructor(T3), "T3 has a virtual function (but still a trivial
destructor
)!");
18
static_assert(__has_trivial_destructor(T4), "T4 has a virtual base class! (but still a trivial
destructor
)!");
34
static_assert(!__has_trivial_destructor(T7), "t2 does not have a trivial
destructor
!");
38
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
}}
virtual-base-used.cpp
10
NoDestroy x; // expected-error {{field of type 'NoDestroy' has private
destructor
}}
16
void D::foo() { // expected-note {{implicit default
destructor
for 'B' first required here}}
20
NoDestroy x; // expected-error {{field of type 'NoDestroy' has private
destructor
}}
22
struct F : public E { // expected-note {{implicit default
destructor
for 'E' first required here}}
28
void G::foo() { // expected-note {{implicit default
destructor
for 'F' first required here}}
32
NoDestroy x; // expected-error {{field of type 'NoDestroy' has private
destructor
}}
41
void J::foo() { // expected-note {{implicit default
destructor
for 'H' first required here}}
PR9572.cpp
5
struct Foo : public Base { // expected-error {{base class 'Base' has private
destructor
}}
10
Bar() { } // expected-note {{implicit default
destructor
for 'Foo' first required here}}
destructor.cpp
20
// expected-error{{
destructor
cannot be declared 'static'}} \
21
// expected-error{{
destructor
cannot have any parameters}} \
22
// expected-error{{
destructor
cannot be variadic}} \
23
// expected-error{{
destructor
cannot have a return type}} \
24
// expected-error{{'const' qualifier is not allowed on a
destructor
}}
29
// expected-error{{
destructor
cannot have a return type}}
37
~E_typedef(); // expected-error{{
destructor
cannot be declared using a typedef 'E_typedef' (aka 'E') of the class name}}
42
~F(); // expected-error {{
destructor
cannot be redeclared}}
45
~; // expected-error {{expected a class name after '~' to name a
destructor
}}
46
~undef(); // expected-error {{expected the class name after '~' to name a
destructor
}}
[
all
...]
implicit-virtual-member-functions.cpp
12
void B::f() { // expected-note {{implicit default
destructor
for 'B' first required here}}
20
C::C() { } // expected-note {{implicit default
destructor
for 'C' first required here}}
27
new D; // expected-note {{implicit default
destructor
for 'D' first required here}}
virtual-member-functions-key-function.cpp
7
B() { } // expected-note {{implicit default
destructor
for 'B' first required here}}
17
(void)new C; // expected-note {{implicit default
destructor
for 'C' first required here}}
/external/clang/test/CXX/special/class.dtor/
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
}}
/external/clang/test/SemaObjCXX/
ivar-construct.mm
10
struct X : T { }; // expected-error 2{{private
destructor
}}
15
X<Y> x; // expected-note{{implicit default
destructor
}}
16
Y y; // expected-error{{private
destructor
}}
/bionic/libstdc++/src/
pure_virtual.cpp
7
fprintf(stderr, "Pure virtual function called. Are you calling virtual methods from a
destructor
?\n");
/external/chromium/base/threading/
thread_local_storage_posix.cc
11
ThreadLocalStorage::Slot::Slot(TLSDestructorFunc
destructor
)
14
Initialize(
destructor
);
17
bool ThreadLocalStorage::Slot::Initialize(TLSDestructorFunc
destructor
) {
19
int error = pthread_key_create(&key_,
destructor
);
thread_local_storage.h
23
// Prototype for the TLS
destructor
function, which can be optionally used to
31
explicit Slot(TLSDestructorFunc
destructor
= NULL);
38
// '
destructor
' is a pointer to a function to perform per-thread cleanup of
41
bool Initialize(TLSDestructorFunc
destructor
);
44
// If a
destructor
was set for this slot, removes
45
// the
destructor
so that remaining threads exiting
73
//
destructor
functions. This function is used internally.
/external/clang/test/Analysis/
dtors-in-dtor-cfg-output.cpp
42
// CHECK: 1: this->a.~A() (Member object
destructor
)
43
// CHECK: 2: ~B() (Base object
destructor
)
44
// CHECK: 3: ~C() (Base object
destructor
)
45
// CHECK: 4: ~A() (Base object
destructor
)
55
// CHECK: 1: this->a.~A() (Member object
destructor
)
auto-obj-dtors-cfg-output.cpp
167
// CHECK: 6: [B1.5].~A() (Implicit
destructor
)
168
// CHECK: 7: [B1.2].~A() (Implicit
destructor
)
182
// CHECK: 5: [B1.2].~A() (Implicit
destructor
)
198
// CHECK: 7: [B1.6].~A() (Implicit
destructor
)
199
// CHECK: 8: [B1.4].~A() (Implicit
destructor
)
202
// CHECK: 11: [B1.10].~A() (Implicit
destructor
)
203
// CHECK: 12: [B1.2].~A() (Implicit
destructor
)
215
// CHECK: 3: [B1.2].~A() (Implicit
destructor
)
216
// CHECK: 4: [B3.4].~A() (Implicit
destructor
)
217
// CHECK: 5: [B3.2].~A() (Implicit
destructor
)
[
all
...]
temp-obj-dtors-cfg-output.cpp
118
// CHECK: 6: ~B() (Temporary object
destructor
)
119
// CHECK: 7: ~A() (Temporary object
destructor
)
125
// CHECK: 13: ~B() (Temporary object
destructor
)
126
// CHECK: 14: ~A() (Temporary object
destructor
)
137
// CHECK: 1: ~A() (Temporary object
destructor
)
142
// CHECK: 1: ~B() (Temporary object
destructor
)
152
// CHECK: 1: ~A() (Temporary object
destructor
)
164
// CHECK: 1: ~B() (Temporary object
destructor
)
191
// CHECK: 1: ~A() (Temporary object
destructor
)
196
// CHECK: 1: ~B() (Temporary object
destructor
)
[
all
...]
/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/CodeGenCXX/
virt-dtor-gen.cpp
4
// Make sure we generate all three forms of the
destructor
when it is virtual.
skip-vtable-pointer-initialization.cpp
7
// Check that we don't initialize the vtable pointer in A::~A(), since the
destructor
body is trivial.
23
// Check that we do initialize the vtable pointer in A::~A() since the
destructor
body isn't trivial.
39
// Check that we don't initialize the vtable pointer in A::~A(), since the
destructor
body is trivial
40
// and Field's
destructor
body is also trivial.
62
// Check that we do initialize the vtable pointer in A::~A(), since Field's
destructor
body
88
// Check that we do initialize the vtable pointer in A::~A(), since Field's
destructor
isn't
113
// variable with a non-trivial
destructor
body.
141
// class with a non-trivial
destructor
body.
167
// class with a non-trivial
destructor
body.
192
// Check that we emit a VTT for B, even though we don't initialize the vtable pointer in the
destructor
[
all
...]
/external/clang/test/CXX/stmt.stmt/stmt.dcl/
p3-0x.cpp
34
Y y; // expected-note{{jump bypasses variable with a non-trivial
destructor
}}
39
Y y2; // expected-note{{jump bypasses variable with a non-trivial
destructor
}}
/external/clang/test/CodeGen/
constructor-attribute.c
10
void B() __attribute__((
destructor
));
22
static void D() __attribute__((
destructor
));
/external/icu4c/common/unicode/
errorcode.h
47
* Note: For automatic checking for success in the
destructor
, a subclass
48
* must implement such logic in its own
destructor
because the base class
49
*
destructor
cannot call a subclass function (like handleFailure()).
50
* The ErrorCode base class
destructor
does nothing.
52
* Note also: While it is possible for a
destructor
to throw an exception,
53
* it is generally unsafe to do so. This means that in a subclass the
destructor
74
* // IcuErrorCode
destructor
checks for success.
86
/**
Destructor
, does nothing. See class documentation for details. @stable ICU 4.2 */
/external/wpa_supplicant/wpa_gui/
eventhistory.ui.h
7
** You should not define a constructor or
destructor
in this file.
10
**
destructor
.
/external/wpa_supplicant_6/wpa_supplicant/wpa_gui/
eventhistory.ui.h
7
** You should not define a constructor or
destructor
in this file.
10
**
destructor
.
/external/wpa_supplicant_8/wpa_supplicant/wpa_gui/
eventhistory.ui.h
7
** You should not define a constructor or
destructor
in this file.
10
**
destructor
.
Completed in 802 milliseconds
1
2
3
4
5
6
7
8
9
10
11
>>