Skip to content

Commit

Permalink
Fix clang-tidy-19 errors
Browse files Browse the repository at this point in the history
  • Loading branch information
ChrisThrasher committed Sep 25, 2024
1 parent 1f11e91 commit c8cf845
Show file tree
Hide file tree
Showing 24 changed files with 287 additions and 306 deletions.
4 changes: 4 additions & 0 deletions .clang-tidy
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ Checks: >
-bugprone-narrowing-conversions,
-bugprone-signed-char-misuse,
-bugprone-string-integer-assignment,
-bugprone-suspicious-stringview-data-usage,
-bugprone-switch-missing-default-case,
-bugprone-unchecked-optional-access,
-clang-analyzer-nullability.NullablePassedToNonnull,
Expand All @@ -27,6 +28,7 @@ Checks: >
-clang-analyzer-optin.osx.*,
-clang-analyzer-osx.*,
-clang-analyzer-unix.Malloc,
-clang-analyzer-unix.StdCLibraryFunctions,
-cppcoreguidelines-avoid-c-arrays,
-cppcoreguidelines-avoid-const-or-ref-data-members,
-cppcoreguidelines-avoid-do-while,
Expand Down Expand Up @@ -62,11 +64,13 @@ Checks: >
-readability-avoid-nested-conditional-operator,
-readability-braces-around-statements,
-readability-convert-member-functions-to-static,
-readability-enum-initial-value,
-readability-function-cognitive-complexity,
-readability-function-size,
-readability-identifier-length,
-readability-implicit-bool-conversion,
-readability-magic-numbers,
-readability-math-missing-parentheses,
-readability-named-parameter,
-readability-redundant-casting,
-readability-uppercase-literal-suffix,
Expand Down
3 changes: 3 additions & 0 deletions examples/ftp/Ftp.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@
#include <optional>


namespace
{
////////////////////////////////////////////////////////////
/// Print a FTP response into a standard output stream
///
Expand All @@ -15,6 +17,7 @@ std::ostream& operator<<(std::ostream& stream, const sf::Ftp::Response& response
{
return stream << static_cast<int>(response.getStatus()) << response.getMessage();
}
} // namespace


////////////////////////////////////////////////////////////
Expand Down
Loading

0 comments on commit c8cf845

Please sign in to comment.