Lines Matching refs:SourceMgr
108 RawComment::RawComment(const SourceManager &SourceMgr, SourceRange SR, in RawComment() argument
114 if (SR.getBegin() == SR.getEnd() || getRawText(SourceMgr).empty()) { in RawComment()
128 SourceMgr.getDecomposedLoc(Range.getBegin()); in RawComment()
132 SourceMgr.getBufferData(BeginFileID, &Invalid).data(); in RawComment()
151 StringRef RawComment::getRawTextSlow(const SourceManager &SourceMgr) const { in getRawTextSlow()
158 SourceMgr.getDecomposedLoc(Range.getBegin()); in getRawTextSlow()
159 std::tie(EndFileID, EndOffset) = SourceMgr.getDecomposedLoc(Range.getEnd()); in getRawTextSlow()
169 const char *BufferStart = SourceMgr.getBufferData(BeginFileID, in getRawTextSlow()
282 FileIDAndOffset Loc = SourceMgr.getDecomposedLoc(RC.getBeginLoc()); in addComment()
314 commentsStartOnSameColumn(SourceMgr, C1, C2))) && in addComment()
315 onlyWhitespaceBetween(SourceMgr, C1.getEndLoc(), C2.getBeginLoc(), in addComment()
319 RawComment(SourceMgr, MergedRange, CommentOpts, true); in addComment()
342 const unsigned Line = SourceMgr.getLineNumber(File, Offset); in getCommentBeginLine()
352 SourceMgr.getDecomposedLoc(C->getSourceRange().getEnd()).second; in getCommentEndOffset()
357 std::string RawComment::getFormattedText(const SourceManager &SourceMgr, in getFormattedText() argument
359 llvm::StringRef CommentText = getRawText(SourceMgr); in getFormattedText()
365 getFormattedLines(SourceMgr, Diags)) in getFormattedText()
375 RawComment::getFormattedLines(const SourceManager &SourceMgr, in getFormattedLines() argument
377 llvm::StringRef CommentText = getRawText(SourceMgr); in getFormattedLines()
418 PresumedLoc Loc = SourceMgr.getPresumedLoc(Tok.getLocation()); in getFormattedLines()
426 llvm::StringRef TokText = L.getSpelling(Tok, SourceMgr); in getFormattedLines()
429 SourceMgr.getSpellingColumnNumber(Tok.getLocation(), &LocInvalid); in getFormattedLines()
454 SourceMgr.getPresumedLoc(Tok.getLocation().getLocWithOffset(SkipLen)); in getFormattedLines()
460 PresumedLoc End = SourceMgr.getPresumedLoc(Tok.getLocation()); in getFormattedLines()
467 Line += L.getSpelling(Tok, SourceMgr); in getFormattedLines()
469 PresumedLoc End = SourceMgr.getPresumedLoc(Tok.getLocation()); in getFormattedLines()