Home
last modified time | relevance | path

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

12345678910>>...12

/llvm-project-15.0.7/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 This check is an alias for `bugprone-undelegated-constructor <../bugprone/undelegated-constructor.h…
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?
H A Dnoexcept-move.rst3 :http-equiv=refresh: 5;URL=../performance/noexcept-move-constructor.html
8 … check is an alias for `performance-noexcept-move-constructor <../performance/noexcept-move-constr…
9 …4 <http://www.codingstandard.com/rule/12-5-4-declare-noexcept-the-move-constructor-and-move-assign…
/llvm-project-15.0.7/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-15.0.7/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-15.0.7/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-15.0.7/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 …]
/llvm-project-15.0.7/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-15.0.7/clang/test/SemaObjCXX/
H A Darc-0x.mm135 // implicitly-declared default constructor of the union is not deleted by
197 …n { // expected-note {{default constructor of '' is implicitly deleted because field '' has a dele…
198 …n { // expected-note {{default constructor of '' is implicitly deleted because field '' has a dele…
208 U0 t0; // expected-error {{call to implicitly-deleted default constructor}}
209 U1 t1; // expected-error {{call to implicitly-deleted default constructor}}
212 S0 t4; // expected-error {{call to implicitly-deleted default constructor}}
213 S1 t5; // expected-error {{call to implicitly-deleted default constructor}}
214 S2 t6; // expected-error {{call to implicitly-deleted default constructor}}
228 U0 t0(*u0); // expected-error {{call to implicitly-deleted copy constructor}}
229 U1 t1(*u1); // expected-error {{call to implicitly-deleted copy constructor}}
[all …]
/llvm-project-15.0.7/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(get_i()) // Warning, as the constructor is dynamically initialized
/llvm-project-15.0.7/clang/include/clang/Basic/
H A DDiagnosticSerializationKinds.td187 "%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/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 is not constexp…
/llvm-project-15.0.7/mlir/include/mlir/Conversion/
H A DPasses.td68 let constructor = "mlir::createLowerAffinePass()";
466 let constructor = "mlir::createLinalgToSPIRVPass()";
517 let constructor = "mlir::createMemRefToLLVMPass()";
600 let constructor = "mlir::createPDLToPDLInterpPass()";
636 let constructor = "mlir::createConvertSCFToCFPass()";
676 let constructor = "mlir::createAffineForToGPUPass()";
788 let constructor = "tosa::createTosaToArith()";
803 let constructor = "tosa::createTosaToLinalg()";
818 let constructor = "tosa::createTosaToLinalgNamed()";
833 let constructor = "tosa::createTosaToSCF()";
[all …]
/llvm-project-15.0.7/libcxxabi/src/
H A Dcxa_vector.cpp172 void (*constructor)(void *), void (*destructor)(void *)) { in __cxa_vec_new()
174 constructor, destructor, &::operator new [], &::operator delete [] ); in __cxa_vec_new()
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)(void *), void (*destructor)(void *), in __cxa_vec_new3()
263 void (*constructor)(void *, void *), in __cxa_vec_cctor()
265 if ( NULL != constructor ) { in __cxa_vec_cctor()
273 constructor ( dest_ptr, src_ptr ); in __cxa_vec_cctor()
288 void (*constructor)(void *), void (*destructor)(void *)) { in __cxa_vec_ctor()
289 if ( NULL != constructor ) { in __cxa_vec_ctor()
[all …]
/llvm-project-15.0.7/mlir/include/mlir/Dialect/Linalg/
H A DPasses.td23 let constructor = "mlir::createConvertElementwiseToLinalgPass()";
39 let constructor = "mlir::createLinalgFoldUnitExtentDimsPass()";
61 let constructor = "mlir::createLinalgNamedOpConversionPass()";
83 let constructor = "mlir::createConvertLinalgToLoopsPass()";
106 let constructor = "mlir::createLinalgBufferizePass()";
117 let constructor = "mlir::createLinalgTilingPass()";
133 let constructor = "mlir::createLinalgGeneralizationPass()";
139 let constructor = "mlir::createLinalgDetensorizePass()";
190 let constructor = "mlir::createLinalgStrategyTilePass()";
203 let constructor = "mlir::createLinalgStrategyPadPass()";
[all …]
/llvm-project-15.0.7/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
7 the copy constructor of the base class.
20 Also finds copy constructors where the constructor of
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
44 constructor could hide in this case. We also suppress warnings for constructors
51 For deciding whether a constructor is guarded with enable_if, we consider the
52 types of the constructor parameters, the default values of template type parameters
55 constructor is guarded.
/llvm-project-15.0.7/mlir/include/mlir/Dialect/SPIRV/Transforms/
H A DPasses.td17 let constructor = "mlir::spirv::createDecorateSPIRVCompositeTypeLayoutPass()";
22 let constructor = "mlir::spirv::createCanonicalizeGLPass()";
27 let constructor = "mlir::spirv::createLowerABIAttributesPass()";
33 let constructor = "mlir::spirv::createRewriteInsertsPass()";
40 let constructor = "mlir::spirv::createUnifyAliasedResourcePass()";
46 let constructor = "mlir::spirv::createUpdateVersionCapabilityExtensionPass()";
/llvm-project-15.0.7/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-15.0.7/clang-tools-extra/docs/clang-tidy/checks/cppcoreguidelines/
H A Dpro-type-member-init.rst6 The check flags user-defined 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
14 If the language version is `C++ 11` or above, the constructor is the default
15 constructor of the class, the field is not a bitfield (only in case of earlier
36 n = 1; // Literal in default constructor
68 n = nn; // Neither default constructor nor literal
75 Here ``n`` can be initialized in the constructor initialization list, unlike
/llvm-project-15.0.7/clang/test/CodeGenObjCXX/
H A Darc-special-member-functions.mm18 // The Weak object that is passed is destructed in this constructor.
25 // the delegate constructor is called.
43 // The Weak object that is passed is destructed in this constructor.
50 // the delegate constructor is called.
168 // the delegate constructor is called.
174 // Implicitly-generated default constructor for ObjCMember
185 // Implicitly-generated copy constructor for ObjCMember
192 // Implicitly-generated default constructor for ObjCArrayMember
209 // Implicitly-generated copy constructor for ObjCArrayMember
216 // Implicitly-generated default constructor for ObjCBlockMember
[all …]
/llvm-project-15.0.7/mlir/include/mlir/Dialect/SCF/Transforms/
H A DPasses.td16 let constructor = "mlir::createSCFBufferizePass()";
26 let constructor = "mlir::createSCFForLoopCanonicalizationPass()";
33 let constructor = "mlir::createForLoopPeelingPass()";
45 let constructor = "mlir::createForLoopSpecializationPass()";
50 let constructor = "mlir::createParallelLoopFusionPass()";
55 let constructor = "mlir::createParallelLoopCollapsingPass()";
69 let constructor = "mlir::createParallelLoopSpecializationPass()";
74 let constructor = "mlir::createParallelLoopTilingPass()";
88 let constructor = "mlir::createForLoopRangeFoldingPass()";
93 let constructor = "mlir::createForToWhileLoopPass()";
/llvm-project-15.0.7/llvm/test/ExecutionEngine/Orc/
H A Dglobal-ctor-with-cast.ll5 ; CHECK: constructor
9 @.str = private constant [12 x i8] c"constructor\00"
10 …)*, i8* }] [{ i32, void ()*, i8* } { i32 1, void ()* bitcast (i32 ()* @constructor to void ()*), i…
12 define internal i32 @constructor() #0 {
/llvm-project-15.0.7/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>>...12