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()
281 !SourceMgr.isBeforeInTranslationUnit(Comments.back()->getBeginLoc(), in addComment()
318 commentsStartOnSameColumn(SourceMgr, C1, C2))) && in addComment()
319 onlyWhitespaceBetween(SourceMgr, C1.getEndLoc(), C2.getBeginLoc(), in addComment()
322 *Comments.back() = RawComment(SourceMgr, MergedRange, CommentOpts, true); in addComment()
335 BeforeThanCompare<RawComment>(SourceMgr)); in addDeserializedComments()
339 std::string RawComment::getFormattedText(const SourceManager &SourceMgr, in getFormattedText() argument
341 llvm::StringRef CommentText = getRawText(SourceMgr); in getFormattedText()
375 llvm::StringRef TokText = L.getSpelling(Tok, SourceMgr); in getFormattedText()
378 SourceMgr.getSpellingColumnNumber(Tok.getLocation(), &LocInvalid); in getFormattedText()
407 Result += L.getSpelling(Tok, SourceMgr); in getFormattedText()