diff --git a/share/qtcreator/debugger/creatortypes.py b/share/qtcreator/debugger/creatortypes.py index 6aa41256a51..85abfd23d6c 100644 --- a/share/qtcreator/debugger/creatortypes.py +++ b/share/qtcreator/debugger/creatortypes.py @@ -228,3 +228,7 @@ def qdump__ProKey(d, value): qdump__ProString(d, value) d.putBetterType(value.type) +def qdump__Core__GeneratedFile(d, value): + d.putStringValue(value["m_d"]["d"]["path"]) + d.putPlainChildren(value) + diff --git a/share/qtcreator/debugger/qttypes.py b/share/qtcreator/debugger/qttypes.py index 8a940ff49f5..bd4ddda2fa5 100644 --- a/share/qtcreator/debugger/qttypes.py +++ b/share/qtcreator/debugger/qttypes.py @@ -70,7 +70,7 @@ def qdump__QByteArray(d, value): if d.isExpanded(): d.putArrayData(data, size, d.charType()) -def qdump__QByteArrayData(d, value): +def qdump__QArrayData(d, value): data, size, alloc = d.byteArrayDataHelper(d.addressOf(value)) d.check(alloc == 0 or (0 <= size and size <= alloc and alloc <= 100000000)) d.putValue(d.readMemory(data, size), "latin1") @@ -80,6 +80,9 @@ def qdump__QByteArrayData(d, value): d.putIntItem("size", size) d.putIntItem("alloc", alloc) +def qdump__QByteArrayData(d, value): + qdump__QArrayData(d, value) + def qdump__QBitArray(d, value): data, basize, alloc = d.byteArrayDataHelper(d.extractPointer(value["d"])) diff --git a/src/libs/3rdparty/botan/botan.cpp b/src/libs/3rdparty/botan/botan.cpp index e6a5f228d98..f5776009038 100644 --- a/src/libs/3rdparty/botan/botan.cpp +++ b/src/libs/3rdparty/botan/botan.cpp @@ -379,7 +379,7 @@ class Mutex * Unlock the mutex */ virtual void unlock() = 0; - virtual ~Mutex() {} + virtual ~Mutex() Q_DECL_NOEXCEPT_EXPR(false) {} }; /** @@ -3296,7 +3296,7 @@ void* MemoryMapping_Allocator::alloc_block(size_t n) throw MemoryMapping_Failed("Could not unlink temporary file"); } - ~TemporaryFile() + ~TemporaryFile() Q_DECL_NOEXCEPT_EXPR(false) { /* * We can safely close here, because post-mmap the file diff --git a/src/libs/3rdparty/botan/botan.h b/src/libs/3rdparty/botan/botan.h index 2caa4a352db..4f36816f991 100644 --- a/src/libs/3rdparty/botan/botan.h +++ b/src/libs/3rdparty/botan/botan.h @@ -390,7 +390,7 @@ class BOTAN_DLL Allocator */ virtual void destroy() {} - virtual ~Allocator() {} + virtual ~Allocator() Q_DECL_NOEXCEPT_EXPR(false) {} }; } diff --git a/src/plugins/beautifier/clangformat/clangformat.cpp b/src/plugins/beautifier/clangformat/clangformat.cpp index e439d0b91d7..556694379d7 100644 --- a/src/plugins/beautifier/clangformat/clangformat.cpp +++ b/src/plugins/beautifier/clangformat/clangformat.cpp @@ -128,7 +128,7 @@ Command ClangFormat::command(int offset, int length) const if (m_settings->usePredefinedStyle()) { command.addOption("-style=" + m_settings->predefinedStyle()); - command.addOption("-assume-filename=%filename"); + command.addOption("-assume-filename=%file"); } else { command.addOption("-style=file"); const QString path = diff --git a/src/plugins/texteditor/texteditor.cpp b/src/plugins/texteditor/texteditor.cpp index d9e03133b88..dc0b3eaa28b 100644 --- a/src/plugins/texteditor/texteditor.cpp +++ b/src/plugins/texteditor/texteditor.cpp @@ -794,17 +794,17 @@ static void printPage(int index, QPainter *painter, const QTextDocument *doc, painter->save(); painter->translate(body.left(), body.top() - (index - 1) * body.height()); - QRectF view(0, (index - 1) * body.height(), body.width(), body.height()); + const QRectF view(0, (index - 1) * body.height(), body.width(), body.height()); QAbstractTextDocumentLayout *layout = doc->documentLayout(); QAbstractTextDocumentLayout::PaintContext ctx; painter->setFont(QFont(doc->defaultFont())); - QRectF box = titleBox.translated(0, view.top()); - int dpix = painter->device()->logicalDpiX(); - int dpiy = painter->device()->logicalDpiY(); - int mx = 5 * dpix / 72.0; - int my = 2 * dpiy / 72.0; + const QRectF box = titleBox.translated(0, view.top()); + const int dpix = painter->device()->logicalDpiX(); + const int dpiy = painter->device()->logicalDpiY(); + const int mx = 5 * dpix / 72.0; + const int my = 2 * dpiy / 72.0; painter->fillRect(box.adjusted(-mx, -my, mx, my), QColor(210, 210, 210)); if (!title.isEmpty()) painter->drawText(box, Qt::AlignCenter, title); diff --git a/src/plugins/valgrind/memchecktool.cpp b/src/plugins/valgrind/memchecktool.cpp index a076e9bebaa..b3b378cc4bd 100644 --- a/src/plugins/valgrind/memchecktool.cpp +++ b/src/plugins/valgrind/memchecktool.cpp @@ -157,7 +157,7 @@ void MemcheckErrorFilterProxyModel::setAcceptedKinds(const QList &acceptedK { if (m_acceptedKinds != acceptedKinds) { m_acceptedKinds = acceptedKinds; - invalidate(); + invalidateFilter(); } } @@ -165,7 +165,7 @@ void MemcheckErrorFilterProxyModel::setFilterExternalIssues(bool filter) { if (m_filterExternalIssues != filter) { m_filterExternalIssues = filter; - invalidate(); + invalidateFilter(); } }