diff options
Diffstat (limited to 'sources/shiboken2/ApiExtractor/clangparser/clangdebugutils.cpp')
-rw-r--r-- | sources/shiboken2/ApiExtractor/clangparser/clangdebugutils.cpp | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/sources/shiboken2/ApiExtractor/clangparser/clangdebugutils.cpp b/sources/shiboken2/ApiExtractor/clangparser/clangdebugutils.cpp index d6915daab..7123c22d8 100644 --- a/sources/shiboken2/ApiExtractor/clangparser/clangdebugutils.cpp +++ b/sources/shiboken2/ApiExtractor/clangparser/clangdebugutils.cpp @@ -147,4 +147,16 @@ QDebug operator<<(QDebug s, const CXSourceLocation &location) return s; } +QDebug operator<<(QDebug s, const std::string_view &v) +{ + QDebugStateSaver saver(s); + s.nospace(); + s.noquote(); + s << '"'; + for (auto c : v) + s << c; + s << '"'; + return s; +} + #endif // !QT_NO_DEBUG_STREAM |