Skip to content

Commit

Permalink
Cleanup clang-tidy issues
Browse files Browse the repository at this point in the history
  • Loading branch information
d-frey committed Nov 17, 2024
1 parent 115cbda commit a8b7bf6
Show file tree
Hide file tree
Showing 21 changed files with 91 additions and 3 deletions.
1 change: 0 additions & 1 deletion src/lib/pq/internal/poll.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@
#include <cerrno>
#include <cstring>
#include <format>
#include <string.h>
#include <string>

#if defined( _WIN32 )
Expand Down
3 changes: 3 additions & 0 deletions src/lib/pq/large_object.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -7,17 +7,20 @@
#include <cassert>
#include <cstddef>
#include <cstdint>
#include <cstdio>
#include <ios>
#include <memory>
#include <stdexcept>
#include <string>
#include <utility>

#include <libpq-fe.h>
#include <libpq/libpq-fs.h>

#include <tao/pq/binary.hpp>
#include <tao/pq/connection.hpp>
#include <tao/pq/internal/resize_uninitialized.hpp>
#include <tao/pq/oid.hpp>
#include <tao/pq/transaction.hpp>

namespace tao::pq
Expand Down
1 change: 1 addition & 0 deletions src/lib/pq/table_writer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
#include <chrono>
#include <cstddef>
#include <memory>
#include <stdexcept>
#include <string_view>
#include <tuple>

Expand Down
1 change: 1 addition & 0 deletions src/lib/pq/transaction.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
#include <cstdio>
#include <exception>
#include <memory>
#include <stdexcept>
#include <utility>

#include <libpq-fe.h>
Expand Down
4 changes: 4 additions & 0 deletions src/test/pq/aggregate.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,10 @@
#include "../getenv.hpp"
#include "../macros.hpp"

#include <exception>
#include <iostream>
#include <string>

#include <tao/pq.hpp>

namespace example
Expand Down
7 changes: 7 additions & 0 deletions src/test/pq/array.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,13 @@
#include "../getenv.hpp"
#include "../macros.hpp"

#include <array>
#include <exception>
#include <iostream>
#include <optional>
#include <string>
#include <vector>

#include <tao/pq.hpp>

namespace
Expand Down
7 changes: 7 additions & 0 deletions src/test/pq/connection.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,16 @@
#include "../getenv.hpp"
#include "../macros.hpp"

#include <chrono>
#include <exception>
#include <iostream>
#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>

namespace
{
Expand Down
10 changes: 10 additions & 0 deletions src/test/pq/connection_pool.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,17 @@
#include "../getenv.hpp"
#include "../macros.hpp"

#include <atomic>
#include <chrono>
#include <cstddef>
#include <exception>
#include <iostream>
#include <memory>
#include <stdexcept>

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

namespace
{
Expand Down
3 changes: 3 additions & 0 deletions src/test/pq/example.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,10 @@
#include "../getenv.hpp"
#include "../macros.hpp"

#include <exception>
#include <iostream>
#include <string>

#include <tao/pq.hpp>

namespace
Expand Down
3 changes: 3 additions & 0 deletions src/test/pq/getenv.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@
#include "../getenv.hpp"
#include "../macros.hpp"

#include <exception>
#include <iostream>

namespace
{
void run()
Expand Down
6 changes: 6 additions & 0 deletions src/test/pq/large_object.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,13 @@
#include "../getenv.hpp"
#include "../macros.hpp"

#include <exception>
#include <ios>
#include <iostream>
#include <limits>
#include <memory>
#include <string_view>
#include <utility>

#include <tao/pq/binary.hpp>
#include <tao/pq/connection.hpp>
Expand Down
4 changes: 4 additions & 0 deletions src/test/pq/notifications.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,10 @@
#include "../getenv.hpp"
#include "../macros.hpp"

#include <cstddef>
#include <exception>
#include <iostream>

#include <tao/pq/connection.hpp>

#if defined( _WIN32 )
Expand Down
3 changes: 3 additions & 0 deletions src/test/pq/parameter.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,10 @@
#include "../getenv.hpp"
#include "../macros.hpp"

#include <exception>
#include <iostream>
#include <utility>

#include <tao/pq.hpp>

namespace
Expand Down
6 changes: 6 additions & 0 deletions src/test/pq/resize_uninitialized.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,12 @@

#include "../macros.hpp"

#include <cstddef>
#include <exception>
#include <iostream>
#include <string>
#include <vector>

#include <tao/pq/internal/resize_uninitialized.hpp>

namespace
Expand Down
7 changes: 7 additions & 0 deletions src/test/pq/result.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,13 @@
#include "../getenv.hpp"
#include "../macros.hpp"

#include <exception>
#include <iostream>
#include <optional>
#include <string>
#include <tuple>
#include <utility>

#include <tao/pq/connection.hpp>
#include <tao/pq/result_traits_optional.hpp>
#include <tao/pq/result_traits_pair.hpp>
Expand Down
6 changes: 6 additions & 0 deletions src/test/pq/row.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,12 @@
#include "../getenv.hpp"
#include "../macros.hpp"

#include <exception>
#include <iostream>
#include <optional>
#include <tuple>
#include <utility>

#include <tao/pq/connection.hpp>
#include <tao/pq/result_traits_optional.hpp>
#include <tao/pq/result_traits_pair.hpp>
Expand Down
3 changes: 2 additions & 1 deletion src/test/pq/strtox.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,11 @@ auto main() -> int {}
#include "../macros.hpp"

#include <cmath>
#include <exception>
#include <format>
#include <iostream>
#include <stdexcept>
#include <tuple>
#include <typeinfo>

#include <tao/pq/internal/strtox.hpp>

Expand Down
6 changes: 6 additions & 0 deletions src/test/pq/table_reader.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,12 @@
#include "../getenv.hpp"
#include "../macros.hpp"

#include <cstddef>
#include <exception>
#include <iostream>
#include <optional>
#include <string_view>

#include <tao/pq.hpp>

namespace
Expand Down
3 changes: 2 additions & 1 deletion src/test/pq/table_writer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@
#include <cstddef>
#include <exception>
#include <iostream>
#include <memory>
#include <optional>
#include <tuple>

#include "../getenv.hpp"
#include "../macros.hpp"
Expand Down
5 changes: 5 additions & 0 deletions src/test/pq/traits.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,11 @@
#include "../getenv.hpp"
#include "../macros.hpp"

#include <exception>
#include <iostream>
#include <tuple>
#include <utility>

#include <tao/pq.hpp>

namespace example
Expand Down
5 changes: 5 additions & 0 deletions src/test/pq/transaction.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,14 @@
#include "../getenv.hpp"
#include "../macros.hpp"

#include <exception>
#include <iostream>
#include <memory>
#include <tuple>

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

namespace
{
Expand Down

0 comments on commit a8b7bf6

Please sign in to comment.