build: update clang tooling and reformat

This commit is contained in:
outfoxxed 2025-11-15 02:34:43 -08:00
parent 1552aca3df
commit 0a7dcf30ea
No known key found for this signature in database
GPG key ID: 4C88A185FB89301E
31 changed files with 124 additions and 80 deletions

View file

@ -22,8 +22,8 @@ class PixmapCacheIconEngine: public QIconEngine {
QIcon::Mode /*unused*/,
QIcon::State /*unused*/
) override {
qFatal(
) << "Unexpected icon paint request bypassed pixmap method. Please report this as a bug.";
qFatal()
<< "Unexpected icon paint request bypassed pixmap method. Please report this as a bug.";
}
QPixmap pixmap(const QSize& size, QIcon::Mode /*unused*/, QIcon::State /*unused*/) override {

View file

@ -361,7 +361,8 @@ void ThreadLogging::initFs() {
auto* runDir = QsPaths::instance()->instanceRunDir();
if (!runDir) {
qCCritical(logLogging
qCCritical(
logLogging
) << "Could not start filesystem logging as the runtime directory could not be created.";
return;
}
@ -372,7 +373,8 @@ void ThreadLogging::initFs() {
auto* detailedFile = new QFile(detailedPath);
if (!file->open(QFile::ReadWrite | QFile::Truncate)) {
qCCritical(logLogging
qCCritical(
logLogging
) << "Could not start filesystem logger as the log file could not be created:"
<< path;
delete file;
@ -383,7 +385,8 @@ void ThreadLogging::initFs() {
// buffered by WriteBuffer
if (!detailedFile->open(QFile::ReadWrite | QFile::Truncate | QFile::Unbuffered)) {
qCCritical(logLogging
qCCritical(
logLogging
) << "Could not start detailed filesystem logger as the log file could not be created:"
<< detailedPath;
delete detailedFile;

View file

@ -1,7 +1,7 @@
#include "model.hpp"
#include <qhash.h>
#include <qbytearray.h>
#include <qhash.h>
#include <qnamespace.h>
QHash<int, QByteArray> UntypedObjectModel::roleNames() const {

View file

@ -175,7 +175,8 @@ void QsPaths::linkRunDir() {
auto* shellDir = this->shellRunDir();
if (!shellDir) {
qCCritical(logPaths
qCCritical(
logPaths
) << "Could not create by-id symlink as the shell runtime path could not be created.";
} else {
auto shellPath = shellDir->filePath(runDir->dirName());
@ -378,7 +379,8 @@ void QsPaths::createLock() {
qCDebug(logPaths) << "Created instance lock at" << path;
}
} else {
qCCritical(logPaths
qCCritical(
logPaths
) << "Could not create instance lock, as the instance runtime directory could not be created.";
}
}

View file

@ -38,7 +38,8 @@ void QmlScanner::scanDir(const QDir& dir) {
for (auto& name: dir.entryList(QDir::Files | QDir::NoDotAndDotDot)) {
if (name == "qmldir") {
qCDebug(logQmlScanner
qCDebug(
logQmlScanner
) << "Found qmldir file, qmldir synthesization will be disabled for directory"
<< path;
seenQmldir = true;

View file

@ -72,8 +72,8 @@ void ScriptModel::updateValuesUnique(const QVariantList& newValues) {
do {
++iter;
} while (iter != this->mValues.end()
&& std::find_if(newIter, newValues.end(), eqPredicate(*iter)) == newValues.end()
);
&& std::find_if(newIter, newValues.end(), eqPredicate(*iter))
== newValues.end());
auto index = static_cast<qint32>(std::distance(this->mValues.begin(), iter));
auto startIndex = static_cast<qint32>(std::distance(this->mValues.begin(), startIter));