Skip to content

Commit

Permalink
More clang-tidy
Browse files Browse the repository at this point in the history
  • Loading branch information
COM8 committed Dec 24, 2023
1 parent 07084a2 commit 7a807ca
Show file tree
Hide file tree
Showing 4 changed files with 25 additions and 3 deletions.
20 changes: 17 additions & 3 deletions cpr/session.cpp
Original file line number Diff line number Diff line change
@@ -1,23 +1,37 @@
#include "cpr/session.h"

#include <algorithm>
#include <cassert>
#include <cstdint>
#include <cstdlib>
#include <cstring>
#include <fstream>
#include <functional>
#include <iostream>
#include <optional>
#include <stdexcept>
#include <string>
#include <tuple>
#include <vector>

#include <curl/curl.h>
#include <curl/curlver.h>
#include <variant>

#include "cpr/async.h"
#include "cpr/auth.h"
#include "cpr/body.h"
#include "cpr/callback.h"
#include "cpr/cprtypes.h"
#include "cpr/curlholder.h"
#include "cpr/interceptor.h"
#include "cpr/limit_rate.h"
#include "cpr/multipart.h"
#include "cpr/parameters.h"
#include "cpr/payload.h"
#include "cpr/proxies.h"
#include "cpr/proxyauth.h"
#include "cpr/redirect.h"
#include "cpr/resolve.h"
#include "cpr/ssl_options.h"
#include "cpr/timeout.h"
#include "cpr/util.h"

#if SUPPORT_CURLOPT_SSL_CTX_FUNCTION
Expand Down
1 change: 1 addition & 0 deletions cpr/ssl_ctx.cpp
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@

#include "cpr/ssl_ctx.h"
#include "cpr/ssl_options.h"

#if SUPPORT_CURLOPT_SSL_CTX_FUNCTION

Expand Down
6 changes: 6 additions & 0 deletions cpr/threadpool.cpp
Original file line number Diff line number Diff line change
@@ -1,4 +1,10 @@
#include "cpr/threadpool.h"
#include <chrono>
#include <cstdint>
#include <ctime>
#include <memory>
#include <mutex>
#include <thread>

namespace cpr {

Expand Down
1 change: 1 addition & 0 deletions cpr/timeout.cpp
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
#include "cpr/timeout.h"

#include <chrono>
#include <limits>
#include <stdexcept>
#include <string>
Expand Down

0 comments on commit 7a807ca

Please sign in to comment.