forked from qt-creator/qt-creator
Clang: Cleanup more PrintTo functions
Change-Id: If1389462479ae10b067904f05cf785c3d8fb9638 Reviewed-by: David Schulz <david.schulz@qt.io> Reviewed-by: Nikolai Kosjar <nikolai.kosjar@qt.io>
This commit is contained in:
@@ -100,13 +100,14 @@ bool operator==(const SourceRange &first, const SourceRange &second)
|
||||
return clang_equalRanges(first.cxSourceRange, second.cxSourceRange);
|
||||
}
|
||||
|
||||
void PrintTo(const SourceRange &sourceRange, ::std::ostream* os)
|
||||
std::ostream &operator<<(std::ostream &os, const SourceRange &sourceRange)
|
||||
{
|
||||
*os << "[";
|
||||
PrintTo(sourceRange.start(), os);
|
||||
*os << ", ";
|
||||
PrintTo(sourceRange.end(), os);
|
||||
*os << "]";
|
||||
os << "["
|
||||
<< sourceRange.start() << ", "
|
||||
<< sourceRange.end()
|
||||
<< "]";
|
||||
|
||||
return os;
|
||||
}
|
||||
} // namespace ClangBackEnd
|
||||
|
||||
|
||||
Reference in New Issue
Block a user