summaryrefslogtreecommitdiff
path: root/src/tools/clangbackend/ipcsource/highlightingmark.cpp
diff options
context:
space:
mode:
authorMarco Bubke <marco.bubke@qt.io>2017-06-12 20:03:34 +0200
committerMarco Bubke <marco.bubke@qt.io>2017-06-14 08:46:21 +0000
commit3fb25b28e39852fb393ffe1c9c43ee649ba2902a (patch)
treea4eb8b7750cc542c10b1978cbf38914402feb0dc /src/tools/clangbackend/ipcsource/highlightingmark.cpp
parentf97875a87038c63b7de9c2b8ad3a0c28045b5857 (diff)
downloadqt-creator-3fb25b28e39852fb393ffe1c9c43ee649ba2902a.tar.gz
Clang: Cleanup IPC code
Change-Id: I29571801b4093337e2c7cc1eec51cfcd07b3bdc5 Reviewed-by: Ivan Donchevskii <ivan.donchevskii@qt.io> Reviewed-by: Nikolai Kosjar <nikolai.kosjar@qt.io>
Diffstat (limited to 'src/tools/clangbackend/ipcsource/highlightingmark.cpp')
-rw-r--r--src/tools/clangbackend/ipcsource/highlightingmark.cpp14
1 files changed, 8 insertions, 6 deletions
diff --git a/src/tools/clangbackend/ipcsource/highlightingmark.cpp b/src/tools/clangbackend/ipcsource/highlightingmark.cpp
index b448b45f11..d3d6628237 100644
--- a/src/tools/clangbackend/ipcsource/highlightingmark.cpp
+++ b/src/tools/clangbackend/ipcsource/highlightingmark.cpp
@@ -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