Lines Matching refs:loc
93 bool Location::operator<(const Location& loc) const { in operator <()
94 CHECK(inSameFile(*this, loc)) << "Cannot compare locations in different files"; in operator <()
95 CHECK(!intersect(*this, loc)); in operator <()
96 return mEnd < loc.mBegin; in operator <()
99 std::ostream& operator<<(std::ostream& ostr, const Location& loc) { in operator <<() argument
100 Position last = Position(loc.end().filename(), loc.end().line(), in operator <<()
101 std::max<size_t>(1u, loc.end().column() - 1)); in operator <<()
102 ostr << loc.begin(); in operator <<()
103 if (loc.begin().filename() != last.filename()) { in operator <<()
105 } else if (loc.begin().line() != last.line()) { in operator <<()
107 } else if (loc.begin().column() != last.column()) { in operator <<()