Lines Matching refs:FID
39 FileID FID = SM.getFileID(B); in HighlightRange() local
40 assert(SM.getFileID(E) == FID && "B/E not in the same file!"); in HighlightRange()
50 const char *BufferStart = SM.getBufferData(FID, &Invalid).data(); in HighlightRange()
54 HighlightRange(R.getEditBuffer(FID), BOffset, EOffset, in HighlightRange()
135 void html::EscapeText(Rewriter &R, FileID FID, in EscapeText() argument
138 llvm::MemoryBufferRef Buf = R.getSourceMgr().getBufferOrFake(FID); in EscapeText()
144 RewriteBuffer &RB = R.getEditBuffer(FID); in EscapeText()
255 void html::AddLineNumbers(Rewriter& R, FileID FID) { in AddLineNumbers() argument
257 llvm::MemoryBufferRef Buf = R.getSourceMgr().getBufferOrFake(FID); in AddLineNumbers()
261 RewriteBuffer &RB = R.getEditBuffer(FID); in AddLineNumbers()
297 os << "<table class=\"code\" data-fileid=\"" << FID.getHashValue() << "\">\n"; in AddLineNumbers()
302 void html::AddHeaderFooterInternalBuiltinCSS(Rewriter &R, FileID FID, in AddHeaderFooterInternalBuiltinCSS() argument
305 llvm::MemoryBufferRef Buf = R.getSourceMgr().getBufferOrFake(FID); in AddHeaderFooterInternalBuiltinCSS()
309 SourceLocation StartLoc = R.getSourceMgr().getLocForStartOfFile(FID); in AddHeaderFooterInternalBuiltinCSS()
474 Rewriter &R, FileID FID, const Preprocessor &PP, in SyntaxHighlightImpl() argument
479 RewriteBuffer &RB = R.getEditBuffer(FID); in SyntaxHighlightImpl()
481 llvm::MemoryBufferRef FromFile = SM.getBufferOrFake(FID); in SyntaxHighlightImpl()
484 Lexer L(FID, FromFile, SM, PP.getLangOpts()); in SyntaxHighlightImpl()
563 void html::SyntaxHighlight(Rewriter &R, FileID FID, const Preprocessor &PP, in SyntaxHighlight() argument
565 RewriteBuffer &RB = R.getEditBuffer(FID); in SyntaxHighlight()
567 llvm::MemoryBufferRef FromFile = SM.getBufferOrFake(FID); in SyntaxHighlight()
571 auto CacheIt = Cache->SyntaxHighlights.find(FID); in SyntaxHighlight()
588 Cache->SyntaxHighlights[FID].push_back({B, E, StartTag, EndTag}); in SyntaxHighlight()
591 SyntaxHighlightImpl(R, FID, PP, HighlightRangeCallback); in SyntaxHighlight()
595 Rewriter &R, FileID FID, const Preprocessor &PP, in HighlightMacrosImpl() argument
604 llvm::MemoryBufferRef FromFile = SM.getBufferOrFake(FID); in HighlightMacrosImpl()
605 Lexer L(FID, FromFile, SM, PP.getLangOpts()); in HighlightMacrosImpl()
678 if (SM.getFileID(LLoc.getBegin()) != FID) { in HighlightMacrosImpl()
683 assert(SM.getFileID(LLoc.getEnd()) == FID && in HighlightMacrosImpl()
740 void html::HighlightMacros(Rewriter &R, FileID FID, const Preprocessor &PP, in HighlightMacros() argument
743 auto CacheIt = Cache->MacroHighlights.find(FID); in HighlightMacros()
760 Cache->MacroHighlights[FID].push_back( in HighlightMacros()
765 HighlightMacrosImpl(R, FID, PP, HighlightRangeCallback); in HighlightMacros()