Home
last modified time | relevance | path

Searched refs:getBytes (Results 1 – 25 of 26) sorted by relevance

12

/llvm-project-15.0.7/clang-tools-extra/clangd/refactor/tweaks/
H A DRawStringLiteral.cpp81 needsRaw(Str->getBytes()) && canBeRaw(Str->getBytes()); in prepare()
87 tooling::Replacement(SM, Str, ("R\"(" + Str->getBytes() + ")\"").str(), in apply()
/llvm-project-15.0.7/llvm/unittests/Support/
H A DDataExtractorTest.cpp378 Str = DE.getBytes(&Offset, sizeof(Data)); in TEST()
382 Str = DE.getBytes(&Offset, 4); in TEST()
388 EXPECT_EQ(StringRef("\x01\x02"), DE.getBytes(C, 2)); in TEST()
389 EXPECT_EQ(StringRef("\x00\x04", 2), DE.getBytes(C, 2)); in TEST()
390 EXPECT_EQ(StringRef(), DE.getBytes(C, 2)); in TEST()
391 EXPECT_EQ(StringRef(), DE.getBytes(C, 2)); in TEST()
/llvm-project-15.0.7/llvm/include/llvm/ProfileData/
H A DGCOV.h108 std::string str(de.getBytes(cursor, 4)); in readGCOVVersion()
148 return de.getBytes(cursor, len * 4).split('\0').first; in getString()
174 str = de.getBytes(cursor, len).drop_back(); in readString()
176 str = de.getBytes(cursor, len * 4).split('\0').first; in readString()
/llvm-project-15.0.7/llvm/include/llvm/Support/
H A DDataExtractor.h233 StringRef getBytes(uint64_t *OffsetPtr, uint64_t Length,
239 StringRef getBytes(Cursor &C, uint64_t Length) { in getBytes() function
240 return getBytes(&C.Offset, Length, &C.Err); in getBytes()
/llvm-project-15.0.7/clang-tools-extra/clang-tidy/modernize/
H A DRawStringLiteralCheck.cpp50 for (const unsigned char C : Literal->getBytes()) in containsEscapedCharacters()
73 const StringRef Bytes = Literal->getBytes(); in asRawStringLiteral()
/llvm-project-15.0.7/llvm/lib/Support/
H A DDataExtractor.cpp176 StringRef Bytes(getBytes(OffsetPtr, Length)); in getFixedLengthString()
180 StringRef DataExtractor::getBytes(uint64_t *OffsetPtr, uint64_t Length, in getBytes() function in DataExtractor
/llvm-project-15.0.7/clang-tools-extra/clang-tidy/misc/
H A DMisleadingBidirectional.cpp129 StringRef Literal = SL->getBytes(); in check()
H A DRedundantExpressionCheck.cpp102 return cast<StringLiteral>(Left)->getBytes() == in areEquivalentExpr()
103 cast<StringLiteral>(Right)->getBytes(); in areEquivalentExpr()
/llvm-project-15.0.7/llvm/lib/DebugInfo/GSYM/
H A DObjectFileTransformer.cpp59 StringRef UUIDBytes(Decoder.getBytes(&Offset, PayloadSize)); in getUUID()
/llvm-project-15.0.7/clang/lib/StaticAnalyzer/Checkers/
H A DIdenticalExprChecker.cpp484 return StringLit1->getBytes() == StringLit2->getBytes(); in isIdenticalStmt()
H A DExprInspectionChecker.cpp478 return std::string(SL->getBytes()); in lookup()
/llvm-project-15.0.7/llvm/lib/CodeGen/AsmPrinter/
H A DDebugLocStream.h116 ArrayRef<char> getBytes(const Entry &E) const { in getBytes() function
H A DDwarfDebug.cpp2523 DWARFDataExtractor Data(StringRef(DebugLocs.getBytes(Entry).data(), in emitDebugLocEntry()
2524 DebugLocs.getBytes(Entry).size()), in emitDebugLocEntry()
2685 Asm->emitULEB128(DebugLocs.getBytes(Entry).size()); in emitDebugLocEntryLocation()
2686 else if (DebugLocs.getBytes(Entry).size() <= std::numeric_limits<uint16_t>::max()) in emitDebugLocEntryLocation()
2687 Asm->emitInt16(DebugLocs.getBytes(Entry).size()); in emitDebugLocEntryLocation()
/llvm-project-15.0.7/llvm/lib/DebugInfo/DWARF/
H A DDWARFDebugFrame.cpp358 StringRef Expression = Data.getBytes(C, ExprLength); in parse()
375 StringRef Expression = Data.getBytes(C, BlockLength); in parse()
H A DDWARFFormValue.cpp374 Value.data = Data.getBytes(OffsetPtr, Value.uval, &Err).bytes_begin(); in extractValue()
/llvm-project-15.0.7/llvm/lib/Object/
H A DXCOFFObjectFile.cpp1356 FunctionName = DE.getBytes(Cur, FunctionNameLen); in XCOFFTracebackTable()
1364 StringRef VectorExtRef = DE.getBytes(Cur, 6); in XCOFFTracebackTable()
/llvm-project-15.0.7/llvm/lib/Target/AMDGPU/Disassembler/
H A DAMDGPUDisassembler.cpp1959 ReservedBytes = DE.getBytes(Cursor, 4); in decodeKernelDescriptorDirective()
1976 ReservedBytes = DE.getBytes(Cursor, 20); in decodeKernelDescriptorDirective()
2053 ReservedBytes = DE.getBytes(Cursor, 6); in decodeKernelDescriptorDirective()
/llvm-project-15.0.7/llvm/lib/DWP/
H A DDWP.cpp390 Out.emitBytes(Data.getBytes(&Offset, HeaderSize)); in writeStringsAndOffsets()
/llvm-project-15.0.7/clang/lib/AST/
H A DASTStructuralEquivalence.cpp287 return E1->getBytes() == E2->getBytes(); in IsStmtEquivalent()
H A DStmtProfile.cpp1321 ID.AddString(S->getBytes()); in VisitStringLiteral()
H A DASTImporter.cpp7069 Importer.getToContext(), E->getBytes(), E->getKind(), E->isPascal(), in VisitStringLiteral()
H A DExprConstant.cpp16001 StringRef Str = S->getBytes(); in EvaluateBuiltinStrLen()
/llvm-project-15.0.7/clang/lib/Sema/
H A DSemaExprObjC.cpp929 StringRef Bytes = StrLit->getString()->getBytes(); in CheckObjCDictionaryLiteralDuplicateKeys()
940 checkOneKey(StringKeys, Str->getBytes(), Loc); in CheckObjCDictionaryLiteralDuplicateKeys()
/llvm-project-15.0.7/clang/lib/Serialization/
H A DASTWriterStmt.cpp694 StringRef StrData = E->getBytes(); in VisitStringLiteral()
/llvm-project-15.0.7/clang/include/clang/AST/
H A DExpr.h1858 StringRef getBytes() const { in getBytes() function

12