| /openbsd-src/gnu/llvm/compiler-rt/lib/scudo/standalone/ |
| H A D | string_utils.cpp | 17 static int appendChar(char **Buffer, const char *BufferEnd, char C) { in appendChar() argument 18 if (*Buffer < BufferEnd) { in appendChar() 28 static int appendNumber(char **Buffer, const char *BufferEnd, u64 AbsoluteValue, in appendNumber() argument 40 Res += appendChar(Buffer, BufferEnd, '-'); in appendNumber() 58 Res += appendChar(Buffer, BufferEnd, c); in appendNumber() 61 Res += appendChar(Buffer, BufferEnd, '-'); in appendNumber() 66 Res += appendChar(Buffer, BufferEnd, Digit); in appendNumber() 71 static int appendUnsigned(char **Buffer, const char *BufferEnd, u64 Num, in appendUnsigned() argument 74 return appendNumber(Buffer, BufferEnd, Num, Base, MinNumberLength, in appendUnsigned() 78 static int appendSignedDecimal(char **Buffer, const char *BufferEnd, s64 Num, in appendSignedDecimal() argument [all …]
|
| /openbsd-src/gnu/llvm/clang/lib/AST/ |
| H A D | CommentLexer.cpp | 107 const char *findNewline(const char *BufferPtr, const char *BufferEnd) { in findNewline() argument 108 for ( ; BufferPtr != BufferEnd; ++BufferPtr) { in findNewline() 112 return BufferEnd; in findNewline() 115 const char *skipNewline(const char *BufferPtr, const char *BufferEnd) { in skipNewline() argument 116 if (BufferPtr == BufferEnd) in skipNewline() 124 if (BufferPtr != BufferEnd && *BufferPtr == '\n') in skipNewline() 131 const char *BufferEnd) { in skipNamedCharacterReference() argument 132 for ( ; BufferPtr != BufferEnd; ++BufferPtr) { in skipNamedCharacterReference() 136 return BufferEnd; in skipNamedCharacterReference() 140 const char *BufferEnd) { in skipDecimalCharacterReference() argument [all …]
|
| H A D | CommentParser.cpp | 43 const char *BufferEnd; member 62 Pos.BufferEnd = Tok.getText().end(); in setupBuffer() 74 assert(Pos.BufferPtr != Pos.BufferEnd); in peek() 80 assert(Pos.BufferPtr != Pos.BufferEnd); in consumeChar() 82 if (Pos.BufferPtr == Pos.BufferEnd) { in consumeChar() 241 Pos.BufferPtr, Pos.BufferEnd - Pos.BufferPtr, in putBackLeftoverTokens() 243 Pos.BufferEnd - Pos.BufferPtr)); in putBackLeftoverTokens()
|
| /openbsd-src/gnu/llvm/clang/lib/Lex/ |
| H A D | Lexer.cpp | 83 BufferEnd = BufEnd; in InitLexer() 94 StringRef Buf(BufferStart, BufferEnd - BufferStart); in InitLexer() 211 L->BufferEnd = StrData+TokLen; in Create_PragmaLexer() 212 assert(L->BufferEnd[0] == 0 && "Buffer is not nul terminated!"); in Create_PragmaLexer() 232 assert((BufferStart + Offset) <= BufferEnd); in seek() 1151 assert(Loc >= BufferStart && Loc <= BufferEnd && in getSourceLocation() 1447 if (BufferPtr > BufferEnd) in SetByteOffset() 1448 BufferPtr = BufferEnd; in SetByteOffset() 1742 (const llvm::UTF8 *)BufferEnd, in tryConsumeIdentifierUTF8Char() 1889 if (CurPtr < BufferEnd) { in LexIdentifierContinue() [all …]
|
| H A D | PPLexerChange.cpp | 268 const char *EndPos = CurLexer->BufferEnd; in getCurLexerEndPos() 442 CurLexer->FormTokenWithChars(Result, CurLexer->BufferEnd, tok::eof); in HandleEndOfFile()
|
| H A D | Pragma.cpp | 894 CurLexer->FormTokenWithChars(Result, CurLexer->BufferEnd, tok::eof); in HandlePragmaHdrstop()
|
| H A D | PPDirectives.cpp | 2290 CurLexer->FormTokenWithChars(Result, CurLexer->BufferEnd, tok::eof); in HandleHeaderIncludeOrImport()
|
| /openbsd-src/gnu/llvm/llvm/include/llvm/Support/ |
| H A D | MemoryBuffer.h | 53 const char *BufferEnd; // End of the buffer. variable 67 const char *getBufferEnd() const { return BufferEnd; } in getBufferEnd() 68 size_t getBufferSize() const { return BufferEnd-BufferStart; } in getBufferSize()
|
| /openbsd-src/gnu/llvm/clang/include/clang/Lex/ |
| H A D | Lexer.h | 90 const char *BufferEnd; variable 241 return BufferPtr == BufferEnd; in LexFromRawLexer() 285 return StringRef(BufferStart, BufferEnd - BufferStart); in getBuffer() 765 void cutOffLexing() { BufferPtr = BufferEnd; } in cutOffLexing()
|
| /openbsd-src/gnu/llvm/clang/include/clang/AST/ |
| H A D | CommentLexer.h | 234 const char *const BufferEnd; variable 309 assert(Loc >= BufferStart && Loc <= BufferEnd && in getSourceLocation() 354 const char *BufferStart, const char *BufferEnd,
|
| /openbsd-src/gnu/llvm/llvm/tools/llvm-objdump/ |
| H A D | SourcePrinter.cpp | 362 *BufferEnd = Buffer->getBufferEnd(); in cacheSource() local 365 for (const char *I = BufferStart; I != BufferEnd; ++I) in cacheSource() 370 if (Start < BufferEnd) in cacheSource() 371 Lines.emplace_back(Start, BufferEnd - Start); in cacheSource()
|
| /openbsd-src/gnu/llvm/llvm/lib/ProfileData/ |
| H A D | InstrProf.cpp | 961 const unsigned char *const BufferEnd, in getValueProfData() argument 965 if (D + sizeof(ValueProfData) > BufferEnd) in getValueProfData() 970 if (D + TotalSize > BufferEnd) in getValueProfData()
|
| H A D | InstrProfReader.cpp | 531 const uint8_t *BufferEnd = (const uint8_t *)DataBuffer->getBufferEnd(); in readHeader() local 532 if (BinaryIdsStart + BinaryIdsSize > BufferEnd) in readHeader()
|
| /openbsd-src/gnu/llvm/llvm/lib/Support/ |
| H A D | MemoryBuffer.cpp | 54 BufferEnd = BufEnd; in init()
|
| /openbsd-src/gnu/llvm/llvm/include/llvm/Object/ |
| H A D | ELF.h | 104 DataRegion(const T *Data, const uint8_t *BufferEnd) in DataRegion() 105 : First(Data), BufEnd(BufferEnd) {} in DataRegion()
|