Searched refs:CaretLine (Results 1 – 2 of 2) sorted by relevance
/freebsd/contrib/llvm-project/llvm/lib/Support/ |
H A D | SourceMgr.cpp | 389 static void buildFixItLine(std::string &CaretLine, std::string &FixItLine, in buildFixItLine() argument 454 std::fill(&CaretLine[FirstCol], &CaretLine[LastCol], '~'); in buildFixItLine() 543 std::string CaretLine(NumColumns + 1, ' '); in print() local 547 std::fill(&CaretLine[R.first], in print() 548 &CaretLine[std::min((size_t)R.second, CaretLine.size())], '~'); in print() 553 buildFixItLine(CaretLine, FixItInsertionLine, FixIts, in print() 558 CaretLine[ColumnNo] = '^'; in print() 560 CaretLine[NumColumns] = '^'; in print() 565 CaretLine.erase(CaretLine.find_last_not_of(' ') + 1); in print() 574 for (unsigned i = 0, e = CaretLine.size(), OutCol = 0; i != e; ++i) { in print() [all …]
|
/freebsd/contrib/llvm-project/clang/lib/Frontend/ |
H A D | TextDiagnostic.cpp | 323 std::string &CaretLine, in selectInterestingSourceRegion() argument 327 unsigned CaretColumns = CaretLine.size(); in selectInterestingSourceRegion() 336 assert(llvm::none_of(CaretLine, [](char c) { return c < ' ' || '~' < c; })); in selectInterestingSourceRegion() 340 unsigned CaretStart = 0, CaretEnd = CaretLine.size(); in selectInterestingSourceRegion() 342 if (!isWhitespace(CaretLine[CaretStart])) in selectInterestingSourceRegion() 346 if (!isWhitespace(CaretLine[CaretEnd - 1])) in selectInterestingSourceRegion() 500 CaretLine.replace(0, CaretStart, front_space); in selectInterestingSourceRegion() 970 std::string &CaretLine) { in highlightRange() argument 996 if (CaretLine.size() < EndColNo) in highlightRange() 997 CaretLine.resize(EndColNo, ' '); in highlightRange() [all …]
|