Home
last modified time | relevance | path

Searched refs:CurBuffer (Results 1 – 7 of 7) sorted by relevance

/freebsd/contrib/llvm-project/clang/lib/Lex/
H A DScratchBuffer.cpp24 : SourceMgr(SM), CurBuffer(nullptr) { in ScratchBuffer()
48 CurBuffer[BytesUsed++] = '\n'; in getToken()
51 DestPtr = CurBuffer+BytesUsed; in getToken()
54 memcpy(CurBuffer+BytesUsed, Buf, Len); in getToken()
62 CurBuffer[BytesUsed-1] = '\0'; in getToken()
79 CurBuffer = OwnBuf->getBufferStart(); in AllocScratchBuffer()
/freebsd/contrib/llvm-project/llvm/lib/TableGen/
H A DTGLexer.cpp48 CurBuffer = SrcMgr.getMainFileID(); in TGLexer()
49 CurBuf = SrcMgr.getMemoryBuffer(CurBuffer)->getBuffer(); in TGLexer()
82 SMLoc ParentIncludeLoc = SrcMgr.getParentIncludeLoc(CurBuffer); in processEOF()
91 CurBuffer = SrcMgr.FindBufferContainingLoc(ParentIncludeLoc); in processEOF()
92 CurBuf = SrcMgr.getMemoryBuffer(CurBuffer)->getBuffer(); in processEOF()
407 CurBuffer = SrcMgr.AddIncludeFile(Filename, SMLoc::getFromPointer(CurPtr), in LexInclude()
409 if (!CurBuffer) { in LexInclude()
416 CurBuf = SrcMgr.getMemoryBuffer(CurBuffer)->getBuffer(); in LexInclude()
H A DTGLexer.h203 unsigned CurBuffer = 0; variable
/freebsd/contrib/llvm-project/clang/include/clang/Lex/
H A DScratchBuffer.h26 char *CurBuffer; variable
/freebsd/contrib/llvm-project/llvm/lib/MC/MCParser/
H A DMasmParser.cpp391 unsigned CurBuffer; member in __anon60b61cd60111::MasmParser
1095 CurBuffer(CB ? CB : SM.getMainFileID()), TM(TM) { in MasmParser()
1102 Lexer.setBuffer(SrcMgr.getMemoryBuffer(CurBuffer)->getBuffer()); in MasmParser()
1172 CurBuffer = NewBuf; in enterIncludeFile()
1173 Lexer.setBuffer(SrcMgr.getMemoryBuffer(CurBuffer)->getBuffer()); in enterIncludeFile()
1180 CurBuffer = InBuffer ? InBuffer : SrcMgr.FindBufferContainingLoc(Loc); in jumpToLoc()
1181 Lexer.setBuffer(SrcMgr.getMemoryBuffer(CurBuffer)->getBuffer(), in jumpToLoc()
1220 CurBuffer = in expandMacros()
1222 Lexer.setBuffer(SrcMgr.getMemoryBuffer(CurBuffer)->getBuffer(), nullptr, in expandMacros()
1279 SMLoc ParentIncludeLoc = SrcMgr.getParentIncludeLoc(CurBuffer); in Lex()
[all …]
H A DAsmParser.cpp133 unsigned CurBuffer; member in __anon4b9616090111::AsmParser
776 CurBuffer(CB ? CB : SM.getMainFileID()), MacrosEnabledFlag(true) { in AsmParser()
783 Lexer.setBuffer(SrcMgr.getMemoryBuffer(CurBuffer)->getBuffer()); in AsmParser()
872 CurBuffer = NewBuf; in enterIncludeFile()
873 Lexer.setBuffer(SrcMgr.getMemoryBuffer(CurBuffer)->getBuffer()); in enterIncludeFile()
904 CurBuffer = InBuffer ? InBuffer : SrcMgr.FindBufferContainingLoc(Loc); in jumpToLoc()
905 Lexer.setBuffer(SrcMgr.getMemoryBuffer(CurBuffer)->getBuffer(), in jumpToLoc()
933 SMLoc ParentIncludeLoc = SrcMgr.getParentIncludeLoc(CurBuffer); in Lex()
2355 Line = SrcMgr.FindLineNumber(IDLoc, CurBuffer); in parseAndMatchAndEmitTargetInstruction()
2434 CppHashInfo.Buf = CurBuffer; in parseCppHashLineFilenameComment()
[all …]
/freebsd/contrib/llvm-project/llvm/lib/MC/
H A DMCDwarf.cpp1228 unsigned CurBuffer = SrcMgr.FindBufferContainingLoc(Loc); in Make() local
1229 unsigned LineNumber = SrcMgr.FindLineNumber(Loc, CurBuffer); in Make()