Home
last modified time | relevance | path

Searched full:other (Results 1 – 25 of 6234) sorted by relevance

12345678910>>...250

/llvm-project/clang-tools-extra/test/clang-tidy/checkers/modernize/
H A Duse-equals-default-copy.cpp11 OL::OL(const OL &Other) : Field(Other.Field) {} in OL() argument
13 // CHECK-FIXES: OL::OL(const OL &Other) = default;
14 OL &OL::operator=(const OL &Other) { in operator =() argument
15 Field = Other.Field; in operator =()
19 // CHECK-FIXES: OL &OL::operator=(const OL &Other) = default;
23 IL(const IL &Other) : Field(Other.Field) {} in IL()
25 // CHECK-FIXES: IL(const IL &Other) = default;
26 IL &operator=(const IL &Other) { in operator =()
27 Field = Other.Field; in operator =()
31 // CHECK-FIXES: IL &operator=(const IL &Other) = default;
[all …]
/llvm-project/libcxx/test/support/type_classification/
H A Dswappable.h24 constexpr lvalue_adl_swappable(lvalue_adl_swappable&& other) noexcept in lvalue_adl_swappable() argument
25 : value_(std::move(other.value_)), in lvalue_adl_swappable()
28 constexpr lvalue_adl_swappable(lvalue_adl_swappable const& other) noexcept in lvalue_adl_swappable() argument
29 : value_(other.value_), in lvalue_adl_swappable()
33 operator=(lvalue_adl_swappable other) noexcept {
34 value_ = other.value_;
43 constexpr bool operator==(lvalue_adl_swappable const& other) const noexcept {
44 return value_ == other.value_ && this_ == this && other.this_ == &other;
59 lvalue_rvalue_adl_swappable(lvalue_rvalue_adl_swappable&& other) noexcept in lvalue_rvalue_adl_swappable() argument
60 : value_(std::move(other.value_)), in lvalue_rvalue_adl_swappable()
[all …]
/llvm-project/clang-tools-extra/clang-doc/
H A DRepresentation.cpp16 // all decls related to a given definition. All other fields are ignored in new
96 bool CommentInfo::operator==(const CommentInfo &Other) const { in operator ==()
100 std::tie(Other.Kind, Other.Text, Other.Name, Other.Direction, in operator ==()
101 Other.ParamName, Other.CloseName, Other.SelfClosing, in operator ==()
102 Other in operator ==()
177 mergeable(const Reference & Other) mergeable() argument
181 merge(Reference && Other) merge() argument
189 mergeBase(Info && Other) mergeBase() argument
207 mergeable(const Info & Other) mergeable() argument
211 merge(SymbolInfo && Other) merge() argument
226 merge(NamespaceInfo && Other) merge() argument
240 merge(RecordInfo && Other) merge() argument
263 merge(EnumInfo && Other) merge() argument
272 merge(FunctionInfo && Other) merge() argument
289 merge(TypedefInfo && Other) merge() argument
[all...]
/llvm-project/lldb/examples/python/
H A Dsbvalue.py120 def __add__(self, other): argument
121 return int(self) + int(other)
123 def __sub__(self, other): argument
124 return int(self) - int(other)
126 def __mul__(self, other): argument
127 return int(self) * int(other)
129 def __floordiv__(self, other): argument
130 return int(self) // int(other)
132 def __mod__(self, other): argument
133 return int(self) % int(other)
[all …]
/llvm-project/clang-tools-extra/test/clang-tidy/checkers/bugprone/
H A Dcopy-constructor-init.cpp77 X(const X &other) : Copyable(other) {} in X() argument
81 X2(const X2 &other) {} in X2() argument
82 …// CHECK-MESSAGES: :[[@LINE-1]]:3: warning: calling a base constructor other than the copy constru…
83 // CHECK-FIXES: X2(const X2 &other) : Copyable2(other) {}
93 X3(const X3 &other) : Copyable(other) {} in X3() argument
95 // CHECK-FIXES: X3(const X3 &other) : Copyable(other) {}
99 X4(const X4 &other) : Copyable() {} in X4() argument
101 // CHECK-FIXES: X4(const X4 &other) : Copyable(other) {}
105 X5(const X5 &other) {} in X5() argument
107 // CHECK-FIXES: X5(const X5 &other) : Copyable3(other) {}
[all …]
H A Dmultiple-new-in-one-expression.cpp54 …// CHECK-MESSAGES-ALL: :[[@LINE-1]]:13: warning: memory allocation may leak if an other allocation… in test_function_parameter()
56 …// CHECK-MESSAGES-ALL: :[[@LINE-1]]:15: warning: memory allocation may leak if an other allocation… in test_function_parameter()
58 …// CHECK-MESSAGES-ALL: :[[@LINE-1]]:15: warning: memory allocation may leak if an other allocation… in test_function_parameter()
60 …// CHECK-MESSAGES-ALL: :[[@LINE-1]]:11: warning: memory allocation may leak if an other allocation… in test_function_parameter()
62 …// CHECK-MESSAGES-ALL: :[[@LINE-1]]:15: warning: memory allocation may leak if an other allocation… in test_function_parameter()
65 …// CHECK-MESSAGES-ALL: :[[@LINE-1]]:15: warning: memory allocation may leak if an other allocation… in test_function_parameter()
68 …// CHECK-MESSAGES-ALL: :[[@LINE-1]]:19: warning: memory allocation may leak if an other allocation… in test_function_parameter()
70 …// CHECK-MESSAGES-ALL: :[[@LINE-1]]:18: warning: memory allocation may leak if an other allocation… in test_function_parameter()
72 …// CHECK-MESSAGES-ALL: :[[@LINE-1]]:19: warning: memory allocation may leak if an other allocation… in test_function_parameter()
81 …// CHECK-MESSAGES-ALL: :[[@LINE-1]]:14: warning: memory allocation may leak if an other allocation… in test_operator()
[all …]
/llvm-project/clang-tools-extra/test/clang-tidy/checkers/cert/
H A Doop58-cpp.cpp13 A(const A &other) : m(other.m) { in A() argument
14 other.m = 0; in A()
18 A &operator=(const A &other) { in operator =() argument
19 if (&other != this) { in operator =()
20 m = other.m; in operator =()
21 other.m = 0; in operator =()
39 B(const B &other) : m(other.m) {} in B() argument
40 B(B &&other) : m(other.m) { in B() argument
41 other.m = 0; //no-warning: mutation allowed in move constructor in B()
44 B &operator=(const B &other) { in operator =() argument
[all …]
/llvm-project/llvm/test/tools/llvm-readobj/ELF/
H A Dsymbol-visibility.test13 # LLVM: Other: 0
15 # LLVM: Other [ (0x1)
19 # LLVM: Other [ (0x2)
23 # LLVM: Other [ (0x3)
35 # JSON: "Other": {
41 # JSON: "Other": {
52 # JSON: "Other": {
63 # JSON: "Other": {
80 Other: [ STV_DEFAULT ]
83 Other: [ STV_INTERNAL ]
[all …]
/llvm-project/clang/test/Analysis/Inputs/
H A Dctu-other.cpp.externalDefMap.ast-dump.txt1 19:c:@N@chns@F@chf1#I# ctu-other.cpp.ast
2 30:c:@N@myns@N@embed_ns@F@fens#I# ctu-other.cpp.ast
3 9:c:@F@g#I# ctu-other.cpp.ast
4 21:c:@S@mycls@F@fscl#I#S ctu-other.cpp.ast
5 19:c:@S@mycls@F@fcl#I# ctu-other.cpp.ast
6 20:c:@S@mycls@F@fvcl#I# ctu-other.cpp.ast
7 31:c:@N@myns@S@embed_cls@F@fecl#I# ctu-other.cpp.ast
8 34:c:@S@mycls@S@embed_cls2@F@fecl2#I# ctu-other.cpp.ast
9 22:c:@S@derived@F@fvcl#I# ctu-other.cpp.ast
10 9:c:@F@f#I# ctu-other.cpp.ast
[all …]
/llvm-project/lldb/bindings/python/
H A Dpython-extensions.swig307 def __eq__(self, other):
308 return not self.__ne__(other)
367 def __add__(self, other):
368 return int(self) + int(other)
370 def __sub__(self, other):
371 return int(self) - int(other)
373 def __mul__(self, other):
374 return int(self) * int(other)
376 def __floordiv__(self, other):
377 return int(self) // int(other)
[all …]
/llvm-project/llvm/lib/IR/
H A DConstantRange.cpp14 // ranges (other integral ranges use min/max values for special range values):
244 const ConstantRange &Other) const { in icmp()
245 if (isEmptySet() || Other.isEmptySet()) in icmp()
251 if (const APInt *R = Other.getSingleElement()) in icmp()
255 return inverse().contains(Other); in icmp()
257 return getUnsignedMax().ult(Other.getUnsignedMin()); in icmp()
259 return getUnsignedMax().ule(Other.getUnsignedMin()); in icmp()
261 return getUnsignedMin().ugt(Other.getUnsignedMax()); in icmp()
263 return getUnsignedMin().uge(Other.getUnsignedMax()); in icmp()
265 return getSignedMax().slt(Other in icmp()
315 makeGuaranteedNoWrapRegion(Instruction::BinaryOps BinOp,const ConstantRange & Other,unsigned NoWrapKind) makeGuaranteedNoWrapRegion() argument
389 makeExactNoWrapRegion(Instruction::BinaryOps BinOp,const APInt & Other,unsigned NoWrapKind) makeExactNoWrapRegion() argument
980 overflowingBinaryOp(Instruction::BinaryOps BinOp,const ConstantRange & Other,unsigned NoWrapKind) const overflowingBinaryOp() argument
1083 addWithNoWrap(const ConstantRange & Other,unsigned NoWrapKind,PreferredRangeType RangeType) const addWithNoWrap() argument
1130 subWithNoWrap(const ConstantRange & Other,unsigned NoWrapKind,PreferredRangeType RangeType) const subWithNoWrap() argument
1229 multiplyWithNoWrap(const ConstantRange & Other,unsigned NoWrapKind,PreferredRangeType RangeType) const multiplyWithNoWrap() argument
[all...]
/llvm-project/llvm/include/llvm/CodeGen/
H A DMIRYamlMapping.h42 bool operator==(const StringValue &Other) const {
43 return Value == Other.Value;
83 bool operator==(const BlockStringValue &Other) const {
84 return Value == Other.Value;
107 bool operator==(const UnsignedValue &Other) const {
108 return Value == Other.Value;
198 bool operator==(const VirtualRegisterDefinition &Other) const {
199 return ID == Other.ID && Class == Other.Class &&
200 PreferredRegister == Other
[all...]
/llvm-project/clang/include/clang/Basic/
H A DPartialDiagnostic.h49 PartialDiagnostic(const PartialDiagnostic &Other) in PartialDiagnostic() argument
50 : StreamingDiagnostic(), DiagID(Other.DiagID) { in PartialDiagnostic()
51 Allocator = Other.Allocator; in PartialDiagnostic()
52 if (Other.DiagStorage) { in PartialDiagnostic()
54 *DiagStorage = *Other.DiagStorage; in PartialDiagnostic()
75 PartialDiagnostic(PartialDiagnostic &&Other) : DiagID(Other.DiagID) { in PartialDiagnostic() argument
76 Allocator = Other.Allocator; in PartialDiagnostic()
77 DiagStorage = Other.DiagStorage; in PartialDiagnostic()
78 Other in PartialDiagnostic()
81 PartialDiagnostic(const PartialDiagnostic & Other,DiagnosticStorage * DiagStorage_) PartialDiagnostic() argument
90 PartialDiagnostic(const Diagnostic & Other,DiagStorageAllocator & Allocator_) PartialDiagnostic() argument
[all...]
/llvm-project/llvm/include/llvm/IR/
H A DConstantRange.h21 // The other integral ranges use min/max values for special range values. For
96 /// predicate with any value contained within Other is contained in the
98 /// 'union over all y in Other . { x : icmp op x y is true }'. If the exact
102 /// Example: Pred = ult and Other = i8 [2, 5) returns Result = [0, 4)
104 const ConstantRange &Other);
107 /// satisfy the given predicate with all values contained within Other.
109 /// 'intersection over all y in Other . { x : icmp op x y is true }'. If the
113 /// Example: Pred = ult and Other = i8 [2, 5) returns [0, 2)
115 const ConstantRange &Other);
118 /// the given predicate with any value contained within Other
[all...]
/llvm-project/llvm/test/Transforms/InstCombine/
H A Dmin-positive.ll6 define i1 @smin(i32 %other) {
8 ; CHECK-NEXT: [[TEST:%.*]] = icmp sgt i32 [[OTHER:%.*]], 0
12 %cmp = icmp slt i32 %positive, %other
13 %sel = select i1 %cmp, i32 %positive, i32 %other
18 define i1 @smin_int(i32 %other) {
20 ; CHECK-NEXT: [[TEST:%.*]] = icmp sgt i32 [[OTHER:%.*]], 0
24 %smin = call i32 @llvm.smin.i32(i32 %positive, i32 %other)
32 define <2 x i1> @smin_vec(<2 x i32> %x, <2 x i32> %other) {
34 ; CHECK-NEXT: [[TEST:%.*]] = icmp sgt <2 x i32> [[OTHER:%.*]], zeroinitializer
39 %cmp = icmp slt <2 x i32> %positive, %other
[all...]
H A Dimplies.ll4 define i1 @or_implies_sle(i8 %x, i8 %y, i1 %other) {
12 ; CHECK-NEXT: ret i1 [[OTHER:%.*]]
21 ret i1 %other
24 define i1 @or_implies_sle_fail(i8 %x, i8 %y, i1 %other) {
33 ; CHECK-NEXT: ret i1 [[OTHER:%.*]]
42 ret i1 %other
45 define i1 @or_distjoint_implies_ule(i8 %x, i8 %y, i1 %other) {
53 ; CHECK-NEXT: ret i1 [[OTHER:%.*]]
64 ret i1 %other
67 define i1 @or_distjoint_implies_ule_fail(i8 %x, i8 %y, i1 %other) {
[all...]
/llvm-project/libcxx/test/support/
H A Demplace_constructible.h21 EmplaceConstructibleAndMoveInsertable&& Other) in EmplaceConstructibleAndMoveInsertable()
22 : copied(Other.copied + 1), value(std::move(Other.value)) {} in EmplaceConstructibleAndMoveInsertable()
32 TEST_CONSTEXPR_CXX14 EmplaceConstructibleAndMoveable(EmplaceConstructibleAndMoveable&& Other) in EmplaceConstructibleAndMoveable()
33 noexcept : copied(Other.copied + 1), in EmplaceConstructibleAndMoveable()
34 value(std::move(Other.value)) {} in EmplaceConstructibleAndMoveable()
37 operator=(EmplaceConstructibleAndMoveable&& Other) noexcept {
38 copied = Other.copied;
39 assigned = Other.assigned + 1;
40 value = std::move(Other.value);
54 EmplaceConstructibleMoveableAndAssignable&& Other) noexcept in EmplaceConstructibleMoveableAndAssignable()
[all …]
H A Dinvocable_with_telemetry.h31 constexpr invocable_with_telemetry(invocable_with_telemetry&& other) in invocable_with_telemetry() argument
33 : f_(std::move(other.f_)), in invocable_with_telemetry()
34 … telemetry_((assert(other.telemetry_ != nullptr), std::exchange(other.telemetry_, nullptr))) { in invocable_with_telemetry()
38 constexpr invocable_with_telemetry(invocable_with_telemetry const& other) in invocable_with_telemetry() argument
40 : f_(other.f_), telemetry_((assert(other.telemetry_ != nullptr), other.telemetry_)) { in invocable_with_telemetry()
44 constexpr invocable_with_telemetry& operator=(invocable_with_telemetry&& other)
48 assert(&other != this);
49 assert(other.telemetry_ != nullptr);
51 f_ = std::move(other.f_);
52 telemetry_ = std::exchange(other.telemetry_, nullptr);
[all …]
/llvm-project/llvm/include/llvm/Support/
H A DErrorOr.h93 ErrorOr(const ErrorOr &Other) { in ErrorOr() argument
94 copyConstruct(Other); in ErrorOr()
98 ErrorOr(const ErrorOr<OtherT> &Other,
100 copyConstruct(Other);
105 const ErrorOr<OtherT> &Other,
107 copyConstruct(Other);
110 ErrorOr(ErrorOr &&Other) { in ErrorOr() argument
111 moveConstruct(std::move(Other)); in ErrorOr()
115 ErrorOr(ErrorOr<OtherT> &&Other,
117 moveConstruct(std::move(Other));
[all …]
/llvm-project/clang/test/CodeGen/
H A Dattr-minsize.cpp2 // RUN: %clang_cc1 -disable-llvm-passes -emit-llvm %s -o - | FileCheck %s -check-prefix=OTHER
3 // RUN: %clang_cc1 -O1 -disable-llvm-passes -emit-llvm %s -o - | FileCheck %s -check-prefix=OTHER
4 // RUN: %clang_cc1 -O2 -disable-llvm-passes -emit-llvm %s -o - | FileCheck %s -check-prefix=OTHER
5 // RUN: %clang_cc1 -O3 -disable-llvm-passes -emit-llvm %s -o - | FileCheck %s -check-prefix=OTHER
6 // RUN: %clang_cc1 -Os -disable-llvm-passes -emit-llvm %s -o - | FileCheck %s -check-prefix=OTHER
14 // OTHER: @{{.*}}test1{{.*}}[[MS:#[0-9]+]] in test1()
21 // OTHER: @{{.*}}test2 in test2()
22 // OTHER-NOT: [[MS]] in test2()
23 // OTHER: ret in test2()
30 // OTHER: @{{.*}}test3 in test3()
[all …]
/llvm-project/cross-project-tests/debuginfo-tests/dexter/dex/dextIR/
H A DProgramState.py29 def match(self, other) -> bool: argument
31 same value in `other`, but not necessarily vice versa.
33 if not other or not isinstance(other, SourceLocation):
37 other.path is None or (PurePath(self.path) != PurePath(other.path))
41 if self.lineno and (self.lineno != other.lineno):
44 if self.column and (self.column != other.column):
74 def match(self, other) -> bool: argument
76 same value in `other`, but not necessarily vice versa.
78 if not other or not isinstance(other, StackFrame):
81 if self.location and not self.location.match(other.location):
[all …]
/llvm-project/clang/lib/Format/
H A DContinuationIndenter.h176 /// handled in \c addNextStateToQueue, and the penalty for other lines doesn't
355 bool operator<(const ParenState &Other) const {
356 if (Indent != Other.Indent)
357 return Indent < Other.Indent;
358 if (LastSpace != Other.LastSpace)
359 return LastSpace < Other.LastSpace;
360 if (NestedBlockIndent != Other.NestedBlockIndent)
361 return NestedBlockIndent < Other.NestedBlockIndent;
362 if (FirstLessLess != Other.FirstLessLess)
363 return FirstLessLess < Other.FirstLessLess;
[all …]
/llvm-project/mlir/lib/Interfaces/
H A DInferIntRangeInterface.cpp17 bool ConstantIntRanges::operator==(const ConstantIntRanges &other) const { in operator ==()
18 return umin().getBitWidth() == other.umin().getBitWidth() && in operator ==()
19 umin() == other.umin() && umax() == other.umax() && in operator ==()
20 smin() == other.smin() && smax() == other.smax(); in operator ==()
85 ConstantIntRanges::rangeUnion(const ConstantIntRanges &other) const { in rangeUnion()
90 if (other.umin().getBitWidth() == 0) in rangeUnion()
91 return other; in rangeUnion()
93 const APInt &uminUnion = umin().ult(other in rangeUnion()
[all...]
/llvm-project/llvm/unittests/ADT/
H A DSparseBitVectorTest.cpp57 SparseBitVector<> Vec, Other; in TEST() local
60 Other.set(1); in TEST()
61 EXPECT_FALSE(Vec &= Other); in TEST()
66 Other.clear(); in TEST()
67 Other.set(6); in TEST()
68 EXPECT_TRUE(Vec &= Other); in TEST()
73 Other.clear(); in TEST()
74 Other.set(225); in TEST()
75 EXPECT_TRUE(Vec &= Other); in TEST()
80 Other.clear(); in TEST()
[all …]
/llvm-project/llvm/test/tools/yaml2obj/ELF/
H A Dsymbol-stother.yaml7 # ERR: error: an unknown value is used for symbol's 'Other' field: STO_MIPS_OPTIONAL
17 Other: [ STO_MIPS_OPTIONAL ]
23 # RUN: llvm-readobj --symbols %t2 | FileCheck %s --check-prefix=USE-OTHER
25 # USE-OTHER: Name: foo
26 # USE-OTHER: Other [ (0x4)
27 # USE-OTHER-NEXT: STO_MIPS_OPTIONAL (0x4)
28 # USE-OTHER-NEXT: ]
38 Other: [ STO_MIPS_OPTIONAL ]
47 # VALUE: Other [
51 # VALUE: Other [
[all …]

12345678910>>...250