Lines Matching defs:SourceMgr
108 RawComment::RawComment(const SourceManager &SourceMgr, SourceRange SR,
114 if (SR.getBegin() == SR.getEnd() || getRawText(SourceMgr).empty()) {
128 SourceMgr.getDecomposedLoc(Range.getBegin());
132 SourceMgr.getBufferData(BeginFileID, &Invalid).data();
151 StringRef RawComment::getRawTextSlow(const SourceManager &SourceMgr) const {
158 SourceMgr.getDecomposedLoc(Range.getBegin());
159 std::tie(EndFileID, EndOffset) = SourceMgr.getDecomposedLoc(Range.getEnd());
169 const char *BufferStart = SourceMgr.getBufferData(BeginFileID,
283 SourceMgr.getDecomposedLoc(RC.getBeginLoc());
315 commentsStartOnSameColumn(SourceMgr, C1, C2))) &&
316 onlyWhitespaceBetween(SourceMgr, C1.getEndLoc(), C2.getBeginLoc(),
320 RawComment(SourceMgr, MergedRange, CommentOpts, true);
343 const unsigned Line = SourceMgr.getLineNumber(File, Offset);
353 SourceMgr.getDecomposedLoc(C->getSourceRange().getEnd()).second;
358 std::string RawComment::getFormattedText(const SourceManager &SourceMgr,
360 llvm::StringRef CommentText = getRawText(SourceMgr);
394 llvm::StringRef TokText = L.getSpelling(Tok, SourceMgr);
397 SourceMgr.getSpellingColumnNumber(Tok.getLocation(), &LocInvalid);
426 Result += L.getSpelling(Tok, SourceMgr);