diff options
author | Marco Bubke <marco.bubke@theqtcompany.com> | 2015-08-31 12:40:14 +0200 |
---|---|---|
committer | Marco Bubke <marco.bubke@theqtcompany.com> | 2015-08-31 15:00:07 +0000 |
commit | f2b7371af1102f07b133740d6df270e7f2716c5a (patch) | |
tree | 0c0c0d0ed5b0346d7e09c737f7387d471b0c6408 /src/libs/sqlite/utf8string.h | |
parent | aa6aaee51091e7ace8b9ddd61788b9d51d640f9b (diff) | |
download | qt-creator-f2b7371af1102f07b133740d6df270e7f2716c5a.tar.gz |
Clang: Reparse only if files are changed
Includes are now watched by a file watcher. Unsaved file changes are
watched too. If they are changed the translation units which depend on
them are set to a state which require a reparse. Later the diagnostics
of this units are collected and send back to creator.
Change-Id: I2fb5c7dd6644687f22399edd8d18edd6215c9505
Reviewed-by: Nikolai Kosjar <nikolai.kosjar@theqtcompany.com>
Diffstat (limited to 'src/libs/sqlite/utf8string.h')
-rw-r--r-- | src/libs/sqlite/utf8string.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/libs/sqlite/utf8string.h b/src/libs/sqlite/utf8string.h index d175d82f56..52c6f46758 100644 --- a/src/libs/sqlite/utf8string.h +++ b/src/libs/sqlite/utf8string.h @@ -54,6 +54,8 @@ class SQLITE_EXPORT Utf8String friend SQLITE_EXPORT QDataStream &operator<<(QDataStream &datastream, const Utf8String &text); friend SQLITE_EXPORT QDataStream &operator>>(QDataStream &datastream, Utf8String &text); + friend SQLITE_EXPORT uint qHash(const Utf8String &utf8String); + public: Utf8String() = default; explicit Utf8String(const char *utf8Text, int size); @@ -118,6 +120,8 @@ SQLITE_EXPORT QDataStream &operator>>(QDataStream &datastream, Utf8String &text) SQLITE_EXPORT QDebug operator<<(QDebug debug, const Utf8String &text); SQLITE_EXPORT void PrintTo(const Utf8String &text, ::std::ostream* os); +SQLITE_EXPORT uint qHash(const Utf8String &utf8String); + #define Utf8StringLiteral(str) Utf8String::fromByteArray(QByteArrayLiteral(str)) Q_DECLARE_METATYPE(Utf8String) |