Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .clang-tidy
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ Checks: '*,-abseil-*,-altera-*,-android-cloexec-*,-boost-use-ranges,-bugprone-ch
# Readability is a matter of opinion here
#
#WarningsAsErrors: '*'
HeaderFilterRegex: '\/src\/'
HeaderFilterRegex: '\/(src|tests)\/'
CheckOptions:
- key: cppcoreguidelines-special-member-functions.AllowSoleDefaultDtor
value: true
Expand Down
1 change: 1 addition & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -286,6 +286,7 @@ if (CLANG_TIDY)

add_custom_target(clang-tidy
${CLANG_TIDY}
--config-file ${CMAKE_SOURCE_DIR}/.clang-tidy
-p ${CMAKE_BINARY_DIR}
${CT_CHECK_FILES}
)
Expand Down
6 changes: 6 additions & 0 deletions tests/common-cleanup.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,12 @@ class file_t
}
}

file_t(file_t const &) = delete;
file_t &operator=(file_t const &) = delete;

file_t(file_t &&) = delete;
file_t &operator=(file_t const &&) = delete;

~file_t() noexcept { delete_file(true); }

private:
Expand Down
3 changes: 3 additions & 0 deletions tests/common-pg.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -132,6 +132,9 @@ class tempdb_t
tempdb_t(tempdb_t &&) = delete;
tempdb_t &operator=(tempdb_t const &&) = delete;

// We want to terminate the program if there is an exception thrown inside
// the destructor.
// NOLINTNEXTLINE(bugprone-exception-escape)
~tempdb_t() noexcept
{
if (m_db_name.empty()) {
Expand Down