forked from qt-creator/qt-creator
UnitTests: Refactor printing
Move standard printing functions to extra header. Change-Id: Ib032047235297dfe3ac0bcdbd39c353493f3ae0d Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
This commit is contained in:
@@ -350,24 +350,4 @@ std::ostream &operator<<(std::ostream &out, const Diagnostic &diag);
|
||||
} // namespace Internal
|
||||
} // namespace CppTools
|
||||
|
||||
namespace std {
|
||||
template<typename T>
|
||||
ostream &operator<<(ostream &out, const vector<T> &vector)
|
||||
{
|
||||
out << "[";
|
||||
|
||||
for (auto current = vector.begin(); current != vector.end(); ++current) {
|
||||
out << *current;
|
||||
|
||||
if (std::next(current) != vector.end())
|
||||
out << ", ";
|
||||
}
|
||||
|
||||
out << "]";
|
||||
|
||||
return out;
|
||||
}
|
||||
|
||||
} // namespace std
|
||||
|
||||
void setFilePathCache(ClangBackEnd::FilePathCaching *filePathCache);
|
||||
|
||||
Reference in New Issue
Block a user