/external/llvm-project/clang-tools-extra/test/clang-tidy/checkers/ |
D | modernize-use-equals-default-copy.cpp | 11 OL::OL(const OL &Other) : Field(Other.Field) {} in OL() argument 14 OL &OL::operator=(const OL &Other) { in operator =() argument 15 Field = Other.Field; in operator =() 23 IL(const IL &Other) : Field(Other.Field) {} in IL() 26 IL &operator=(const IL &Other) { in operator =() 27 Field = Other.Field; in operator =() 37 WT(const IL &Other) {} in WT() 40 WT &WT::operator=(const IL &Other) { return *this; } in operator =() argument 44 Qual(const Qual &Other) : Field(Other.Field), Volatile(Other.Volatile), in Qual() 45 Mutable(Other.Mutable), Reference(Other.Reference), in Qual() [all …]
|
D | readability-deleted-default.cpp | 6 NoDefault(NoDefault &&Other) = delete; 7 NoDefault(const NoDefault &Other) = delete; 14 MissingEverything(MissingEverything &&Other) = default; 16 MissingEverything(const MissingEverything &Other) = default; 18 MissingEverything &operator=(MissingEverything &&Other) = default; 20 MissingEverything &operator=(const MissingEverything &Other) = default; 29 NotAssignable(NotAssignable &&Other) = default; 30 NotAssignable(const NotAssignable &Other) = default; 31 NotAssignable &operator=(NotAssignable &&Other) = default; 33 NotAssignable &operator=(const NotAssignable &Other) = default; [all …]
|
D | cert-oop57-cpp.cpp | 31 NonTrivial &operator=(const NonTrivial &Other) { in operator =() 32 I = Other.I; in operator =() 33 J = Other.J; in operator =() 37 bool operator==(const Trivial &Other) const { in operator ==() 38 return I == Other.I && J == Other.J; in operator ==() 40 bool operator!=(const Trivial &Other) const { in operator !=() 41 return !(*this == Other); in operator !=() 45 void foo(const Trivial &Other) { in foo() argument 51 std::memcpy(&Data, &Other, sizeof(Data)); in foo() 53 std::memmove(&Data, &Other, sizeof(Data)); in foo() [all …]
|
/external/clang/lib/Format/ |
D | ContinuationIndenter.h | 266 bool operator<(const ParenState &Other) const { 267 if (Indent != Other.Indent) 268 return Indent < Other.Indent; 269 if (LastSpace != Other.LastSpace) 270 return LastSpace < Other.LastSpace; 271 if (NestedBlockIndent != Other.NestedBlockIndent) 272 return NestedBlockIndent < Other.NestedBlockIndent; 273 if (FirstLessLess != Other.FirstLessLess) 274 return FirstLessLess < Other.FirstLessLess; 275 if (BreakBeforeClosingBrace != Other.BreakBeforeClosingBrace) [all …]
|
/external/llvm-project/clang/lib/Format/ |
D | ContinuationIndenter.h | 352 bool operator<(const ParenState &Other) const { 353 if (Indent != Other.Indent) 354 return Indent < Other.Indent; 355 if (LastSpace != Other.LastSpace) 356 return LastSpace < Other.LastSpace; 357 if (NestedBlockIndent != Other.NestedBlockIndent) 358 return NestedBlockIndent < Other.NestedBlockIndent; 359 if (FirstLessLess != Other.FirstLessLess) 360 return FirstLessLess < Other.FirstLessLess; 361 if (IsAligned != Other.IsAligned) [all …]
|
/external/llvm-project/clang-tools-extra/clang-doc/ |
D | Representation.cpp | 163 bool Reference::mergeable(const Reference &Other) { in mergeable() argument 164 return RefType == Other.RefType && USR == Other.USR; in mergeable() 167 void Reference::merge(Reference &&Other) { in merge() argument 168 assert(mergeable(Other)); in merge() 170 Name = Other.Name; in merge() 172 Path = Other.Path; in merge() 174 IsInGlobalNamespace = Other.IsInGlobalNamespace; in merge() 177 void Info::mergeBase(Info &&Other) { in mergeBase() argument 178 assert(mergeable(Other)); in mergeBase() 180 USR = Other.USR; in mergeBase() [all …]
|
D | Representation.h | 48 CommentInfo(CommentInfo &Other) = delete; 49 CommentInfo(CommentInfo &&Other) = default; 50 CommentInfo &operator=(CommentInfo &&Other) = default; 52 bool operator==(const CommentInfo &Other) const { 56 std::tie(Other.Kind, Other.Text, Other.Name, Other.Direction, 57 Other.ParamName, Other.CloseName, Other.SelfClosing, 58 Other.Explicit, Other.AttrKeys, Other.AttrValues, Other.Args); 60 if (FirstCI != SecondCI || Children.size() != Other.Children.size()) 63 return std::equal(Children.begin(), Children.end(), Other.Children.begin(), 71 bool operator<(const CommentInfo &Other) const { [all …]
|
/external/llvm-project/clang/include/clang/Basic/ |
D | PartialDiagnostic.h | 52 PartialDiagnostic(const PartialDiagnostic &Other) in PartialDiagnostic() argument 53 : StreamingDiagnostic(), DiagID(Other.DiagID) { in PartialDiagnostic() 54 Allocator = Other.Allocator; in PartialDiagnostic() 55 if (Other.DiagStorage) { in PartialDiagnostic() 57 *DiagStorage = *Other.DiagStorage; in PartialDiagnostic() 78 PartialDiagnostic(PartialDiagnostic &&Other) : DiagID(Other.DiagID) { in PartialDiagnostic() argument 79 Allocator = Other.Allocator; in PartialDiagnostic() 80 DiagStorage = Other.DiagStorage; in PartialDiagnostic() 81 Other.DiagStorage = nullptr; in PartialDiagnostic() 84 PartialDiagnostic(const PartialDiagnostic &Other, in PartialDiagnostic() argument [all …]
|
/external/llvm-project/llvm/include/llvm/IR/ |
D | ConstantRange.h | 104 const ConstantRange &Other); 115 const ConstantRange &Other); 125 const APInt &Other); 144 const ConstantRange &Other, 150 const APInt &Other, 343 const ConstantRange &Other) const; 350 const ConstantRange &Other, 355 ConstantRange add(const ConstantRange &Other) const; 362 ConstantRange addWithNoWrap(const ConstantRange &Other, unsigned NoWrapKind, 367 ConstantRange sub(const ConstantRange &Other) const; [all …]
|
/external/swiftshader/third_party/llvm-10.0/llvm/include/llvm/IR/ |
D | ConstantRange.h | 104 const ConstantRange &Other); 115 const ConstantRange &Other); 125 const APInt &Other); 144 const ConstantRange &Other, 150 const APInt &Other, 327 const ConstantRange &Other) const; 334 const ConstantRange &Other, 339 ConstantRange add(const ConstantRange &Other) const; 346 ConstantRange addWithNoWrap(const ConstantRange &Other, unsigned NoWrapKind, 351 ConstantRange sub(const ConstantRange &Other) const; [all …]
|
/external/llvm-project/llvm/lib/IR/ |
D | ConstantRange.cpp | 227 const ConstantRange &Other, in makeGuaranteedNoWrapRegion() argument 238 unsigned BitWidth = Other.getBitWidth(); in makeGuaranteedNoWrapRegion() 247 -Other.getUnsignedMax()); in makeGuaranteedNoWrapRegion() 250 APInt SMin = Other.getSignedMin(), SMax = Other.getSignedMax(); in makeGuaranteedNoWrapRegion() 258 return getNonEmpty(Other.getUnsignedMax(), APInt::getMinValue(BitWidth)); in makeGuaranteedNoWrapRegion() 261 APInt SMin = Other.getSignedMin(), SMax = Other.getSignedMax(); in makeGuaranteedNoWrapRegion() 269 return makeExactMulNUWRegion(Other.getUnsignedMax()); in makeGuaranteedNoWrapRegion() 271 return makeExactMulNSWRegion(Other.getSignedMin()) in makeGuaranteedNoWrapRegion() 272 .intersectWith(makeExactMulNSWRegion(Other.getSignedMax())); in makeGuaranteedNoWrapRegion() 277 ConstantRange ShAmt = Other.intersectWith( in makeGuaranteedNoWrapRegion() [all …]
|
/external/llvm/unittests/ADT/ |
D | SparseBitVectorTest.cpp | 37 SparseBitVector<> Vec, Other; in TEST() local 40 Other.set(1); in TEST() 41 EXPECT_FALSE(Vec &= Other); in TEST() 46 Other.clear(); in TEST() 47 Other.set(6); in TEST() 48 EXPECT_TRUE(Vec &= Other); in TEST() 53 Other.clear(); in TEST() 54 Other.set(225); in TEST() 55 EXPECT_TRUE(Vec &= Other); in TEST() 60 Other.clear(); in TEST() [all …]
|
/external/swiftshader/third_party/llvm-10.0/llvm/include/llvm/CodeGen/ |
D | Register.h | 120 bool operator==(const Register &Other) const { return Reg == Other.Reg; } 121 bool operator!=(const Register &Other) const { return Reg != Other.Reg; } 122 bool operator==(const MCRegister &Other) const { return Reg == Other.id(); } 123 bool operator!=(const MCRegister &Other) const { return Reg != Other.id(); } 129 bool operator==(unsigned Other) const { return Reg == Other; } 130 bool operator!=(unsigned Other) const { return Reg != Other; } 131 bool operator==(int Other) const { return Reg == unsigned(Other); } 132 bool operator!=(int Other) const { return Reg != unsigned(Other); } 134 bool operator==(MCPhysReg Other) const { return Reg == unsigned(Other); } 135 bool operator!=(MCPhysReg Other) const { return Reg != unsigned(Other); }
|
D | MIRYamlMapping.h | 42 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; 162 bool operator==(const VirtualRegisterDefinition &Other) const { 163 return ID == Other.ID && Class == Other.Class && 164 PreferredRegister == Other.PreferredRegister; 183 bool operator==(const MachineFunctionLiveIn &Other) const { [all …]
|
/external/llvm-project/llvm/include/llvm/CodeGen/ |
D | MIRYamlMapping.h | 42 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; 195 bool operator==(const VirtualRegisterDefinition &Other) const { 196 return ID == Other.ID && Class == Other.Class && 197 PreferredRegister == Other.PreferredRegister; 216 bool operator==(const MachineFunctionLiveIn &Other) const { [all …]
|
D | Register.h | 129 bool operator==(const Register &Other) const { return Reg == Other.Reg; } 130 bool operator!=(const Register &Other) const { return Reg != Other.Reg; } 131 bool operator==(const MCRegister &Other) const { return Reg == Other.id(); } 132 bool operator!=(const MCRegister &Other) const { return Reg != Other.id(); } 138 bool operator==(unsigned Other) const { return Reg == Other; } 139 bool operator!=(unsigned Other) const { return Reg != Other; } 140 bool operator==(int Other) const { return Reg == unsigned(Other); } 141 bool operator!=(int Other) const { return Reg != unsigned(Other); } 143 bool operator==(MCPhysReg Other) const { return Reg == unsigned(Other); } 144 bool operator!=(MCPhysReg Other) const { return Reg != unsigned(Other); }
|
/external/swiftshader/third_party/llvm-10.0/llvm/lib/IR/ |
D | ConstantRange.cpp | 226 const ConstantRange &Other, in makeGuaranteedNoWrapRegion() argument 237 unsigned BitWidth = Other.getBitWidth(); in makeGuaranteedNoWrapRegion() 246 -Other.getUnsignedMax()); in makeGuaranteedNoWrapRegion() 249 APInt SMin = Other.getSignedMin(), SMax = Other.getSignedMax(); in makeGuaranteedNoWrapRegion() 257 return getNonEmpty(Other.getUnsignedMax(), APInt::getMinValue(BitWidth)); in makeGuaranteedNoWrapRegion() 260 APInt SMin = Other.getSignedMin(), SMax = Other.getSignedMax(); in makeGuaranteedNoWrapRegion() 268 return makeExactMulNUWRegion(Other.getUnsignedMax()); in makeGuaranteedNoWrapRegion() 270 return makeExactMulNSWRegion(Other.getSignedMin()) in makeGuaranteedNoWrapRegion() 271 .intersectWith(makeExactMulNSWRegion(Other.getSignedMax())); in makeGuaranteedNoWrapRegion() 276 ConstantRange ShAmt = Other.intersectWith( in makeGuaranteedNoWrapRegion() [all …]
|
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Target/AArch64/ |
D | AArch64StackOffset.h | 53 StackOffset(const StackOffset &Other) in StackOffset() argument 54 : Bytes(Other.Bytes), ScalableBytes(Other.ScalableBytes) {} in StackOffset() 58 StackOffset &operator+=(const StackOffset::Part &Other) { 59 const TypeSize Size = Other.second.getSizeInBits(); 61 ScalableBytes += Other.first * ((int64_t)Size.getKnownMinSize() / 8); 63 Bytes += Other.first * ((int64_t)Size.getFixedSize() / 8); 67 StackOffset &operator+=(const StackOffset &Other) { 68 Bytes += Other.Bytes; 69 ScalableBytes += Other.ScalableBytes; 73 StackOffset operator+(const StackOffset &Other) const { [all …]
|
/external/swiftshader/third_party/llvm-10.0/llvm/include/llvm/MC/ |
D | MCRegister.h | 76 bool operator==(const MCRegister &Other) const { return Reg == Other.Reg; } 77 bool operator!=(const MCRegister &Other) const { return Reg != Other.Reg; } 83 bool operator==(unsigned Other) const { return Reg == Other; } 84 bool operator!=(unsigned Other) const { return Reg != Other; } 85 bool operator==(int Other) const { return Reg == unsigned(Other); } 86 bool operator!=(int Other) const { return Reg != unsigned(Other); } 88 bool operator==(MCPhysReg Other) const { return Reg == unsigned(Other); } 89 bool operator!=(MCPhysReg Other) const { return Reg != unsigned(Other); }
|
/external/llvm-project/clang/include/clang/Sema/ |
D | Lookup.h | 171 LookupResult(TemporaryToken _, const LookupResult &Other) in LookupResult() argument 172 : SemaPtr(Other.SemaPtr), NameInfo(Other.NameInfo), in LookupResult() 173 LookupKind(Other.LookupKind), IDNS(Other.IDNS), Redecl(Other.Redecl), in LookupResult() 174 ExternalRedecl(Other.ExternalRedecl), HideTags(Other.HideTags), in LookupResult() 175 AllowHidden(Other.AllowHidden), in LookupResult() 176 TemplateNameLookup(Other.TemplateNameLookup) {} in LookupResult() 183 LookupResult(LookupResult &&Other) in LookupResult() argument 184 : ResultKind(std::move(Other.ResultKind)), in LookupResult() 185 Ambiguity(std::move(Other.Ambiguity)), Decls(std::move(Other.Decls)), in LookupResult() 186 Paths(std::move(Other.Paths)), in LookupResult() [all …]
|
/external/llvm-project/clang/include/clang/AST/ |
D | CharUnits.h | 68 CharUnits& operator+= (const CharUnits &Other) { 69 Quantity += Other.Quantity; 79 CharUnits& operator-= (const CharUnits &Other) { 80 Quantity -= Other.Quantity; 92 bool operator== (const CharUnits &Other) const { 93 return Quantity == Other.Quantity; 95 bool operator!= (const CharUnits &Other) const { 96 return Quantity != Other.Quantity; 100 bool operator< (const CharUnits &Other) const { 101 return Quantity < Other.Quantity; [all …]
|
/external/clang/include/clang/AST/ |
D | CharUnits.h | 68 CharUnits& operator+= (const CharUnits &Other) { 69 Quantity += Other.Quantity; 79 CharUnits& operator-= (const CharUnits &Other) { 80 Quantity -= Other.Quantity; 92 bool operator== (const CharUnits &Other) const { 93 return Quantity == Other.Quantity; 95 bool operator!= (const CharUnits &Other) const { 96 return Quantity != Other.Quantity; 100 bool operator< (const CharUnits &Other) const { 101 return Quantity < Other.Quantity; [all …]
|
/external/libcxx/test/support/ |
D | emplace_constructible.h | 21 EmplaceConstructibleAndMoveInsertable&& Other) in EmplaceConstructibleAndMoveInsertable() 22 : copied(Other.copied + 1), value(std::move(Other.value)) {} in EmplaceConstructibleAndMoveInsertable() 32 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 …]
|
/external/llvm-project/libcxx/test/support/ |
D | emplace_constructible.h | 21 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 …]
|
/external/clang/include/clang/Sema/ |
D | Lookup.h | 173 LookupResult(TemporaryToken _, const LookupResult &Other) in LookupResult() argument 177 SemaPtr(Other.SemaPtr), in LookupResult() 178 NameInfo(Other.NameInfo), in LookupResult() 179 LookupKind(Other.LookupKind), in LookupResult() 180 IDNS(Other.IDNS), in LookupResult() 181 Redecl(Other.Redecl), in LookupResult() 182 HideTags(Other.HideTags), in LookupResult() 184 AllowHidden(Other.AllowHidden), in LookupResult() 193 LookupResult(LookupResult &&Other) in LookupResult() argument 194 : ResultKind(std::move(Other.ResultKind)), in LookupResult() [all …]
|