Clang: Cleanup IPC code

Change-Id: I29571801b4093337e2c7cc1eec51cfcd07b3bdc5
Reviewed-by: Ivan Donchevskii <ivan.donchevskii@qt.io>
Reviewed-by: Nikolai Kosjar <nikolai.kosjar@qt.io>
This commit is contained in:
Marco Bubke
2017-06-12 20:03:34 +02:00
parent f97875a870
commit 3fb25b28e3
106 changed files with 1207 additions and 1211 deletions

View File

@@ -422,13 +422,15 @@ void HighlightingMark::collectKinds(CXTranslationUnit cxTranslationUnit,
}
}
void PrintTo(const HighlightingMark &information, ::std::ostream *os)
std::ostream &operator<<(std::ostream &os, const HighlightingMark& highlightingMark)
{
*os << "type: ";
PrintTo(information.types, os);
*os << " line: " << information.line
<< " column: " << information.column
<< " length: " << information.length;
os << "(type: " << highlightingMark.types << ", "
<< " line: " << highlightingMark.line << ", "
<< " column: " << highlightingMark.column << ", "
<< " length: " << highlightingMark.length
<< ")";
return os;
}
} // namespace ClangBackEnd