Lines Matching refs:SourceMgr
109 RawComment::RawComment(const SourceManager &SourceMgr, SourceRange SR, in RawComment() argument
115 if (SR.getBegin() == SR.getEnd() || getRawText(SourceMgr).empty()) { in RawComment()
129 SourceMgr.getDecomposedLoc(Range.getBegin()); in RawComment()
133 SourceMgr.getBufferData(BeginFileID, &Invalid).data(); in RawComment()
152 StringRef RawComment::getRawTextSlow(const SourceManager &SourceMgr) const { in getRawTextSlow()
159 SourceMgr.getDecomposedLoc(Range.getBegin()); in getRawTextSlow()
160 std::tie(EndFileID, EndOffset) = SourceMgr.getDecomposedLoc(Range.getEnd()); in getRawTextSlow()
170 const char *BufferStart = SourceMgr.getBufferData(BeginFileID, in getRawTextSlow()
284 SourceMgr.getDecomposedLoc(RC.getBeginLoc()); in addComment()
316 commentsStartOnSameColumn(SourceMgr, C1, C2))) && in addComment()
317 onlyWhitespaceBetween(SourceMgr, C1.getEndLoc(), C2.getBeginLoc(), in addComment()
321 RawComment(SourceMgr, MergedRange, CommentOpts, true); in addComment()
344 const unsigned Line = SourceMgr.getLineNumber(File, Offset); in getCommentBeginLine()
354 SourceMgr.getDecomposedLoc(C->getSourceRange().getEnd()).second; in getCommentEndOffset()
359 std::string RawComment::getFormattedText(const SourceManager &SourceMgr, in getFormattedText() argument
361 llvm::StringRef CommentText = getRawText(SourceMgr); in getFormattedText()
395 llvm::StringRef TokText = L.getSpelling(Tok, SourceMgr); in getFormattedText()
398 SourceMgr.getSpellingColumnNumber(Tok.getLocation(), &LocInvalid); in getFormattedText()
427 Result += L.getSpelling(Tok, SourceMgr); in getFormattedText()