Lines Matching refs:CaretLine
322 std::string &CaretLine, in selectInterestingSourceRegion() argument
326 unsigned CaretColumns = CaretLine.size(); in selectInterestingSourceRegion()
335 assert(CaretLine.end() == in selectInterestingSourceRegion()
336 std::find_if(CaretLine.begin(), CaretLine.end(), in selectInterestingSourceRegion()
341 unsigned CaretStart = 0, CaretEnd = CaretLine.size(); in selectInterestingSourceRegion()
343 if (!isWhitespace(CaretLine[CaretStart])) in selectInterestingSourceRegion()
347 if (!isWhitespace(CaretLine[CaretEnd - 1])) in selectInterestingSourceRegion()
503 CaretLine.replace(0, CaretStart, front_space); in selectInterestingSourceRegion()
918 std::string &CaretLine, in highlightRange() argument
953 EndColNo = CaretLine.size(); in highlightRange()
989 if (CaretLine.size() < EndColNo) in highlightRange()
990 CaretLine.resize(EndColNo,' '); in highlightRange()
991 std::fill(CaretLine.begin()+StartColNo,CaretLine.begin()+EndColNo,'~'); in highlightRange()
1135 std::string CaretLine(sourceColMap.columns(), ' '); in emitSnippetAndCaret() local
1141 highlightRange(*I, LineNo, FID, sourceColMap, CaretLine, SM, LangOpts); in emitSnippetAndCaret()
1145 if (CaretLine.size()<ColNo+1) in emitSnippetAndCaret()
1146 CaretLine.resize(ColNo+1, ' '); in emitSnippetAndCaret()
1147 CaretLine[ColNo] = '^'; in emitSnippetAndCaret()
1158 selectInterestingSourceRegion(SourceLine, CaretLine, FixItInsertionLine, in emitSnippetAndCaret()
1167 CaretLine = ' ' + CaretLine; in emitSnippetAndCaret()
1171 while (CaretLine[CaretLine.size()-1] == ' ') in emitSnippetAndCaret()
1172 CaretLine.erase(CaretLine.end()-1); in emitSnippetAndCaret()
1179 OS << CaretLine << '\n'; in emitSnippetAndCaret()