fix(clang-tidy/analyzer): resolving false positives
Lint & Format (JS/TS) / lint-format (pull_request) Successful in 9s
Python / lint-format (pull_request) Successful in 26s
Python / test (pull_request) Successful in 47s
Lint & Format (Rust) / lint-format (pull_request) Successful in 1m54s
C++ / build (pull_request) Successful in 3m25s

This commit is contained in:
2026-06-30 03:17:52 +02:00
parent 944694966b
commit 728bdc85bc
6 changed files with 11 additions and 0 deletions
+5
View File
@@ -2,6 +2,11 @@
Checks: > Checks: >
-*, -*,
bugprone-*, bugprone-*,
-readability-redundant-inline-specifier
-bugprone-throwing-static-initialization
-bugprone-invalid-enum-default-initialization
-bugprone-suspicious-include
-bugprone-branch-clone
-bugprone-easily-swappable-parameters, -bugprone-easily-swappable-parameters,
-bugprone-narrowing-conversions, -bugprone-narrowing-conversions,
-bugprone-implicit-widening-of-multiplication-result, -bugprone-implicit-widening-of-multiplication-result,
@@ -170,6 +170,7 @@ void CachingImageManager::updateSource(const QString& path) {
}); });
watcher->setFuture(future); watcher->setFuture(future);
// NOLINTNEXTLINE(clang-analyzer-cplusplus.NewDeleteLeaks)
} }
QUrl CachingImageManager::cachePath() const { QUrl CachingImageManager::cachePath() const {
@@ -258,6 +258,7 @@ void FileSystemModel::watchDirIfRecursive(const QString& path) {
}); });
watcher->setFuture(future); watcher->setFuture(future);
} }
// NOLINTNEXTLINE(clang-analyzer-cplusplus.NewDeleteLeaks)
} }
void FileSystemModel::update() { void FileSystemModel::update() {
@@ -405,6 +406,7 @@ void FileSystemModel::updateEntriesForDir(const QString& dir) {
}); });
watcher->setFuture(future); watcher->setFuture(future);
// NOLINTNEXTLINE(clang-analyzer-cplusplus.NewDeleteLeaks)
} }
void FileSystemModel::applyChanges( void FileSystemModel::applyChanges(
@@ -253,6 +253,7 @@ AudioCollector::AudioCollector(QObject* parent)
, m_writeBuffer(&m_buffer2) {} , m_writeBuffer(&m_buffer2) {}
AudioCollector::~AudioCollector() { AudioCollector::~AudioCollector() {
// NOLINTNEXTLINE(clang-analyzer-optin.cplusplus.VirtualCall)
stop(); stop();
} }
+1
View File
@@ -9,6 +9,7 @@ namespace ZShell {
AppEntry::AppEntry(QObject* entry, unsigned int frequency, QObject* parent) AppEntry::AppEntry(QObject* entry, unsigned int frequency, QObject* parent)
: QObject(parent), m_entry(entry), m_frequency(frequency) { : QObject(parent), m_entry(entry), m_frequency(frequency) {
const auto mo = m_entry->metaObject(); const auto mo = m_entry->metaObject();
// NOLINTNEXTLINE(clang-analyzer-optin.cplusplus.VirtualCall)
const auto tmo = metaObject(); const auto tmo = metaObject();
for (const auto& prop : for (const auto& prop :
+1
View File
@@ -6,6 +6,7 @@ namespace ZShell {
Qalculator::Qalculator(QObject* parent) : QObject(parent) { Qalculator::Qalculator(QObject* parent) : QObject(parent) {
if (!CALCULATOR) { if (!CALCULATOR) {
// NOLINTNEXTLINE(clang-analyzer-cplusplus.NewDeleteLeaks)
new Calculator(); new Calculator();
CALCULATOR->loadExchangeRates(); CALCULATOR->loadExchangeRates();
CALCULATOR->loadGlobalDefinitions(); CALCULATOR->loadGlobalDefinitions();