Home
last modified time | relevance | path

Searched refs:BufStart (Results 1 – 9 of 9) sorted by relevance

/external/llvm/lib/Support/
DSourceMgr.cpp88 const char *BufStart = Buff->getBufferStart(); in getLineAndColumn() local
89 const char *Ptr = BufStart; in getLineAndColumn()
116 size_t NewlineOffs = StringRef(BufStart, Ptr-BufStart).find_last_of("\n\r"); in getLineAndColumn()
118 return std::make_pair(LineNo, Ptr-BufStart-NewlineOffs); in getLineAndColumn()
156 const char *BufStart = CurMB->getBufferStart(); in GetMessage() local
157 while (LineStart != BufStart && LineStart[-1] != '\n' && in GetMessage()
DMemoryBuffer.cpp45 void MemoryBuffer::init(const char *BufStart, const char *BufEnd, in init() argument
49 BufferStart = BufStart; in init()
/external/clang/include/clang/Rewrite/Core/
DRewriteBuffer.h41 void Initialize(const char *BufStart, const char *BufEnd) { in Initialize() argument
42 Buffer.assign(BufStart, BufEnd); in Initialize()
/external/clang/include/clang/Lex/
DLexer.h96 void InitLexer(const char *BufStart, const char *BufPtr, const char *BufEnd);
109 const char *BufStart, const char *BufPtr, const char *BufEnd);
/external/llvm/include/llvm/Support/
DMemoryBuffer.h44 void init(const char *BufStart, const char *BufEnd,
/external/clang/lib/Lex/
DPTHLexer.cpp612 const unsigned char *BufStart = (const unsigned char *)Buf->getBufferStart(); in CreateLexer() local
614 const unsigned char* data = BufStart + FileData.getTokenOffset(); in CreateLexer()
617 const unsigned char* ppcond = BufStart + FileData.getPPCondOffset(); in CreateLexer()
DLexer.cpp55 void Lexer::InitLexer(const char *BufStart, const char *BufPtr, in InitLexer() argument
57 BufferStart = BufStart; in InitLexer()
132 const char *BufStart, const char *BufPtr, const char *BufEnd) in Lexer() argument
135 InitLexer(BufStart, BufPtr, BufEnd); in Lexer()
464 const char *BufStart = Buffer.data(); in getBeginningOfFileToken() local
468 const char *StrData = BufStart+LocInfo.second; in getBeginningOfFileToken()
473 while (LexStart != BufStart) { in getBeginningOfFileToken()
484 Lexer TheLexer(LexerStartLoc, LangOpts, BufStart, LexStart, Buffer.end()); in getBeginningOfFileToken()
/external/clang/lib/StaticAnalyzer/Checkers/
DCStringChecker.cpp388 SVal BufStart = svalBuilder.evalCast(BufVal, PtrTy, FirstBuf->getType()); in CheckBufferAccess() local
389 if (Optional<Loc> BufLoc = BufStart.getAs<Loc>()) { in CheckBufferAccess()
408 BufStart = svalBuilder.evalCast(BufVal, PtrTy, SecondBuf->getType()); in CheckBufferAccess()
409 if (Optional<Loc> BufLoc = BufStart.getAs<Loc>()) { in CheckBufferAccess()
855 SVal BufStart = svalBuilder.evalCast(BufVal, PtrTy, FirstBuf->getType()); in IsFirstBufInBound() local
856 Optional<Loc> BufLoc = BufStart.getAs<Loc>(); in IsFirstBufInBound()
/external/clang/lib/Frontend/
DTextDiagnostic.cpp1085 const char *BufStart = SM.getBufferData(FID, &Invalid).data(); in emitSnippetAndCaret() local
1098 const char *TokPtr = BufStart+FileOffset; in emitSnippetAndCaret()