diff options
author | David Robillard <d@drobilla.net> | 2020-11-12 01:43:47 +0100 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2020-11-12 01:47:44 +0100 |
commit | 0495c381d065713852ee9e61df544ba531223824 (patch) | |
tree | 636027d82ab20f9948d75b92b2e63711159cb875 /include | |
parent | f8d95542492a8a960853c0cb0b855d2473c941a0 (diff) | |
download | raul-0495c381d065713852ee9e61df544ba531223824.tar.gz raul-0495c381d065713852ee9e61df544ba531223824.tar.bz2 raul-0495c381d065713852ee9e61df544ba531223824.zip |
Use separate clang-tidy configurations for headers and tests
Diffstat (limited to 'include')
-rw-r--r-- | include/.clang-tidy | 28 | ||||
-rw-r--r-- | include/raul/Socket.hpp | 4 |
2 files changed, 30 insertions, 2 deletions
diff --git a/include/.clang-tidy b/include/.clang-tidy new file mode 100644 index 0000000..3ed1d44 --- /dev/null +++ b/include/.clang-tidy @@ -0,0 +1,28 @@ +Checks: > + *, + -*-avoid-c-arrays, + -*-magic-numbers, + -*-no-malloc, + -*-special-member-functions, + -*-uppercase-literal-suffix, + -android-cloexec-accept, + -bugprone-branch-clone, + -clang-diagnostic-unused-macros, + -cppcoreguidelines-owning-memory, + -cppcoreguidelines-pro-bounds-array-to-pointer-decay, + -cppcoreguidelines-pro-bounds-pointer-arithmetic, + -cppcoreguidelines-pro-type-const-cast, + -cppcoreguidelines-pro-type-reinterpret-cast, + -fuchsia-default-arguments-calls, + -fuchsia-default-arguments-declarations, + -fuchsia-overloaded-operator, + -google-runtime-int, + -hicpp-no-array-decay, + -modernize-use-trailing-return-type, + -readability-else-after-return, + -readability-implicit-bool-conversion, +WarningsAsErrors: '*' +HeaderFilterRegex: '.*' +FormatStyle: file + + diff --git a/include/raul/Socket.hpp b/include/raul/Socket.hpp index ed5204f..96ce597 100644 --- a/include/raul/Socket.hpp +++ b/include/raul/Socket.hpp @@ -203,7 +203,7 @@ Socket::connect(const std::string& uri) } inline bool -Socket::listen() +Socket::listen() // NOLINT(readability-make-member-function-const) { return ::listen(_sock, 64) != -1; } @@ -246,7 +246,7 @@ Socket::close() } inline void -Socket::shutdown() +Socket::shutdown() // NOLINT(readability-make-member-function-const) { if (_sock != -1) { ::shutdown(_sock, SHUT_RDWR); |