Lines Matching refs:SourceMgr

110 RawComment::RawComment(const SourceManager &SourceMgr, SourceRange SR,  in RawComment()  argument
116 if (SR.getBegin() == SR.getEnd() || getRawText(SourceMgr).empty()) { in RawComment()
130 SourceMgr.getDecomposedLoc(Range.getBegin()); in RawComment()
134 SourceMgr.getBufferData(BeginFileID, &Invalid).data(); in RawComment()
153 StringRef RawComment::getRawTextSlow(const SourceManager &SourceMgr) const { in getRawTextSlow()
160 SourceMgr.getDecomposedLoc(Range.getBegin()); in getRawTextSlow()
161 std::tie(EndFileID, EndOffset) = SourceMgr.getDecomposedLoc(Range.getEnd()); in getRawTextSlow()
171 const char *BufferStart = SourceMgr.getBufferData(BeginFileID, in getRawTextSlow()
285 SourceMgr.getDecomposedLoc(RC.getBeginLoc()); in addComment()
317 commentsStartOnSameColumn(SourceMgr, C1, C2))) && in addComment()
318 onlyWhitespaceBetween(SourceMgr, C1.getEndLoc(), C2.getBeginLoc(), in addComment()
322 RawComment(SourceMgr, MergedRange, CommentOpts, true); in addComment()
345 const unsigned Line = SourceMgr.getLineNumber(File, Offset); in getCommentBeginLine()
355 SourceMgr.getDecomposedLoc(C->getSourceRange().getEnd()).second; in getCommentEndOffset()
360 std::string RawComment::getFormattedText(const SourceManager &SourceMgr, in getFormattedText() argument
362 llvm::StringRef CommentText = getRawText(SourceMgr); in getFormattedText()
368 getFormattedLines(SourceMgr, Diags)) in getFormattedText()
378 RawComment::getFormattedLines(const SourceManager &SourceMgr, in getFormattedLines() argument
380 llvm::StringRef CommentText = getRawText(SourceMgr); in getFormattedLines()
421 PresumedLoc Loc = SourceMgr.getPresumedLoc(Tok.getLocation()); in getFormattedLines()
429 llvm::StringRef TokText = L.getSpelling(Tok, SourceMgr); in getFormattedLines()
432 SourceMgr.getSpellingColumnNumber(Tok.getLocation(), &LocInvalid); in getFormattedLines()
457 SourceMgr.getPresumedLoc(Tok.getLocation().getLocWithOffset(SkipLen)); in getFormattedLines()
463 PresumedLoc End = SourceMgr.getPresumedLoc(Tok.getLocation()); in getFormattedLines()
470 Line += L.getSpelling(Tok, SourceMgr); in getFormattedLines()
472 PresumedLoc End = SourceMgr.getPresumedLoc(Tok.getLocation()); in getFormattedLines()