| /llvm-project/clang/lib/Tooling/Core/ |
| H A D | Replacement.cpp | 82 Start, ReplacementRange.getLength(), ReplacementText); in apply() 91 << ReplacementRange.getLength() << ":\"" << ReplacementText << "\""; in toString() 102 if (LHS.getLength() != RHS.getLength()) in operator <() 103 return LHS.getLength() < RHS.getLength(); in operator <() 112 LHS.getLength() == RHS.getLength() && in operator ==() 160 unsigned NewEnd = getShiftedCodePosition(R.getOffset() + R.getLength()); in getReplacementInChangedCode() 201 unsigned PrevEnd = Prev.getOffset() + Prev.getLength(); in getCanonicalReplacements() [all...] |
| /llvm-project/llvm/include/llvm/Support/ |
| H A D | BinaryStreamRef.h | 29 Length = BorrowedImpl.getLength(); in BinaryStreamRefBase() 48 uint64_t getLength() const { in getLength() function 52 return BorrowedImpl ? (BorrowedImpl->getLength() - ViewOffset) : 0; in getLength() 62 N = std::min(N, getLength()); in drop_front() 81 N = std::min(N, getLength()); in drop_back() 89 Result.Length = getLength(); in drop_back() 97 assert(N <= getLength()); in keep_front() 98 return drop_back(getLength() - N); in keep_front() 103 assert(N <= getLength()); in keep_back() 104 return drop_front(getLength() - N); in keep_back() [all …]
|
| H A D | BinaryStream.h | 52 virtual uint64_t getLength() = 0; 59 if (Offset > getLength()) in checkOffsetForRead() 61 if (getLength() < DataSize + Offset) in checkOffsetForRead() 92 if (Offset > getLength()) in checkOffsetForWrite()
|
| H A D | BinaryByteStream.h | 56 uint64_t getLength() override { return Data.size(); } in getLength() function 109 uint64_t getLength() override { return ImmutableStream.getLength(); } in getLength() function 168 uint64_t getLength() override { return Data.size(); } in getLength() function 180 if (Offset > getLength()) in writeBytes() 247 uint64_t getLength() override { return Impl.getLength(); } in getLength() function
|
| H A D | BinaryStreamArray.h | 119 bool empty() const { return Stream.getLength() == 0; } in empty() 167 if (IterRef.getLength() == 0) in VarStreamArrayIterator() 208 if (IterRef.getLength() == 0) { 267 assert(Stream.getLength() % sizeof(T) == 0); in FixedStreamArray() 295 uint32_t size() const { return Stream.getLength() / sizeof(T); } in size()
|
| H A D | BinaryStreamWriter.h | 178 uint64_t getLength() const { return Stream.getLength(); } in getLength() function 179 uint64_t bytesRemaining() const { return getLength() - getOffset(); } in bytesRemaining()
|
| /llvm-project/llvm/lib/DebugInfo/PDB/Native/ |
| H A D | NativeSymbolEnumerator.cpp | 83 assert(Record.Value.isSignedIntN(BT.getLength() * 8)); in getValue() 85 switch (BT.getLength()) { in getValue() 99 assert(Record.Value.isIntN(BT.getLength() * 8)); in getValue() 101 switch (BT.getLength()) { in getValue() 114 assert(Record.Value.isIntN(BT.getLength() * 8)); in getValue()
|
| H A D | NativeTypeArray.cpp | 38 dumpSymbolField(OS, "length", getLength(), Indent); in dump() 58 return getLength() / Element.getLength(); in getCount() 66 uint64_t NativeTypeArray::getLength() const { return Record.Size; } 67 uint64_t NativeTypeArray::getLength() const { return Record.Size; } getLength() function in NativeTypeArray
|
| /llvm-project/llvm/unittests/Support/ |
| H A D | BinaryStreamTest.cpp | 62 uint64_t getLength() override { return Data.size(); } in getLength() function in __anoncd4830dc0111::BrokenStream 205 ASSERT_EQ(InputData.size(), Stream.Input->getLength()); in TEST_F() 225 ASSERT_EQ(InputData.size(), Ref.getLength()); in TEST_F() 280 EXPECT_EQ(0U, ConstRef.getLength()); in TEST_F() 286 EXPECT_EQ(2U, ConstRef.getLength()); in TEST_F() 297 EXPECT_EQ(1U, Dropped.getLength()); in TEST_F() 300 EXPECT_EQ(4U, ConstRef.getLength()); in TEST_F() 301 EXPECT_EQ(3U, Dropped.getLength()); in TEST_F() 307 EXPECT_EQ(6U, ConstRef.getLength()); in TEST_F() 308 EXPECT_EQ(5U, Dropped.getLength()); in TEST_F() [all …]
|
| /llvm-project/llvm/lib/Support/ |
| H A D | BinaryStreamRef.cpp | 29 uint64_t getLength() override { return BBS.getLength(); } in getLength() function in __anonb12c323d0111::ArrayRefImpl 50 uint64_t getLength() override { return BBS.getLength(); } in getLength() function in __anonb12c323d0111::MutableArrayRefImpl 91 uint64_t MaxLength = getLength() - Offset; in readLongestContiguousChunk()
|
| /llvm-project/llvm/include/llvm/CodeGen/PBQP/ |
| H A D | ReductionRules.h | 49 for (unsigned j = 0; j < YCosts.getLength(); ++j) { in applyR1() 51 for (unsigned i = 1; i < XCosts.getLength(); ++i) { in applyR1() 59 for (unsigned i = 0; i < YCosts.getLength(); ++i) { in applyR1() 61 for (unsigned j = 1; j < XCosts.getLength(); ++j) { in applyR1() 104 unsigned XLen = XCosts.getLength(), in applyR2() 152 unsigned VL = V.getLength(); in hasRegisterOptions()
|
| /llvm-project/llvm/tools/llvm-pdbutil/ |
| H A D | PrettyBuiltinDumper.cpp | 32 if (Symbol.getLength() == 4) in getTypeName() 36 switch (Symbol.getLength()) { in getTypeName() 49 switch (Symbol.getLength()) { in getTypeName()
|
| H A D | PrettyCompilandDumper.cpp | 98 if (Line->getLength() > 0) { in start() 100 uint64_t AddrEnd = AddrStart + Line->getLength() - 1; in start() 104 Printer << " (" << Line->getLength() << " bytes)"; in start() 164 if (Symbol.getLength() == 0) in dump() 203 << format_hex(VA + Symbol.getLength(), 10) << "]"; in dump()
|
| /llvm-project/clang-tools-extra/clangd/ |
| H A D | Format.cpp | 242 if (R.getOffset() + R.getLength() <= OldCursor) { // before cursor in split() 244 LengthChange += R.getReplacementText().size() - R.getLength(); in split() 255 R.getLength() - (OldCursor - R.getOffset()), in split() 295 FormatLimit = std::max(FormatLimit, R.getOffset() + R.getLength()); in formatIncremental() 308 R.getLength()); in formatIncremental() 321 if (R.getOffset() + R.getLength() <= FormatLimit) // Before limit. in formatIncremental() 387 if (R.getOffset() + R.getLength() <= OriginalOffset) { in transformCursorPosition() 390 Offset -= R.getLength(); in transformCursorPosition()
|
| /llvm-project/clang/lib/Lex/ |
| H A D | TokenConcatenation.cpp | 51 if (Tok.getLength() < 1 || Tok.getLength() > 3) in IsIdentifierStringPrefix() 55 return IsStringPrefix(StringRef(Ptr, Tok.getLength()), in IsIdentifierStringPrefix() 59 if (Tok.getLength() < 256) { in IsIdentifierStringPrefix() 139 } else if (Tok.getLength() < 256) { in GetFirstChar() 178 if (PrevSpellLoc.getLocWithOffset(PrevTok.getLength()) == SpellLoc) in AvoidConcat()
|
| /llvm-project/llvm/lib/DebugInfo/CodeView/ |
| H A D | DebugSubsectionRecord.cpp | 44 return sizeof(DebugSubsectionHeader) + Data.getLength(); in getRecordLength() 61 : Contents.getRecordData().getLength(); in calculateSerializedLength() 77 : Contents.getRecordData().getLength(); in commit()
|
| /llvm-project/clang/unittests/Tooling/ |
| H A D | ReplacementsYamlTest.cpp | 94 ASSERT_EQ(56u, DocActual.Replacements[0].getLength()); in TEST() 98 ASSERT_EQ(2u, DocActual.Replacements[1].getLength()); in TEST() 120 ASSERT_EQ(10u, DocActual.Replacements[0].getLength()); in TEST()
|
| /llvm-project/llvm/lib/Transforms/Scalar/ |
| H A D | MemCpyOptimizer.cpp | 189 int64_t Size = cast<ConstantInt>(MSI->getLength())->getZExtValue(); in addMemSet() 426 !isa<ConstantInt>(MSI->getLength())) in tryMergingIntoMemset() 825 if (isa<ConstantInt>(MSI->getLength()) && !MSI->isVolatile()) in processStore() 1133 if (MForwardOffset != 0 || MDep->getLength() != M->getLength()) { in processMemCpyMemCpyDependence() 1134 auto *MDepLen = dyn_cast<ConstantInt>(MDep->getLength()); in processMemCpyMemCpyDependence() 1135 auto *MLen = dyn_cast<ConstantInt>(M->getLength()); in processMemCpyMemCpyDependence() 1231 CopySourceAlign, M->getLength(), M->isVolatile()); 1238 M->getLength(), M->isVolatile()); in processMemSetMemCpyDependence() 1242 CopySourceAlign, M->getLength(), in processMemSetMemCpyDependence() [all...] |
| /llvm-project/llvm/lib/DebugInfo/PDB/ |
| H A D | UDTLayout.cpp | 47 return RawType.getLength(); in getTypeLength() 104 ElementSize = VTableType->getLength(); in VTableLayoutItem() 134 : UDTLayoutBase(nullptr, UDT, UDT.getName(), 0, UDT.getLength(), false), in ClassLayout() 157 : UDTLayoutBase(&Parent, *B, B->getName(), OffsetInParent, B->getLength(), in BaseClassLayout() 243 VBPO, VBP->getLength()); in initializeChildren()
|
| H A D | PDBSymbolData.cpp | 21 auto Len = RawSymbol->getLength(); in getLineNumbers() 51 (Section->getAddressOffset() + Section->getLength()) > DataOffset) in getCompilandId()
|
| /llvm-project/clang-tools-extra/clang-tidy/bugprone/ |
| H A D | NotNullTerminatedResultCheck.cpp | 62 static unsigned getLength(const Expr *E, in getLength() function 85 return StrSL->getLength(); in getLength() 88 return SrcSL->getLength(); in getLength() 97 return getLength(DestCapacityExpr, Result); in getDestCapacity() 122 getLength(Result.Nodes.getNodeAs<Expr>(WrongLengthExprName), Result)) in getGivenLength() 126 getLength(Result.Nodes.getNodeAs<Expr>(LengthExprName), Result)) in getGivenLength() 132 if (int ArgLength = getLength(Arg, Result)) in getGivenLength() 228 int SrcLength = getLength(Result.Nodes.getNodeAs<Expr>(SrcExprName), Result); in isGivenLengthEqualToSrcLength() 262 int DestCapacity = getLength(DestCapacityExpr, Result); in isDestCapacityOverflows() 280 return !getLength(Result.Nodes.getNodeAs<Expr>(SrcExprName), Result); in isFixedGivenLengthAndUnknownSrc() [all …]
|
| /llvm-project/clang/include/clang/Tooling/Core/ |
| H A D | Replacement.h | 52 unsigned getLength() const { return Length; } in getLength() function 70 return Offset == RHS.getOffset() && Length == RHS.getLength(); 122 unsigned getLength() const { return ReplacementRange.getLength(); } in getLength() function
|
| /llvm-project/llvm/lib/DebugInfo/DWARF/ |
| H A D | DWARFTypeUnit.cpp | 26 << ", length = " << format("0x%0*" PRIx64, OffsetDumpWidth, getLength()) in dump() 32 << " length = " << format("0x%0*" PRIx64, OffsetDumpWidth, getLength()) in dump()
|
| /llvm-project/clang/lib/Analysis/ |
| H A D | MacroExpansionContext.cpp | 44 MacroName.getLocation().getLocWithOffset(MacroName.getLength())); in MacroExpands() 54 << "' with length " << MacroName.getLength() << " at "; in MacroExpands() 191 OS << StringRef(Tok.getLiteralData(), Tok.getLength()); in dumpTokenInto() 194 if (Tok.getLength() < sizeof(Tmp)) { in dumpTokenInto()
|
| /llvm-project/clang-tools-extra/clang-tidy/modernize/ |
| H A D | UseStartsEndsWithCheck.cpp | 44 return StringLiteralNode->getLength() != in registerMatchers() 56 return StrlenArgNode->getLength() != StringLiteralNode->getLength(); in registerMatchers()
|