Home
last modified time | relevance | path

Searched refs:constructor (Results 1 – 25 of 327) sorted by relevance

12345678910>>...14

/llvm-project/compiler-rt/test/orc/TestCases/Linux/ppc64/
H A Dpriority-static-initializer.S15 .globl constructor.100
17 .type constructor.100,@function
18 constructor.100:
24 .localentry constructor.100, .Lfunc_lep0-.Lfunc_gep0
39 .size constructor.100, .Lfunc_end0-.Lfunc_begin0
41 .globl constructor.200
43 .type constructor.200,@function
44 constructor.200:
50 .localentry constructor.200, .Lfunc_lep1-.Lfunc_gep1
65 .size constructor.200, .Lfunc_end1-.Lfunc_begin1
[all …]
/llvm-project/clang-tools-extra/docs/clang-tidy/checks/hicpp/
H A Dundelegated-constructor.rst1 .. title:: clang-tidy - hicpp-undelegated-constructor
3 :http-equiv=refresh: 5;URL=../bugprone/undelegated-constructor.html
5 hicpp-undelegated-constructor
8 …is check is an alias for :doc:`bugprone-undelegated-constructor <../bugprone/undelegated-construct…
10 to find misplaced constructor calls inside a constructor.
20 Ctor(); // did you intend to call a delegated constructor?
21 Ctor(0); // did you intend to call a delegated constructor?
22 Ctor(1, 2); // did you intend to call a delegated constructor?
/llvm-project/clang/test/Sema/
H A Dconstructor-attribute.c3 int x __attribute__((constructor)); // expected-warning {{'constructor' attribute only applies to f…
4 int f(void) __attribute__((constructor));
5 int f(void) __attribute__((constructor(1)));
6 int f(void) __attribute__((constructor(1,2))); // expected-error {{'constructor' attribute takes no…
7 int f(void) __attribute__((constructor(1.0))); // expected-error {{'constructor' attribute requires…
8 int f(void) __attribute__((constructor(0x100000000))); // expected-error {{integer constant express…
16 void knr() __attribute__((constructor));
/llvm-project/llvm/test/DebugInfo/PDB/Native/
H A Dpdb-native-function-signatures.test77 ; DUMP-NEXT: constructor: 0
90 ; DUMP-NEXT: constructor: 0
103 ; DUMP-NEXT: constructor: 0
116 ; DUMP-NEXT: constructor: 0
129 ; DUMP-NEXT: constructor: 0
142 ; DUMP-NEXT: constructor: 0
155 ; DUMP-NEXT: constructor: 0
168 ; DUMP-NEXT: constructor: 0
181 ; DUMP-NEXT: constructor: 0
195 ; DUMP-NEXT: constructor: 1
[all …]
H A Dpdb-native-udts.test38 ; DUMP-NEXT: constructor: 0
61 ; DUMP-NEXT: constructor: 0
84 ; DUMP-NEXT: constructor: 1
107 ; DUMP-NEXT: constructor: 1
130 ; DUMP-NEXT: constructor: 1
153 ; DUMP-NEXT: constructor: 1
176 ; DUMP-NEXT: constructor: 1
199 ; DUMP-NEXT: constructor: 1
222 ; DUMP-NEXT: constructor: 1
245 ; DUMP-NEXT: constructor: 0
[all …]
/llvm-project/compiler-rt/test/orc/TestCases/FreeBSD/x86-64/
H A Dpriority-static-initializer.S38 .type constructor.65535,@function
39 constructor.65535:
51 .type constructor.200,@function
52 constructor.200:
58 .type constructor.100,@function
59 constructor.100:
93 .quad constructor.100
96 .quad constructor.200
99 .quad constructor.65535
/llvm-project/compiler-rt/test/orc/TestCases/Linux/x86-64/
H A Dpriority-static-initializer.S38 .type constructor.65535,@function
39 constructor.65535:
51 .type constructor.200,@function
52 constructor.200:
58 .type constructor.100,@function
59 constructor.100:
93 .quad constructor.100
96 .quad constructor.200
99 .quad constructor.65535
/llvm-project/clang-tools-extra/docs/clang-tidy/checks/bugprone/
H A Dcopy-constructor-init.rst1 .. title:: clang-tidy - bugprone-copy-constructor-init
3 bugprone-copy-constructor-init
6 Finds copy constructors where the constructor doesn't call the copy constructor
23 Also finds copy constructors where the constructor of
34 outcomes. The check ensures that the copy constructor of a derived class
35 properly calls the copy constructor of the base class, helping to prevent bugs
43 * It won't generate warnings for base classes that have copy constructor
47 non-default constructor, as this could be intentional.
H A Dundelegated-constructor.rst1 .. title:: clang-tidy - bugprone-undelegated-constructor
3 bugprone-undelegated-constructor
7 function call to another constructor of the same class.
9 The user most likely meant to use a delegating constructor or base class
H A Dforwarding-reference-overload.rst7 constructors. If a non const lvalue reference is passed to the constructor, the
9 parameter of the copy constructor, so the perfect forwarding constructor will be
53 constructor could hide in this case. We also suppress warnings for constructors
60 For deciding whether a constructor is guarded with enable_if, we consider the
61 types of the constructor parameters, the default values of template type parameters
64 constructor is guarded.
H A Dstring-constructor.rst1 .. title:: clang-tidy - bugprone-string-constructor
3 bugprone-string-constructor
8 A common mistake is to swap parameters to the 'fill' string-constructor.
16 Calling the string-literal constructor with a length bigger than the literal is
27 suspicious. The programmer should use the empty constructor instead.
/llvm-project/compiler-rt/test/orc/TestCases/Linux/aarch64/
H A Dpriority-static-initializer.S38 .type constructor.65535,@function
39 constructor.65535:
54 .type constructor.100,@function
55 constructor.100:
65 .type constructor.200,@function
66 constructor.200:
105 .xword constructor.100
108 .xword constructor.200
111 .xword constructor.65535
/llvm-project/clang/test/SemaObjCXX/
H A Darc-0x.mm120 …U1() = default; // expected-warning {{explicitly defaulted default constructor is implicitly delet…
122 …U1(const U1 &) = default; // expected-warning {{explicitly defaulted copy constructor is implicitl…
123 …U1(U1 &&) = default; // expected-warning {{explicitly defaulted move constructor is implicitly del…
131 // implicitly-declared default constructor of the union is not deleted by
160 …re {{copy constructor of 'S1' is implicitly deleted because field 'test_union::S1::(anonymous unio…
188 static union { // expected-error {{call to implicitly-deleted default constructor of}}
189 …id g0; // expected-note-re {{default constructor of '(unnamed union at {{.*}}' is implicitly delet…
192 static union { // expected-error {{call to implicitly-deleted default constructor of}}
193constructor of '(unnamed union at {{.*}}' is implicitly deleted because field 'test_union::(anonym…
194constructor of '(anonymous union at {{.*}}' is implicitly deleted because field 'test_union::(anon…
[all …]
H A Dnoescape.mm155 __block S6 b1; // expected-error {{call to deleted constructor of 'S6'}}
156 __block S6 b2; // expected-error {{call to deleted constructor of 'S6'}}
157 __block S6 b3; // expected-error {{call to deleted constructor of 'S6'}}
158 __block S6 b4; // expected-error {{call to deleted constructor of 'S6'}}
159 __block S6 b5; // expected-error {{call to deleted constructor of 'S6'}}
160 __block S6 b6; // expected-error {{call to deleted constructor of 'S6'}}
161 __block S6 b7; // expected-error {{call to deleted constructor of 'S6'}}
162 __block S6 b8; // expected-error {{call to deleted constructor of 'S6'}}
164 __block S6 b10; // expected-error {{call to deleted constructor of 'S6'}}
165 __block S6 b11; // expected-error {{call to deleted constructor o
[all...]
/llvm-project/clang-tools-extra/docs/clang-tidy/checks/fuchsia/
H A Dstatically-constructed-objects.rst7 the object is statically initialized with a ``constexpr`` constructor or has no
8 explicit constructor.
32 static A a; // No warning, as there is no explicit constructor
33 static C c(0); // No warning, as constructor is constexpr
35 static B b(0); // Warning, as constructor is not constexpr
36 static C c2(0, 1); // Warning, as constructor is not constexpr
41 static C c3(get_i());// Warning, as the constructor is dynamically initialized
/llvm-project/libcxxabi/src/
H A Dcxa_vector.cpp42 // They get passed a block of memory in the constructor, and unless the
168 // __cxa_vec_new2(element_count, element_size, padding_size, constructor,
172 void (*constructor)(void *), void (*destructor)(void *)) { in __cxa_vec_new()
174 constructor, destructor, &::operator new [], &::operator delete [] ); in __cxa_vec_new()
181 // the padding is non-zero, and call the given constructor on each element.
185 // NULL, return NULL. If the constructor throws an exception, call
189 // The constructor may be NULL, in which case it must not be called. If the
196 void (*constructor)(void *), void (*destructor)(void *), in __cxa_vec_new2()
213 __cxa_vec_ctor ( vec_base, element_count, element_size, constructor, destructor ); in __cxa_vec_new2()
225 void (*constructor)(voi in __cxa_vec_new3()
[all...]
/llvm-project/clang/test/SemaOpenCLCXX/
H A Daddrspace-constructors.clcpp22 //expected-note@+2{{candidate constructor (the implicit copy constructor) not viable: no known conv…
23 //expected-note@+1{{candidate constructor (the implicit move constructor) not viable: no known conv…
26 …Y() __generic = default; // expected-note{{candidate constructor not viable: requires 0 arguments,…
39 …__constant Y cy2(1); // expected-error{{no matching constructor for initialization of '__constant …
46 Z() __generic = default; // expected-error {{constructor cannot be redeclared}}
57 …onstant = default; // expected-error {{defaulted definition of default constructor cannot be marke…
/llvm-project/clang/test/CodeGenObjCXX/
H A Darc-special-member-functions.mm18 // The Weak object that is passed is destructed in this constructor.
24 // Check that the Weak object passed to this constructor is not destructed after
25 // the delegate constructor is called.
43 // The Weak object that is passed is destructed in this constructor.
49 // Check that the Weak object passed to this constructor is not destructed after
50 // the delegate constructor is called.
164 // Check that the Weak object passed to this constructor is not destructed after
165 // the delegate constructor is called.
171 // Implicitly-generated default constructor for ObjCMember
182 // Implicitly-generated copy constructor fo
[all...]
/llvm-project/clang-tools-extra/docs/clang-tidy/checks/cppcoreguidelines/
H A Dpro-type-member-init.rst6 The check flags user-provided constructor definitions that do not
10 type. If these fields aren't initialized, the constructor will leave
14 older versions it inserts the field initializers into the constructor
16 need to be zeroed in the constructor initializer list.
18 The check takes assignment of fields in the constructor body into
20 methods invoked in the constructor body.
23 types without a user-provided constructor and are not initialized. The suggested
H A Dprefer-member-initializer.rst6 Finds member initializations in the constructor body which can be converted
7 into member initializers of the constructor instead. This not only improves
31 n = 1; // Literal in default constructor
38 Here ``n`` can be initialized in the constructor initializer list, unlike
64 n = nn; // Neither default constructor nor literal
71 Here ``n`` can be initialized in the constructor initializer list, unlike
/llvm-project/mlir/include/mlir/Dialect/SCF/Transforms/
H A DPasses.td19 let constructor = "mlir::createSCFForLoopCanonicalizationPass()";
26 let constructor = "mlir::createForLoopPeelingPass()";
41 let constructor = "mlir::createForLoopSpecializationPass()";
46 let constructor = "mlir::createParallelLoopFusionPass()";
51 let constructor = "mlir::createTestSCFParallelLoopCollapsingPass()";
95 let constructor = "mlir::createParallelLoopSpecializationPass()";
100 let constructor = "mlir::createParallelLoopTilingPass()";
114 let constructor = "mlir::createForLoopRangeFoldingPass()";
119 let constructor = "mlir::createForallToForLoopPass()";
124 let constructor
[all...]
/llvm-project/clang-tools-extra/docs/clang-tidy/checks/performance/
H A Dmove-constructor-init.rst1 .. title:: clang-tidy - performance-move-constructor-init
3 performance-move-constructor-init
9 initializing a member or base class through a copy constructor instead of a
10 move constructor.
/llvm-project/llvm/test/ExecutionEngine/Orc/
H A Dglobal-ctor-with-cast.ll5 ; CHECK: constructor
9 @.str = private constant [12 x i8] c"constructor\00"
10 … appending global [1 x { i32, ptr, ptr }] [{ i32, ptr, ptr } { i32 1, ptr @constructor, ptr null }]
12 define internal i32 @constructor() #0 {
/llvm-project/clang-tools-extra/docs/clang-tidy/checks/cert/
H A Doop11-cpp.rst3 :http-equiv=refresh: 5;URL=../performance/move-constructor-init.html
9 :doc:`performance-move-constructor-init <../performance/move-constructor-init>`
14 constructor. However, all of the CERT recommendations have been removed from
/llvm-project/clang/test/CodeGen/PowerPC/
H A Daix-constructor-attribute.c10 int foo(void) __attribute__((constructor(180)));
11 int foo2(void) __attribute__((constructor(180)));
12 int foo3(void) __attribute__((constructor(65535)));

12345678910>>...14