Skip to content

Commit e108bd8

Browse files
committed
Remove suppressions for some clang-tidy rules
1 parent 135c314 commit e108bd8

File tree

4 files changed

+3
-10
lines changed

4 files changed

+3
-10
lines changed

.clang-tidy

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -11,23 +11,16 @@ Checks: >
1111
portability-*,
1212
readability-*,
1313
-*-noexcept-move-*,
14-
-*-use-default-member-init,
1514
-*-use-after-move,
16-
-bugprone-easily-swappable-parameters,
1715
-bugprone-empty-catch,
18-
-cppcoreguidelines-avoid-do-while,
19-
-cppcoreguidelines-init-variables,
2016
-cppcoreguidelines-owning-memory,
21-
-cppcoreguidelines-pro-type-member-init,
2217
-cppcoreguidelines-pro-type-vararg,
2318
-misc-const-correctness,
2419
-misc-include-cleaner,
2520
-modernize-deprecated-headers,
26-
-modernize-return-braced-init-list,
2721
-modernize-use-auto,
2822
-modernize-use-nodiscard,
2923
-modernize-use-trailing-return-type,
30-
-readability-named-parameter,
3124
-readability-redundant-declaration
3225
3326
CheckOptions:

src/get_native_handle.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
namespace tmp::detail {
1717

1818
/// Returns an implementation-defined handle to the file
19-
/// @param[in] file The file to get the native handle for
19+
/// @param file The file to get the native handle for
2020
/// @returns The underlying implementation-defined handle
2121
file::native_handle_type get_native_handle(std::FILE* file) noexcept {
2222
#ifdef _WIN32

tests/directory.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ TEST(directory, move_constructor) {
115115
directory fst = directory();
116116
directory snd = directory(std::move(fst));
117117

118-
fst.~directory(); // NOLINT(*-use-after-move)
118+
fst.~directory();
119119

120120
EXPECT_FALSE(snd.path().empty());
121121
EXPECT_TRUE(fs::exists(snd));

tests/file.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ template<class charT> class file : public testing::Test {
5858

5959
/// Name generator for typed test suite
6060
struct name_generator {
61-
template<typename T> static std::string GetName(int) {
61+
template<typename T> static std::string GetName(int /*unused*/) {
6262
return typeid(T).name();
6363
}
6464
};

0 commit comments

Comments
 (0)