Skip to content

Commit

Permalink
Cleanup of clang-tidy issues, disable misc-include-cleaner
Browse files Browse the repository at this point in the history
  • Loading branch information
d-frey committed Nov 19, 2024
1 parent a8b7bf6 commit 79064fc
Show file tree
Hide file tree
Showing 10 changed files with 10 additions and 24 deletions.
1 change: 1 addition & 0 deletions .clang-tidy
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ Checks: >-
google-readability-casting,
llvm-*,
misc-*,
-misc-include-cleaner,
-misc-non-private-member-variables-in-classes,
-misc-unused-alias-decls,
modernize-*,
Expand Down
3 changes: 1 addition & 2 deletions src/test/pq/basic_datatypes.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,7 @@
#include "../getenv.hpp"
#include "../macros.hpp"

#include <tao/pq/binary.hpp>
#include <tao/pq/connection.hpp>
#include <tao/pq.hpp>

namespace
{
Expand Down
5 changes: 1 addition & 4 deletions src/test/pq/connection.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,7 @@
#include <string>
#include <tuple>

#include <tao/pq/binary.hpp>
#include <tao/pq/connection.hpp>
#include <tao/pq/internal/unreachable.hpp>
#include <tao/pq/poll.hpp>
#include <tao/pq.hpp>

namespace
{
Expand Down
4 changes: 1 addition & 3 deletions src/test/pq/connection_pool.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,7 @@
#include <memory>
#include <stdexcept>

#include <tao/pq/connection_pool.hpp>
#include <tao/pq/internal/unreachable.hpp>
#include <tao/pq/poll.hpp>
#include <tao/pq.hpp>

namespace
{
Expand Down
4 changes: 1 addition & 3 deletions src/test/pq/large_object.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,7 @@
#include <string_view>
#include <utility>

#include <tao/pq/binary.hpp>
#include <tao/pq/connection.hpp>
#include <tao/pq/large_object.hpp>
#include <tao/pq.hpp>

namespace
{
Expand Down
2 changes: 1 addition & 1 deletion src/test/pq/notifications.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
#include <exception>
#include <iostream>

#include <tao/pq/connection.hpp>
#include <tao/pq.hpp>

#if defined( _WIN32 )
#include <winsock.h>
Expand Down
5 changes: 1 addition & 4 deletions src/test/pq/result.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,7 @@
#include <tuple>
#include <utility>

#include <tao/pq/connection.hpp>
#include <tao/pq/result_traits_optional.hpp>
#include <tao/pq/result_traits_pair.hpp>
#include <tao/pq/result_traits_tuple.hpp>
#include <tao/pq.hpp>

namespace
{
Expand Down
5 changes: 1 addition & 4 deletions src/test/pq/row.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,7 @@
#include <tuple>
#include <utility>

#include <tao/pq/connection.hpp>
#include <tao/pq/result_traits_optional.hpp>
#include <tao/pq/result_traits_pair.hpp>
#include <tao/pq/result_traits_tuple.hpp>
#include <tao/pq.hpp>

namespace
{
Expand Down
1 change: 1 addition & 0 deletions src/test/pq/strtox.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ auto main() -> int {}
#include <format>
#include <iostream>
#include <stdexcept>
#include <string>
#include <tuple>

#include <tao/pq/internal/strtox.hpp>
Expand Down
4 changes: 1 addition & 3 deletions src/test/pq/transaction.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,7 @@
#include <memory>
#include <tuple>

#include <tao/pq/access_mode.hpp>
#include <tao/pq/connection.hpp>
#include <tao/pq/isolation_level.hpp>
#include <tao/pq.hpp>

namespace
{
Expand Down

0 comments on commit 79064fc

Please sign in to comment.