diff --git a/.clang-format b/.clang-format index f4cd68ae4..8c5619f35 100644 --- a/.clang-format +++ b/.clang-format @@ -54,6 +54,7 @@ IncludeCategories: IndentCaseLabels: false IndentWidth: 4 IndentWrappedFunctionNames: false +InsertNewlineAtEOF: true KeepEmptyLinesAtTheStartOfBlocks: true MacroBlockBegin: '' MacroBlockEnd: '' diff --git a/src/browser/BrowserPasskeysConfirmationDialog.cpp b/src/browser/BrowserPasskeysConfirmationDialog.cpp index 50bdfbc49..aa0dcc532 100644 --- a/src/browser/BrowserPasskeysConfirmationDialog.cpp +++ b/src/browser/BrowserPasskeysConfirmationDialog.cpp @@ -155,4 +155,4 @@ void BrowserPasskeysConfirmationDialog::updateEntriesToTable(const QList m_ui->credentialsTable->resizeColumnsToContents(); m_ui->credentialsTable->horizontalHeader()->setStretchLastSection(true); -} \ No newline at end of file +} diff --git a/src/gui/ApplicationSettingsWidget.cpp b/src/gui/ApplicationSettingsWidget.cpp index 2e925c4f5..8d53d6f0f 100644 --- a/src/gui/ApplicationSettingsWidget.cpp +++ b/src/gui/ApplicationSettingsWidget.cpp @@ -626,4 +626,4 @@ void ApplicationSettingsWidget::selectBackupDirectory() m_generalUi->backupFilePath->setText( QDir(backupDirectory).filePath(config()->getDefault(Config::BackupFilePathPattern).toString())); } -} \ No newline at end of file +} diff --git a/src/gui/IconDownloader.h b/src/gui/IconDownloader.h index 54d9295e8..8d32f787f 100644 --- a/src/gui/IconDownloader.h +++ b/src/gui/IconDownloader.h @@ -60,4 +60,4 @@ private: friend class TestIconDownloader; }; -#endif // KEEPASSXC_ICONDOWNLOADER_H \ No newline at end of file +#endif // KEEPASSXC_ICONDOWNLOADER_H diff --git a/src/gui/wizard/NewDatabaseWizardPageMetaData.cpp b/src/gui/wizard/NewDatabaseWizardPageMetaData.cpp index 309895703..4be680427 100644 --- a/src/gui/wizard/NewDatabaseWizardPageMetaData.cpp +++ b/src/gui/wizard/NewDatabaseWizardPageMetaData.cpp @@ -27,4 +27,4 @@ NewDatabaseWizardPageMetaData::NewDatabaseWizardPageMetaData(QWidget* parent) setSubTitle(tr("Please fill in the display name and an optional description for your new database:")); } -NewDatabaseWizardPageMetaData::~NewDatabaseWizardPageMetaData() = default; \ No newline at end of file +NewDatabaseWizardPageMetaData::~NewDatabaseWizardPageMetaData() = default; diff --git a/src/streams/HashingStream.h b/src/streams/HashingStream.h index 5f8c2ac3e..f35374728 100644 --- a/src/streams/HashingStream.h +++ b/src/streams/HashingStream.h @@ -49,4 +49,4 @@ protected: qint64 m_sizeStreamed; }; -#endif // KEEPASSX_HASHINGSTREAM_H \ No newline at end of file +#endif // KEEPASSX_HASHINGSTREAM_H diff --git a/tests/gui/attachments/TestAttachmentsGui.cpp b/tests/gui/attachments/TestAttachmentsGui.cpp index c29626df5..b0f29dfc2 100644 --- a/tests/gui/attachments/TestAttachmentsGui.cpp +++ b/tests/gui/attachments/TestAttachmentsGui.cpp @@ -43,4 +43,4 @@ int main(int argc, char* argv[]) result |= QTest::qExec(&attachmentWidget, argc, argv); return result; -} \ No newline at end of file +}