diff options
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); |