Home
last modified time | relevance | path

Searched refs:BufferStart (Results 1 – 19 of 19) sorted by relevance

/openbsd/gnu/llvm/clang/lib/Rewrite/
H A DHTMLRewrite.cpp48 const char *BufferStart = SM.getBufferData(FID, &Invalid).data(); in HighlightRange() local
53 BufferStart, StartTag, EndTag); in HighlightRange()
59 const char *BufferStart, in HighlightRange() argument
71 switch (BufferStart[i]) { in HighlightRange()
451 const char *BufferStart = L.getBuffer().data(); in SyntaxHighlight() local
478 HighlightRange(RB, TokOffs, TokOffs+TokLen, BufferStart, in SyntaxHighlight()
483 HighlightRange(RB, TokOffs, TokOffs+TokLen, BufferStart, in SyntaxHighlight()
501 HighlightRange(RB, TokOffs, TokOffs+TokLen, BufferStart, in SyntaxHighlight()
519 HighlightRange(RB, TokOffs, TokEnd, BufferStart, in SyntaxHighlight()
/openbsd/gnu/llvm/llvm/lib/Object/
H A DWindowsResource.cpp620 char *BufferStart; member in llvm::object::WindowsResourceCOFFWriter
705 BufferStart = OutputBuffer->getBufferStart(); in write()
730 auto *Header = reinterpret_cast<coff_file_header *>(BufferStart); in writeCOFFHeader()
746 reinterpret_cast<coff_section *>(BufferStart + CurrentOffset); in writeFirstSectionHeader()
764 reinterpret_cast<coff_section *>(BufferStart + CurrentOffset); in writeSecondSectionHeader()
792 llvm::copy(RawDataEntry, BufferStart + CurrentOffset); in writeSecondSection()
812 Symbol = reinterpret_cast<coff_symbol16 *>(BufferStart + CurrentOffset); in writeSymbolTable()
839 Aux = reinterpret_cast<coff_aux_section_definition *>(BufferStart + in writeSymbolTable()
959 support::endian::write16le(BufferStart + CurrentOffset, Length); in writeDirectoryStringTable()
961 auto *Start = reinterpret_cast<UTF16 *>(BufferStart + CurrentOffset); in writeDirectoryStringTable()
[all …]
/openbsd/gnu/llvm/llvm/include/llvm/Support/
H A DMemoryBuffer.h52 const char *BufferStart; // Start of the buffer. variable
66 const char *getBufferStart() const { return BufferStart; } in getBufferStart()
68 size_t getBufferSize() const { return BufferEnd-BufferStart; } in getBufferSize()
71 return StringRef(BufferStart, getBufferSize()); in getBuffer()
H A Draw_ostream.h378 void SetBuffer(char *BufferStart, size_t Size) { in SetBuffer() argument
379 SetBufferAndMode(BufferStart, Size, BufferKind::ExternalBuffer); in SetBuffer()
394 void SetBufferAndMode(char *BufferStart, size_t Size, BufferKind Mode);
/openbsd/gnu/llvm/clang/include/clang/Lex/
H A DLexer.h87 const char *BufferStart; variable
285 return StringRef(BufferStart, BufferEnd - BufferStart); in getBuffer()
312 assert(BufferPtr >= BufferStart && "Invalid buffer state"); in getCurrentBufferOffset()
313 return BufferPtr - BufferStart; in getCurrentBufferOffset()
576 static bool isNewLineEscaped(const char *BufferStart, const char *Str);
/openbsd/gnu/llvm/clang/include/clang/AST/
H A DCommentLexer.h233 const char *const BufferStart; variable
309 assert(Loc >= BufferStart && Loc <= BufferEnd && in getSourceLocation()
312 const unsigned CharNo = Loc - BufferStart; in getSourceLocation()
354 const char *BufferStart, const char *BufferEnd,
/openbsd/gnu/llvm/compiler-rt/lib/profile/
H A DInstrProfilingWriter.c59 BufferIO->BufferStart = Buffer; in llvmInitBufferIO()
100 uint8_t *Buffer = BufferIO->BufferStart + BufferIO->CurOffset; in lprofBufferIOWrite()
105 (uint8_t *)BufferWriter.WriterCtx - BufferIO->BufferStart; in lprofBufferIOWrite()
113 {BufferIO->BufferStart, sizeof(uint8_t), BufferIO->CurOffset, 0}}; in lprofBufferIOFlush()
H A DInstrProfilingInternal.h74 uint8_t *BufferStart; member
/openbsd/gnu/llvm/llvm/tools/llvm-objdump/
H A DSourcePrinter.cpp361 const char *BufferStart = Buffer->getBufferStart(), in cacheSource() local
364 const char *Start = BufferStart; in cacheSource()
365 for (const char *I = BufferStart; I != BufferEnd; ++I) in cacheSource()
367 Lines.emplace_back(Start, I - Start - (BufferStart < I && I[-1] == '\r')); in cacheSource()
/openbsd/gnu/llvm/clang/lib/Lex/
H A DLexer.cpp81 BufferStart = BufStart; in InitLexer()
92 if (BufferStart == BufferPtr) { in InitLexer()
94 StringRef Buf(BufferStart, BufferEnd - BufferStart); in InitLexer()
232 assert((BufferStart + Offset) <= BufferEnd); in seek()
233 BufferPtr = BufferStart + Offset; in seek()
1076 if (Str - 1 < BufferStart) in isNewLineEscaped()
1081 if (Str - 2 < BufferStart) in isNewLineEscaped()
1156 unsigned CharNo = Loc-BufferStart; in getSourceLocation()
1446 BufferPtr = BufferStart + Offset; in SetByteOffset()
3140 if (CurPtr != BufferStart && in IsStartOfConflictMarker()
[all …]
H A DPPLexerChange.cpp269 if (EndPos != CurLexer->BufferStart && in getCurLexerEndPos()
274 if (EndPos != CurLexer->BufferStart && in getCurLexerEndPos()
/openbsd/gnu/llvm/clang/lib/AST/
H A DCommentParser.cpp42 const char *BufferStart; member
61 Pos.BufferStart = Tok.getText().begin(); in setupBuffer()
63 Pos.BufferPtr = Pos.BufferStart; in setupBuffer()
68 const unsigned CharNo = Pos.BufferPtr - Pos.BufferStart; in getSourceLocation()
239 if (Pos.BufferPtr != Pos.BufferStart) { in putBackLeftoverTokens()
H A DCommentLexer.cpp739 const char *BufferStart, const char *BufferEnd, bool ParseCommands) in Lexer() argument
741 BufferStart(BufferStart), BufferEnd(BufferEnd), BufferPtr(BufferStart), in Lexer()
H A DRawCommentList.cpp171 const char *BufferStart = SourceMgr.getBufferData(BeginFileID, in getRawTextSlow() local
176 return StringRef(BufferStart + BeginOffset, Length); in getRawTextSlow()
/openbsd/gnu/llvm/clang/include/clang/Rewrite/Core/
H A DHTMLRewrite.h48 const char *BufferStart,
/openbsd/gnu/llvm/llvm/lib/Support/
H A Draw_ostream.cpp107 void raw_ostream::SetBufferAndMode(char *BufferStart, size_t Size, in SetBufferAndMode() argument
109 assert(((Mode == BufferKind::Unbuffered && !BufferStart && Size == 0) || in SetBufferAndMode()
110 (Mode != BufferKind::Unbuffered && BufferStart && Size != 0)) && in SetBufferAndMode()
118 OutBufStart = BufferStart; in SetBufferAndMode()
H A DMemoryBuffer.cpp53 BufferStart = BufStart; in init()
/openbsd/gnu/llvm/llvm/lib/ObjCopy/MachO/
H A DMachOWriter.cpp450 uint8_t *BufferStart = reinterpret_cast<uint8_t *>(Buf->getBufferStart()); in writeCodeSignatureData() local
451 uint8_t *HashReadStart = BufferStart; in writeCodeSignatureData()
452 uint8_t *HashReadEnd = BufferStart + CodeSignature.StartOffset; in writeCodeSignatureData()
546 msync(BufferStart, CodeSignature.StartOffset + CodeSignature.Size, in writeCodeSignatureData()
/openbsd/gnu/llvm/llvm/bindings/ocaml/llvm/
H A Dllvm_ocaml.c2333 const char *BufferStart = LLVMGetBufferStart(MemBuf); in llvm_memorybuffer_as_string() local
2334 return cstr_to_string(BufferStart, BufferSize); in llvm_memorybuffer_as_string()