| /llvm-project-15.0.7/libcxxabi/src/ |
| H A D | cxa_vector.cpp | 88 destructor_ ( destructor ), enabled_ ( true ) {} in st_cxa_cleanup() 196 void (*constructor)(void *), void (*destructor)(void *), in __cxa_vec_new2() 225 void (*constructor)(void *), void (*destructor)(void *), in __cxa_vec_new3() 264 void (*destructor)(void *)) { in __cxa_vec_cctor() 310 void (*destructor)(void *)) { in __cxa_vec_dtor() 311 if ( NULL != destructor ) { in __cxa_vec_dtor() 321 destructor ( ptr ); in __cxa_vec_dtor() 337 if ( NULL != destructor ) { in __cxa_vec_cleanup() 345 destructor ( ptr ); in __cxa_vec_cleanup() 376 destructor, &::operator delete [] ); in __cxa_vec_delete() [all …]
|
| /llvm-project-15.0.7/libcxxabi/include/ |
| H A D | cxxabi.h | 94 void (*constructor)(void *), void (*destructor)(void *)); 98 void (*constructor)(void *), void (*destructor)(void *), 103 void (*constructor)(void *), void (*destructor)(void *), 108 void (*constructor)(void *), void (*destructor)(void *)); 113 void (*destructor)(void *)); 118 void (*destructor)(void *)); 123 void (*destructor)(void *)); 127 void (*destructor)(void *), void (*dealloc)(void *)); 131 size_t padding_size, void (*destructor)(void *), 137 void (*destructor)(void *));
|
| /llvm-project-15.0.7/clang/test/Sema/ |
| H A D | constructor-attribute.c | 10 int x __attribute__((destructor)); // expected-warning {{'destructor' attribute only applies to fun… 11 int f(void) __attribute__((destructor)); 12 int f(void) __attribute__((destructor(1))); 13 int f(void) __attribute__((destructor(1,2))); // expected-error {{'destructor' attribute takes no m… 14 int f(void) __attribute__((destructor(1.0))); // expected-error {{'destructor' attribute requires a…
|
| /llvm-project-15.0.7/clang/test/CodeGen/ |
| H A D | constructor-attribute.c | 42 void B(void) __attribute__((destructor)); 54 static void D(void) __attribute__((destructor)); 56 static __attribute__((destructor(123))) void E(void) { in E() 59 static __attribute__((destructor(789))) void F(void) { in F() 62 static __attribute__((destructor(123))) void G(void) { in G()
|
| /llvm-project-15.0.7/clang-tools-extra/docs/clang-tidy/checks/cppcoreguidelines/ |
| H A D | virtual-class-destructor.rst | 1 .. title:: clang-tidy - cppcoreguidelines-virtual-class-destructor 3 cppcoreguidelines-virtual-class-destructor 6 Finds virtual classes whose destructor is neither public and virtual 7 nor protected and non-virtual. A virtual class's destructor should be specified 31 struct Foo { // NOK, protected destructor should not be virtual 37 class Bar { // NOK, public destructor should be virtual 47 struct Foo { // OK, destructor is not virtual anymore 53 class Bar { // OK, destructor is now virtual
|
| /llvm-project-15.0.7/clang/include/clang/Basic/ |
| H A D | DiagnosticSerializationKinds.td | 187 "%select{method %5|constructor|destructor}4|" 188 "%select{method %5|constructor|destructor}4 " 190 "%select{method %5|constructor|destructor}4 " 192 "%select{method %5|constructor|destructor}4 " 194 "%select{method %5|constructor|destructor}4 " 196 "%select{method %5|constructor|destructor}4 " 198 "%select{method %5|constructor|destructor}4 " 200 "%select{method %5|constructor|destructor}4 " 202 "%select{method %5|constructor|destructor}4 " 204 "%select{method %5|constructor|destructor}4 " [all …]
|
| /llvm-project-15.0.7/compiler-rt/test/profile/Posix/ |
| H A D | gcov-destructor.c | 18 __attribute__((destructor)) // CHECK: -: [[#@LINE]]:__attribute__ 19 void destructor() {} // CHECK-NEXT: 1: [[#@LINE]]: in destructor() function 21 __attribute__((destructor(101))) // CHECK: -: [[#@LINE]]:__attribute__ 25 __attribute__((destructor(99))) // CHECK: -: [[#@LINE]]:__attribute__
|
| /llvm-project-15.0.7/clang/test/CodeGen/PowerPC/ |
| H A D | aix-destructor-attribute.c | 15 int bar(void) __attribute__((destructor(100))); 16 int bar2(void) __attribute__((destructor(65535))); 17 int bar3(int) __attribute__((destructor(65535)));
|
| /llvm-project-15.0.7/clang/test/CodeGenCXX/ |
| H A D | aix-destructor-attribute.cpp | 20 int bar() __attribute__((destructor(100))); 21 int bar2() __attribute__((destructor(65535))); 22 int bar3(int) __attribute__((destructor(65535)));
|
| /llvm-project-15.0.7/clang/test/Analysis/ |
| H A D | cfg-rich-constructors.mm | 33 // CXX11-NEXT: 10: ~D() (Temporary object destructor) 34 // CXX11-NEXT: 11: ~D() (Temporary object destructor) 39 // CXX17-NEXT: 6: ~D() (Temporary object destructor) 56 // CXX11-NEXT: 9: ~D() (Temporary object destructor) 57 // CXX11-NEXT: 10: [B1.8].~D() (Implicit destructor) 62 // CXX17-NEXT: 6: [B1.5].~D() (Implicit destructor)
|
| /llvm-project-15.0.7/compiler-rt/test/orc/TestCases/FreeBSD/x86-64/ |
| H A D | lljit-initialize-deinitialize.ll | 5 ; CHECK-NEXT: destructor 10 @.str.2 = private unnamed_addr constant [11 x i8] c"destructor\00", align 1 13 define dso_local void @destructor(i8* %0) { 30 %2 = tail call i32 @__cxa_atexit(void (i8*)* @destructor, i8* null, i8* nonnull @__dso_handle) #5
|
| H A D | priority-static-initializer.S | 15 .globl destructor 17 .type destructor,@function 18 destructor: label
|
| /llvm-project-15.0.7/compiler-rt/test/orc/TestCases/Linux/x86-64/ |
| H A D | lljit-initialize-deinitialize.ll | 5 ; CHECK-NEXT: destructor 10 @.str.2 = private unnamed_addr constant [11 x i8] c"destructor\00", align 1 13 define dso_local void @destructor(i8* %0) { 30 %2 = tail call i32 @__cxa_atexit(void (i8*)* @destructor, i8* null, i8* nonnull @__dso_handle) #5
|
| H A D | priority-static-initializer.S | 15 .globl destructor 17 .type destructor,@function 18 destructor: label
|
| /llvm-project-15.0.7/compiler-rt/test/orc/TestCases/Darwin/x86-64/ |
| H A D | lljit-initialize-deinitialize.ll | 5 ; CHECK-NEXT: destructor 10 @.str.2 = private unnamed_addr constant [11 x i8] c"destructor\00", align 1 13 define dso_local void @destructor(i8* %0) { 30 %2 = tail call i32 @__cxa_atexit(void (i8*)* @destructor, i8* null, i8* nonnull @__dso_handle) #5
|
| /llvm-project-15.0.7/compiler-rt/test/orc/TestCases/Linux/aarch64/ |
| H A D | lljit-initialize-deinitialize.ll | 5 ; CHECK-NEXT: destructor 10 @.str.2 = private unnamed_addr constant [11 x i8] c"destructor\00", align 1 13 define dso_local void @destructor(i8* %0) { 30 %2 = tail call i32 @__cxa_atexit(void (i8*)* @destructor, i8* null, i8* nonnull @__dso_handle) #5
|
| H A D | priority-static-initializer.S | 14 .globl destructor 16 .type destructor,@function 17 destructor: label
|
| /llvm-project-15.0.7/compiler-rt/lib/asan/ |
| H A D | asan_posix.cpp | 90 void AsanTSDInit(void (*destructor)(void *tsd)) { in AsanTSDInit() 92 tsd_destructor = destructor; in AsanTSDInit() 118 void AsanTSDInit(void (*destructor)(void *tsd)) { in AsanTSDInit() 121 CHECK_EQ(0, pthread_key_create(&tsd_key, destructor)); in AsanTSDInit()
|
| /llvm-project-15.0.7/clang/test/SemaCXX/ |
| H A D | warn-suggest-destructor-override | 1 // RUN: %clang_cc1 -fsyntax-only -std=c++11 %s -verify -Wsuggest-destructor-override 20 // expected-warning@-1 {{'~D' overrides a destructor but is not marked 'override'}} 26 // expected-warning@-1 {{'~E' overrides a destructor but is not marked 'override'}}
|
| H A D | warn-inconsistent-missing-destructor-override | 1 // RUN: %clang_cc1 -fsyntax-only -std=c++11 %s -verify -Winconsistent-missing-destructor-override 25 // expected-warning@-1 {{'~D' overrides a destructor but is not marked 'override'}} 32 // expected-warning@-1 {{'~E' overrides a destructor but is not marked 'override'}}
|
| /llvm-project-15.0.7/llvm/test/tools/llvm-lto/ |
| H A D | ltomodule.ll | 23 …[1 x { i32, void ()*, i8* }] [{ i32, void ()*, i8* } { i32 65535, void ()* @destructor, i8* null }] 24 declare void @destructor() 28 …[1 x { i32, void ()*, i8* }] [{ i32, void ()*, i8* } { i32 65535, void ()* @destructor, i8* null }] 30 declare void @destructor()
|
| /llvm-project-15.0.7/clang/test/SemaObjCXX/ |
| H A D | 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}}
|
| /llvm-project-15.0.7/llvm/test/Transforms/SimplifyCFG/X86/ |
| H A D | merge-compatible-invokes-of-landingpad.ll | 40 call void @destructor() 83 call void @destructor() 136 call void @destructor() 188 call void @destructor() 246 call void @destructor() 313 call void @destructor() 376 call void @destructor() 434 call void @destructor() 490 call void @destructor() 546 call void @destructor() [all …]
|
| /llvm-project-15.0.7/compiler-rt/lib/memprof/ |
| H A D | memprof_posix.cpp | 30 void TSDInit(void (*destructor)(void *tsd)) { in TSDInit() 33 CHECK_EQ(0, pthread_key_create(&tsd_key, destructor)); in TSDInit()
|
| /llvm-project-15.0.7/compiler-rt/lib/msan/ |
| H A D | msan_linux.cpp | 195 void MsanTSDInit(void (*destructor)(void *tsd)) { in MsanTSDInit() 197 tsd_destructor = destructor; in MsanTSDInit() 224 void MsanTSDInit(void (*destructor)(void *tsd)) { in MsanTSDInit() 227 CHECK_EQ(0, pthread_key_create(&tsd_key, destructor)); in MsanTSDInit()
|