Home
last modified time | relevance | path

Searched refs:CaretLine (Results 1 – 2 of 2) sorted by relevance

/llvm-project-15.0.7/clang/lib/Frontend/
H A DTextDiagnostic.cpp335 assert(CaretLine.end() == in selectInterestingSourceRegion()
1015 EndColNo = CaretLine.size(); in highlightRange()
1054 if (CaretLine.size() < EndColNo) in highlightRange()
1055 CaretLine.resize(EndColNo,' '); in highlightRange()
1056 std::fill(CaretLine.begin()+StartColNo,CaretLine.begin()+EndColNo,'~'); in highlightRange()
1224 CaretLine[CaretColNo] = '^'; in emitSnippetAndCaret()
1243 CaretLine = ' ' + CaretLine; in emitSnippetAndCaret()
1247 while (!CaretLine.empty() && CaretLine[CaretLine.size() - 1] == ' ') in emitSnippetAndCaret()
1248 CaretLine.erase(CaretLine.end() - 1); in emitSnippetAndCaret()
1253 if (!CaretLine.empty()) { in emitSnippetAndCaret()
[all …]
/llvm-project-15.0.7/llvm/lib/Support/
H A DSourceMgr.cpp450 std::fill(&CaretLine[FirstCol], &CaretLine[LastCol], '~'); in buildFixItLine()
539 std::string CaretLine(NumColumns + 1, ' '); in print() local
543 std::fill(&CaretLine[R.first], in print()
544 &CaretLine[std::min((size_t)R.second, CaretLine.size())], '~'); in print()
550 CaretLine, FixItInsertionLine, FixIts, in print()
555 CaretLine[ColumnNo] = '^'; in print()
557 CaretLine[NumColumns] = '^'; in print()
562 CaretLine.erase(CaretLine.find_last_not_of(' ') + 1); in print()
571 for (unsigned i = 0, e = CaretLine.size(), OutCol = 0; i != e; ++i) { in print()
573 S << CaretLine[i]; in print()
[all …]