Home
last modified time | relevance | path

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

/external/llvm/lib/Support/
DSourceMgr.cpp243 static void buildFixItLine(std::string &CaretLine, std::string &FixItLine, in buildFixItLine() argument
309 std::fill(&CaretLine[FirstCol], &CaretLine[LastCol], '~'); in buildFixItLine()
406 std::string CaretLine(NumColumns+1, ' '); in print() local
411 std::fill(&CaretLine[R.first], in print()
412 &CaretLine[std::min((size_t)R.second, CaretLine.size())], in print()
419 buildFixItLine(CaretLine, FixItInsertionLine, FixIts, in print()
425 CaretLine[ColumnNo] = '^'; in print()
427 CaretLine[NumColumns] = '^'; in print()
432 CaretLine.erase(CaretLine.find_last_not_of(' ')+1); in print()
440 for (unsigned i = 0, e = CaretLine.size(), OutCol = 0; i != e; ++i) { in print()
[all …]
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Support/
DSourceMgr.cpp270 static void buildFixItLine(std::string &CaretLine, std::string &FixItLine, in buildFixItLine() argument
336 std::fill(&CaretLine[FirstCol], &CaretLine[LastCol], '~'); in buildFixItLine()
426 std::string CaretLine(NumColumns+1, ' '); in print() local
431 std::fill(&CaretLine[R.first], in print()
432 &CaretLine[std::min((size_t)R.second, CaretLine.size())], in print()
439 buildFixItLine(CaretLine, FixItInsertionLine, FixIts, in print()
445 CaretLine[ColumnNo] = '^'; in print()
447 CaretLine[NumColumns] = '^'; in print()
452 CaretLine.erase(CaretLine.find_last_not_of(' ')+1); in print()
460 for (unsigned i = 0, e = CaretLine.size(), OutCol = 0; i != e; ++i) { in print()
[all …]
/external/clang/lib/Frontend/
DTextDiagnostic.cpp322 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()
[all …]
/external/llvm-project/clang/lib/Frontend/
DTextDiagnostic.cpp322 std::string &CaretLine, in selectInterestingSourceRegion() argument
326 unsigned CaretColumns = CaretLine.size(); in selectInterestingSourceRegion()
335 assert(CaretLine.end() == in selectInterestingSourceRegion()
336 llvm::find_if(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()
502 CaretLine.replace(0, CaretStart, front_space); in selectInterestingSourceRegion()
990 std::string &CaretLine, in highlightRange() argument
1025 EndColNo = CaretLine.size(); in highlightRange()
[all …]
/external/llvm-project/llvm/lib/Support/
DSourceMgr.cpp378 static void buildFixItLine(std::string &CaretLine, std::string &FixItLine, in buildFixItLine() argument
445 std::fill(&CaretLine[FirstCol], &CaretLine[LastCol], '~'); in buildFixItLine()
534 std::string CaretLine(NumColumns + 1, ' '); in print() local
539 std::fill(&CaretLine[R.first], in print()
540 &CaretLine[std::min((size_t)R.second, CaretLine.size())], '~'); in print()
547 CaretLine, FixItInsertionLine, FixIts, in print()
552 CaretLine[ColumnNo] = '^'; in print()
554 CaretLine[NumColumns] = '^'; in print()
559 CaretLine.erase(CaretLine.find_last_not_of(' ') + 1); in print()
568 for (unsigned i = 0, e = CaretLine.size(), OutCol = 0; i != e; ++i) { in print()
[all …]