From 9b42166c68525fd2d9b2686fa03af267d0c44320 Mon Sep 17 00:00:00 2001 From: levlam Date: Wed, 13 Feb 2019 00:26:36 +0300 Subject: [PATCH] Explicitly include common.h. GitOrigin-RevId: 5ae32c18d0ff18aac36334b494ea526ce7da4a9a --- benchmark/bench_actor.cpp | 1 + benchmark/bench_db.cpp | 1 + benchmark/bench_handshake.cpp | 1 + benchmark/bench_http_reader.cpp | 1 + benchmark/bench_log.cpp | 1 + td/generate/tl_json_converter.cpp | 1 + td/mtproto/Handshake.cpp | 1 + td/mtproto/HttpTransport.cpp | 1 + td/mtproto/SessionConnection.cpp | 1 + td/telegram/CallActor.cpp | 1 + td/telegram/CallManager.cpp | 1 + td/telegram/Client.cpp | 1 + td/telegram/ClientJson.cpp | 1 + td/telegram/FileReferenceManager.cpp | 1 + td/telegram/FileReferenceManager.hpp | 1 + td/telegram/LanguagePackManager.h | 1 + td/telegram/SecretChatActor.h | 1 + td/telegram/SecretChatsManager.cpp | 1 + td/telegram/SecureManager.h | 1 + td/telegram/TdDb.cpp | 1 + td/telegram/WallpaperManager.h | 1 + td/telegram/cli.cpp | 1 + td/telegram/files/FileDb.h | 1 + td/telegram/files/FileHashUploader.cpp | 1 + td/telegram/files/FileLoader.cpp | 1 + td/telegram/files/FileUploader.cpp | 1 + td/telegram/files/ResourceManager.cpp | 1 + td/telegram/logevent/LogEvent.h | 1 + td/telegram/logevent/LogEventHelper.h | 1 + td/telegram/net/ConnectionCreator.h | 1 + td/telegram/net/NetQueryDelayer.cpp | 1 + td/telegram/net/NetStatsManager.cpp | 1 + td/telegram/net/SessionMultiProxy.cpp | 1 + td/telegram/net/SessionProxy.cpp | 1 + tdactor/td/actor/SleepActor.h | 3 ++- tdactor/td/actor/impl/Actor.h | 8 +++----- tdactor/td/actor/impl/Scheduler.h | 1 + tdactor/test/actors_main.cpp | 1 + tdactor/test/actors_simple.cpp | 1 + tddb/td/db/SqliteDb.cpp | 1 + tddb/td/db/SqliteKeyValueAsync.cpp | 1 + tdnet/td/net/GetHostByNameActor.cpp | 1 + tdnet/td/net/HttpConnectionBase.cpp | 1 + tdnet/td/net/HttpProxy.cpp | 1 + tdnet/td/net/Socks5.cpp | 1 + tdnet/td/net/SslStream.cpp | 1 + tdutils/td/utils/BufferedFd.h | 1 + tdutils/td/utils/BufferedUdp.h | 1 + tdutils/td/utils/GzipByteFlow.cpp | 1 + tdutils/td/utils/MpscPollableQueue.h | 1 + tdutils/td/utils/Parser.h | 1 + tdutils/td/utils/Slice.h | 1 + tdutils/td/utils/port/ServerSocketFd.cpp | 1 + tdutils/td/utils/port/SocketFd.cpp | 1 + tdutils/td/utils/port/detail/PollableFd.h | 1 + tdutils/test/HazardPointers.cpp | 1 + tdutils/test/MpmcQueue.cpp | 1 + tdutils/test/MpscLinkQueue.cpp | 1 + tdutils/test/misc.cpp | 1 + test/http.cpp | 1 + test/main.cpp | 1 + test/mtproto.cpp | 1 + test/secret.cpp | 1 + test/tdclient.cpp | 1 + 64 files changed, 67 insertions(+), 6 deletions(-) diff --git a/benchmark/bench_actor.cpp b/benchmark/bench_actor.cpp index e5d1c90e2d9d..41a1e5246a9f 100644 --- a/benchmark/bench_actor.cpp +++ b/benchmark/bench_actor.cpp @@ -9,6 +9,7 @@ #include "td/actor/actor.h" #include "td/actor/PromiseFuture.h" +#include "td/utils/common.h" #include "td/utils/logging.h" #include diff --git a/benchmark/bench_db.cpp b/benchmark/bench_db.cpp index 51264883c497..e713adcdeeba 100644 --- a/benchmark/bench_db.cpp +++ b/benchmark/bench_db.cpp @@ -15,6 +15,7 @@ #include "td/db/SqliteKeyValueAsync.h" #include "td/utils/benchmark.h" +#include "td/utils/common.h" #include "td/utils/format.h" #include "td/utils/logging.h" #include "td/utils/Status.h" diff --git a/benchmark/bench_handshake.cpp b/benchmark/bench_handshake.cpp index 05f3185ffd15..8d6e5b3b760c 100644 --- a/benchmark/bench_handshake.cpp +++ b/benchmark/bench_handshake.cpp @@ -9,6 +9,7 @@ #include "td/mtproto/DhHandshake.h" #include "td/utils/base64.h" +#include "td/utils/common.h" #include "td/utils/logging.h" #include "td/utils/Slice.h" diff --git a/benchmark/bench_http_reader.cpp b/benchmark/bench_http_reader.cpp index 4c73597f3969..d02e76a7ec9c 100644 --- a/benchmark/bench_http_reader.cpp +++ b/benchmark/bench_http_reader.cpp @@ -9,6 +9,7 @@ #include "td/utils/benchmark.h" #include "td/utils/buffer.h" +#include "td/utils/common.h" #include "td/utils/find_boundary.h" #include "td/utils/logging.h" diff --git a/benchmark/bench_log.cpp b/benchmark/bench_log.cpp index 90819de818ad..c0687acd342d 100644 --- a/benchmark/bench_log.cpp +++ b/benchmark/bench_log.cpp @@ -5,6 +5,7 @@ // file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) // #include "td/utils/benchmark.h" +#include "td/utils/common.h" #include "td/utils/logging.h" #include diff --git a/td/generate/tl_json_converter.cpp b/td/generate/tl_json_converter.cpp index 85e605c39e1e..42cd6877259f 100644 --- a/td/generate/tl_json_converter.cpp +++ b/td/generate/tl_json_converter.cpp @@ -9,6 +9,7 @@ #include "td/tl/tl_simple.h" #include "td/utils/buffer.h" +#include "td/utils/common.h" #include "td/utils/filesystem.h" #include "td/utils/logging.h" #include "td/utils/Slice.h" diff --git a/td/mtproto/Handshake.cpp b/td/mtproto/Handshake.cpp index 377f63eb1376..94ea512614c0 100644 --- a/td/mtproto/Handshake.cpp +++ b/td/mtproto/Handshake.cpp @@ -13,6 +13,7 @@ #include "td/utils/as.h" #include "td/utils/buffer.h" +#include "td/utils/common.h" #include "td/utils/crypto.h" #include "td/utils/format.h" #include "td/utils/logging.h" diff --git a/td/mtproto/HttpTransport.cpp b/td/mtproto/HttpTransport.cpp index 832c88d7b970..7bbdc3f6de9f 100644 --- a/td/mtproto/HttpTransport.cpp +++ b/td/mtproto/HttpTransport.cpp @@ -9,6 +9,7 @@ #include "td/net/HttpHeaderCreator.h" #include "td/utils/buffer.h" +#include "td/utils/common.h" #include "td/utils/logging.h" #include "td/utils/misc.h" #include "td/utils/Slice.h" diff --git a/td/mtproto/SessionConnection.cpp b/td/mtproto/SessionConnection.cpp index b8ef01ca2210..7fb7ed2958b9 100644 --- a/td/mtproto/SessionConnection.cpp +++ b/td/mtproto/SessionConnection.cpp @@ -13,6 +13,7 @@ #include "td/mtproto/utils.h" #include "td/utils/as.h" +#include "td/utils/common.h" #include "td/utils/format.h" #include "td/utils/Gzip.h" #include "td/utils/logging.h" diff --git a/td/telegram/CallActor.cpp b/td/telegram/CallActor.cpp index 703fabdcd0a0..adfd078e711d 100644 --- a/td/telegram/CallActor.cpp +++ b/td/telegram/CallActor.cpp @@ -23,6 +23,7 @@ #include "td/telegram/UpdatesManager.h" #include "td/utils/buffer.h" +#include "td/utils/common.h" #include "td/utils/crypto.h" #include "td/utils/logging.h" #include "td/utils/Random.h" diff --git a/td/telegram/CallManager.cpp b/td/telegram/CallManager.cpp index 4eee4a0329e4..4801a9c44acb 100644 --- a/td/telegram/CallManager.cpp +++ b/td/telegram/CallManager.cpp @@ -6,6 +6,7 @@ // #include "td/telegram/CallManager.h" +#include "td/utils/common.h" #include "td/utils/format.h" #include "td/utils/logging.h" #include "td/utils/misc.h" diff --git a/td/telegram/Client.cpp b/td/telegram/Client.cpp index 2b07780cbc60..6f4793d7be9a 100644 --- a/td/telegram/Client.cpp +++ b/td/telegram/Client.cpp @@ -10,6 +10,7 @@ #include "td/actor/actor.h" +#include "td/utils/common.h" #include "td/utils/crypto.h" #include "td/utils/logging.h" #include "td/utils/MpscPollableQueue.h" diff --git a/td/telegram/ClientJson.cpp b/td/telegram/ClientJson.cpp index 721b273b585d..c3f0be6039e1 100644 --- a/td/telegram/ClientJson.cpp +++ b/td/telegram/ClientJson.cpp @@ -11,6 +11,7 @@ #include "td/tl/tl_json.h" +#include "td/utils/common.h" #include "td/utils/format.h" #include "td/utils/JsonBuilder.h" #include "td/utils/logging.h" diff --git a/td/telegram/FileReferenceManager.cpp b/td/telegram/FileReferenceManager.cpp index e74ac7655285..7462f1bff2cf 100644 --- a/td/telegram/FileReferenceManager.cpp +++ b/td/telegram/FileReferenceManager.cpp @@ -15,6 +15,7 @@ #include "td/telegram/WallpaperManager.h" #include "td/telegram/WebPagesManager.h" +#include "td/utils/common.h" #include "td/utils/logging.h" #include "td/utils/misc.h" #include "td/utils/overloaded.h" diff --git a/td/telegram/FileReferenceManager.hpp b/td/telegram/FileReferenceManager.hpp index b07054857ae8..97a07c9653d6 100644 --- a/td/telegram/FileReferenceManager.hpp +++ b/td/telegram/FileReferenceManager.hpp @@ -20,6 +20,7 @@ #include "td/telegram/WallpaperManager.h" #include "td/telegram/WebPagesManager.h" +#include "td/utils/common.h" #include "td/utils/overloaded.h" #include "td/utils/tl_helpers.h" diff --git a/td/telegram/LanguagePackManager.h b/td/telegram/LanguagePackManager.h index 57bf17899418..9beee6d2cb3b 100644 --- a/td/telegram/LanguagePackManager.h +++ b/td/telegram/LanguagePackManager.h @@ -14,6 +14,7 @@ #include "td/actor/actor.h" #include "td/actor/PromiseFuture.h" +#include "td/utils/common.h" #include "td/utils/Container.h" #include "td/utils/Slice.h" #include "td/utils/Status.h" diff --git a/td/telegram/SecretChatActor.h b/td/telegram/SecretChatActor.h index 682902c3c587..dddeaae72dbb 100644 --- a/td/telegram/SecretChatActor.h +++ b/td/telegram/SecretChatActor.h @@ -24,6 +24,7 @@ #include "td/utils/buffer.h" #include "td/utils/ChangesProcessor.h" +#include "td/utils/common.h" #include "td/utils/Container.h" #include "td/utils/format.h" #include "td/utils/port/Clocks.h" diff --git a/td/telegram/SecretChatsManager.cpp b/td/telegram/SecretChatsManager.cpp index 704ba5112bcc..9060efb4d269 100644 --- a/td/telegram/SecretChatsManager.cpp +++ b/td/telegram/SecretChatsManager.cpp @@ -29,6 +29,7 @@ #include "td/db/binlog/BinlogEvent.h" #include "td/db/binlog/BinlogInterface.h" +#include "td/utils/common.h" #include "td/utils/format.h" #include "td/utils/logging.h" #include "td/utils/misc.h" diff --git a/td/telegram/SecureManager.h b/td/telegram/SecureManager.h index 8477e6810312..c2d92e750701 100644 --- a/td/telegram/SecureManager.h +++ b/td/telegram/SecureManager.h @@ -17,6 +17,7 @@ #include "td/actor/actor.h" #include "td/actor/PromiseFuture.h" +#include "td/utils/common.h" #include "td/utils/Container.h" #include "td/utils/Status.h" diff --git a/td/telegram/TdDb.cpp b/td/telegram/TdDb.cpp index 3b86a19b2031..4c558440f3c9 100644 --- a/td/telegram/TdDb.cpp +++ b/td/telegram/TdDb.cpp @@ -23,6 +23,7 @@ #include "td/db/SqliteKeyValueAsync.h" #include "td/db/SqliteKeyValueSafe.h" +#include "td/utils/common.h" #include "td/utils/logging.h" #include "td/utils/port/path.h" #include "td/utils/Random.h" diff --git a/td/telegram/WallpaperManager.h b/td/telegram/WallpaperManager.h index 4885ee60da29..c2f413fa91c2 100644 --- a/td/telegram/WallpaperManager.h +++ b/td/telegram/WallpaperManager.h @@ -15,6 +15,7 @@ #include "td/actor/actor.h" #include "td/actor/PromiseFuture.h" +#include "td/utils/common.h" #include "td/utils/Status.h" namespace td { diff --git a/td/telegram/cli.cpp b/td/telegram/cli.cpp index 8e6f38d7ed6e..ca4c6e433ce9 100644 --- a/td/telegram/cli.cpp +++ b/td/telegram/cli.cpp @@ -20,6 +20,7 @@ #include "td/utils/base64.h" #include "td/utils/buffer.h" +#include "td/utils/common.h" #include "td/utils/FileLog.h" #include "td/utils/format.h" #include "td/utils/JsonBuilder.h" diff --git a/td/telegram/files/FileDb.h b/td/telegram/files/FileDb.h index b14bdbda220d..89303466e202 100644 --- a/td/telegram/files/FileDb.h +++ b/td/telegram/files/FileDb.h @@ -12,6 +12,7 @@ #include "td/actor/PromiseFuture.h" #include "td/utils/buffer.h" +#include "td/utils/common.h" #include "td/utils/logging.h" #include "td/utils/Status.h" #include "td/utils/tl_storers.h" diff --git a/td/telegram/files/FileHashUploader.cpp b/td/telegram/files/FileHashUploader.cpp index d1c5fc840bad..a79b918b81c5 100644 --- a/td/telegram/files/FileHashUploader.cpp +++ b/td/telegram/files/FileHashUploader.cpp @@ -14,6 +14,7 @@ #include "td/telegram/net/NetQueryDispatcher.h" #include "td/utils/buffer.h" +#include "td/utils/common.h" #include "td/utils/crypto.h" #include "td/utils/logging.h" #include "td/utils/MimeType.h" diff --git a/td/telegram/files/FileLoader.cpp b/td/telegram/files/FileLoader.cpp index 180cd1893f90..a5c8ec2f6ffe 100644 --- a/td/telegram/files/FileLoader.cpp +++ b/td/telegram/files/FileLoader.cpp @@ -11,6 +11,7 @@ #include "td/telegram/net/NetQueryDispatcher.h" #include "td/telegram/UniqueId.h" +#include "td/utils/common.h" #include "td/utils/format.h" #include "td/utils/logging.h" #include "td/utils/misc.h" diff --git a/td/telegram/files/FileUploader.cpp b/td/telegram/files/FileUploader.cpp index 094a08cd0ea2..b5701bec51ef 100644 --- a/td/telegram/files/FileUploader.cpp +++ b/td/telegram/files/FileUploader.cpp @@ -16,6 +16,7 @@ #include "td/telegram/SecureStorage.h" #include "td/utils/buffer.h" +#include "td/utils/common.h" #include "td/utils/crypto.h" #include "td/utils/format.h" #include "td/utils/logging.h" diff --git a/td/telegram/files/ResourceManager.cpp b/td/telegram/files/ResourceManager.cpp index 4f446ecf1d35..71b4d02f99f3 100644 --- a/td/telegram/files/ResourceManager.cpp +++ b/td/telegram/files/ResourceManager.cpp @@ -6,6 +6,7 @@ // #include "td/telegram/files/ResourceManager.h" +#include "td/utils/common.h" #include "td/utils/format.h" #include "td/utils/logging.h" #include "td/utils/misc.h" diff --git a/td/telegram/logevent/LogEvent.h b/td/telegram/logevent/LogEvent.h index 898004de7624..cdb427cb2689 100644 --- a/td/telegram/logevent/LogEvent.h +++ b/td/telegram/logevent/LogEvent.h @@ -10,6 +10,7 @@ #include "td/telegram/Version.h" #include "td/utils/buffer.h" +#include "td/utils/common.h" #include "td/utils/format.h" #include "td/utils/logging.h" #include "td/utils/Slice.h" diff --git a/td/telegram/logevent/LogEventHelper.h b/td/telegram/logevent/LogEventHelper.h index 16bce3ac9d14..d2fbe27a4941 100644 --- a/td/telegram/logevent/LogEventHelper.h +++ b/td/telegram/logevent/LogEventHelper.h @@ -13,6 +13,7 @@ #include "td/telegram/Global.h" #include "td/telegram/TdDb.h" +#include "td/utils/common.h" #include "td/utils/Status.h" namespace td { diff --git a/td/telegram/net/ConnectionCreator.h b/td/telegram/net/ConnectionCreator.h index 1d0a2d3e7d27..1ceb0631c259 100644 --- a/td/telegram/net/ConnectionCreator.h +++ b/td/telegram/net/ConnectionCreator.h @@ -23,6 +23,7 @@ #include "td/net/NetStats.h" +#include "td/utils/common.h" #include "td/utils/FloodControlStrict.h" #include "td/utils/logging.h" #include "td/utils/port/IPAddress.h" diff --git a/td/telegram/net/NetQueryDelayer.cpp b/td/telegram/net/NetQueryDelayer.cpp index 0c0c9c6df9eb..40268eb946ad 100644 --- a/td/telegram/net/NetQueryDelayer.cpp +++ b/td/telegram/net/NetQueryDelayer.cpp @@ -9,6 +9,7 @@ #include "td/telegram/Global.h" #include "td/telegram/net/NetQueryDispatcher.h" +#include "td/utils/common.h" #include "td/utils/format.h" #include "td/utils/logging.h" #include "td/utils/misc.h" diff --git a/td/telegram/net/NetStatsManager.cpp b/td/telegram/net/NetStatsManager.cpp index 88e5b504ac3b..5b1aad2a9a36 100644 --- a/td/telegram/net/NetStatsManager.cpp +++ b/td/telegram/net/NetStatsManager.cpp @@ -15,6 +15,7 @@ #include "td/telegram/TdDb.h" #include "td/telegram/Version.h" +#include "td/utils/common.h" #include "td/utils/logging.h" #include "td/utils/misc.h" #include "td/utils/tl_helpers.h" diff --git a/td/telegram/net/SessionMultiProxy.cpp b/td/telegram/net/SessionMultiProxy.cpp index ed7cb444d834..f82505fbc21c 100644 --- a/td/telegram/net/SessionMultiProxy.cpp +++ b/td/telegram/net/SessionMultiProxy.cpp @@ -8,6 +8,7 @@ #include "td/telegram/net/SessionProxy.h" +#include "td/utils/common.h" #include "td/utils/format.h" #include "td/utils/logging.h" #include "td/utils/Slice.h" diff --git a/td/telegram/net/SessionProxy.cpp b/td/telegram/net/SessionProxy.cpp index 1a6b20bccf25..4027c5efd99c 100644 --- a/td/telegram/net/SessionProxy.cpp +++ b/td/telegram/net/SessionProxy.cpp @@ -14,6 +14,7 @@ #include "td/actor/PromiseFuture.h" +#include "td/utils/common.h" #include "td/utils/logging.h" #include "td/utils/Slice.h" diff --git a/tdactor/td/actor/SleepActor.h b/tdactor/td/actor/SleepActor.h index 284c3e4f31f2..1d53d39312c8 100644 --- a/tdactor/td/actor/SleepActor.h +++ b/tdactor/td/actor/SleepActor.h @@ -7,9 +7,10 @@ #pragma once #include "td/actor/actor.h" - #include "td/actor/PromiseFuture.h" +#include "td/utils/common.h" + namespace td { class SleepActor : public Actor { diff --git a/tdactor/td/actor/impl/Actor.h b/tdactor/td/actor/impl/Actor.h index 18b3e25fb2a4..c82a85db39d5 100644 --- a/tdactor/td/actor/impl/Actor.h +++ b/tdactor/td/actor/impl/Actor.h @@ -10,7 +10,7 @@ #include "td/actor/impl/EventFull-decl.h" #include "td/actor/impl/Scheduler-decl.h" -#include "td/utils/logging.h" +#include "td/utils/common.h" #include "td/utils/ObjectPool.h" #include "td/utils/Slice.h" @@ -115,8 +115,7 @@ inline ActorId<> Actor::actor_id() { } template ActorId Actor::actor_id(SelfT *self) { - LOG_CHECK(static_cast(self) == this) - << self << " " << static_cast(self) << " " << this << " " << empty(); + CHECK(static_cast(self) == this); return ActorId(info_.get_weak()); } @@ -125,8 +124,7 @@ inline ActorShared<> Actor::actor_shared() { } template ActorShared Actor::actor_shared(SelfT *self, uint64 id) { - LOG_CHECK(static_cast(self) == this) - << self << " " << static_cast(self) << " " << this << " " << empty(); + CHECK(static_cast(self) == this); return ActorShared(actor_id(self), id); } diff --git a/tdactor/td/actor/impl/Scheduler.h b/tdactor/td/actor/impl/Scheduler.h index 140cfbd60394..978018fa124d 100644 --- a/tdactor/td/actor/impl/Scheduler.h +++ b/tdactor/td/actor/impl/Scheduler.h @@ -9,6 +9,7 @@ #include "td/actor/impl/ActorInfo-decl.h" #include "td/actor/impl/Scheduler-decl.h" +#include "td/utils/common.h" #include "td/utils/format.h" #include "td/utils/Heap.h" #include "td/utils/logging.h" diff --git a/tdactor/test/actors_main.cpp b/tdactor/test/actors_main.cpp index f75727c0575c..31f93247f410 100644 --- a/tdactor/test/actors_main.cpp +++ b/tdactor/test/actors_main.cpp @@ -9,6 +9,7 @@ #include "td/actor/actor.h" #include "td/actor/PromiseFuture.h" +#include "td/utils/common.h" #include "td/utils/logging.h" #include "td/utils/Random.h" diff --git a/tdactor/test/actors_simple.cpp b/tdactor/test/actors_simple.cpp index 15994891060a..17bc7366eaa4 100644 --- a/tdactor/test/actors_simple.cpp +++ b/tdactor/test/actors_simple.cpp @@ -12,6 +12,7 @@ #include "td/actor/SleepActor.h" #include "td/actor/Timeout.h" +#include "td/utils/common.h" #include "td/utils/logging.h" #include "td/utils/MpscPollableQueue.h" #include "td/utils/Observer.h" diff --git a/tddb/td/db/SqliteDb.cpp b/tddb/td/db/SqliteDb.cpp index e777679b0cfc..92a3621f5a4c 100644 --- a/tddb/td/db/SqliteDb.cpp +++ b/tddb/td/db/SqliteDb.cpp @@ -6,6 +6,7 @@ // #include "td/db/SqliteDb.h" +#include "td/utils/common.h" #include "td/utils/format.h" #include "td/utils/port/path.h" #include "td/utils/port/Stat.h" diff --git a/tddb/td/db/SqliteKeyValueAsync.cpp b/tddb/td/db/SqliteKeyValueAsync.cpp index c2c1ab567e26..405ae1f950d5 100644 --- a/tddb/td/db/SqliteKeyValueAsync.cpp +++ b/tddb/td/db/SqliteKeyValueAsync.cpp @@ -8,6 +8,7 @@ #include "td/actor/actor.h" +#include "td/utils/common.h" #include "td/utils/optional.h" #include "td/utils/Time.h" diff --git a/tdnet/td/net/GetHostByNameActor.cpp b/tdnet/td/net/GetHostByNameActor.cpp index b8a02ce01563..b28ee15b3a7d 100644 --- a/tdnet/td/net/GetHostByNameActor.cpp +++ b/tdnet/td/net/GetHostByNameActor.cpp @@ -10,6 +10,7 @@ #include "td/net/SslStream.h" #include "td/net/Wget.h" +#include "td/utils/common.h" #include "td/utils/JsonBuilder.h" #include "td/utils/logging.h" #include "td/utils/misc.h" diff --git a/tdnet/td/net/HttpConnectionBase.cpp b/tdnet/td/net/HttpConnectionBase.cpp index 3a5391390810..c03b73ba2202 100644 --- a/tdnet/td/net/HttpConnectionBase.cpp +++ b/tdnet/td/net/HttpConnectionBase.cpp @@ -8,6 +8,7 @@ #include "td/net/HttpHeaderCreator.h" +#include "td/utils/common.h" #include "td/utils/logging.h" #include "td/utils/misc.h" #include "td/utils/port/detail/PollableFd.h" diff --git a/tdnet/td/net/HttpProxy.cpp b/tdnet/td/net/HttpProxy.cpp index 712ed6b43261..6aee2cf78748 100644 --- a/tdnet/td/net/HttpProxy.cpp +++ b/tdnet/td/net/HttpProxy.cpp @@ -7,6 +7,7 @@ #include "td/net/HttpProxy.h" #include "td/utils/base64.h" +#include "td/utils/common.h" #include "td/utils/format.h" #include "td/utils/logging.h" #include "td/utils/misc.h" diff --git a/tdnet/td/net/Socks5.cpp b/tdnet/td/net/Socks5.cpp index 9993ce6e71be..0115dcaff9c6 100644 --- a/tdnet/td/net/Socks5.cpp +++ b/tdnet/td/net/Socks5.cpp @@ -6,6 +6,7 @@ // #include "td/net/Socks5.h" +#include "td/utils/common.h" #include "td/utils/logging.h" #include "td/utils/misc.h" #include "td/utils/Slice.h" diff --git a/tdnet/td/net/SslStream.cpp b/tdnet/td/net/SslStream.cpp index 013de44e905d..b737b34b1171 100644 --- a/tdnet/td/net/SslStream.cpp +++ b/tdnet/td/net/SslStream.cpp @@ -6,6 +6,7 @@ // #include "td/net/SslStream.h" +#include "td/utils/common.h" #include "td/utils/logging.h" #include "td/utils/misc.h" #include "td/utils/port/wstring_convert.h" diff --git a/tdutils/td/utils/BufferedFd.h b/tdutils/td/utils/BufferedFd.h index 911e0009e3d7..61146daa5e18 100644 --- a/tdutils/td/utils/BufferedFd.h +++ b/tdutils/td/utils/BufferedFd.h @@ -7,6 +7,7 @@ #pragma once #include "td/utils/buffer.h" +#include "td/utils/common.h" #include "td/utils/format.h" #include "td/utils/logging.h" #include "td/utils/port/detail/PollableFd.h" diff --git a/tdutils/td/utils/BufferedUdp.h b/tdutils/td/utils/BufferedUdp.h index 4c7df9a4dfae..b3c3604079a4 100644 --- a/tdutils/td/utils/BufferedUdp.h +++ b/tdutils/td/utils/BufferedUdp.h @@ -7,6 +7,7 @@ #pragma once #include "td/utils/buffer.h" +#include "td/utils/common.h" #include "td/utils/logging.h" #include "td/utils/optional.h" #include "td/utils/port/detail/PollableFd.h" diff --git a/tdutils/td/utils/GzipByteFlow.cpp b/tdutils/td/utils/GzipByteFlow.cpp index 2bdc67e72434..f8d38face5a3 100644 --- a/tdutils/td/utils/GzipByteFlow.cpp +++ b/tdutils/td/utils/GzipByteFlow.cpp @@ -9,6 +9,7 @@ char disable_linker_warning_about_empty_file_gzipbyteflow_cpp TD_UNUSED; #if TD_HAVE_ZLIB +#include "td/utils/common.h" #include "td/utils/Status.h" namespace td { diff --git a/tdutils/td/utils/MpscPollableQueue.h b/tdutils/td/utils/MpscPollableQueue.h index 4f53a1a2772b..9167cbc75812 100644 --- a/tdutils/td/utils/MpscPollableQueue.h +++ b/tdutils/td/utils/MpscPollableQueue.h @@ -6,6 +6,7 @@ // #pragma once +#include "td/utils/common.h" #include "td/utils/misc.h" #include "td/utils/port/EventFd.h" diff --git a/tdutils/td/utils/Parser.h b/tdutils/td/utils/Parser.h index 637851bf1f39..09584ea2ef82 100644 --- a/tdutils/td/utils/Parser.h +++ b/tdutils/td/utils/Parser.h @@ -6,6 +6,7 @@ // #pragma once +#include "td/utils/common.h" #include "td/utils/format.h" #include "td/utils/logging.h" #include "td/utils/Slice.h" diff --git a/tdutils/td/utils/Slice.h b/tdutils/td/utils/Slice.h index 4544b961884a..4273f9fdd45d 100644 --- a/tdutils/td/utils/Slice.h +++ b/tdutils/td/utils/Slice.h @@ -6,6 +6,7 @@ // #pragma once +#include "td/utils/common.h" #include "td/utils/Slice-decl.h" #include diff --git a/tdutils/td/utils/port/ServerSocketFd.cpp b/tdutils/td/utils/port/ServerSocketFd.cpp index 8b49d4d50116..75a2c99b26da 100644 --- a/tdutils/td/utils/port/ServerSocketFd.cpp +++ b/tdutils/td/utils/port/ServerSocketFd.cpp @@ -8,6 +8,7 @@ #include "td/utils/port/config.h" +#include "td/utils/common.h" #include "td/utils/logging.h" #include "td/utils/port/IPAddress.h" #include "td/utils/port/PollFlags.h" diff --git a/tdutils/td/utils/port/SocketFd.cpp b/tdutils/td/utils/port/SocketFd.cpp index 72717d96006a..afda5ee2fe25 100644 --- a/tdutils/td/utils/port/SocketFd.cpp +++ b/tdutils/td/utils/port/SocketFd.cpp @@ -6,6 +6,7 @@ // #include "td/utils/port/SocketFd.h" +#include "td/utils/common.h" #include "td/utils/logging.h" #include "td/utils/misc.h" #include "td/utils/port/PollFlags.h" diff --git a/tdutils/td/utils/port/detail/PollableFd.h b/tdutils/td/utils/port/detail/PollableFd.h index 1c2381d9b0b5..06eddaa5a268 100644 --- a/tdutils/td/utils/port/detail/PollableFd.h +++ b/tdutils/td/utils/port/detail/PollableFd.h @@ -6,6 +6,7 @@ // #pragma once +#include "td/utils/common.h" #include "td/utils/format.h" #include "td/utils/List.h" #include "td/utils/logging.h" diff --git a/tdutils/test/HazardPointers.cpp b/tdutils/test/HazardPointers.cpp index 28e148d6be04..2fe3fd25a201 100644 --- a/tdutils/test/HazardPointers.cpp +++ b/tdutils/test/HazardPointers.cpp @@ -4,6 +4,7 @@ // Distributed under the Boost Software License, Version 1.0. (See accompanying // file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) // +#include "td/utils/common.h" #include "td/utils/HazardPointers.h" #include "td/utils/logging.h" #include "td/utils/port/thread.h" diff --git a/tdutils/test/MpmcQueue.cpp b/tdutils/test/MpmcQueue.cpp index 6bafd1492210..52de4fd54b17 100644 --- a/tdutils/test/MpmcQueue.cpp +++ b/tdutils/test/MpmcQueue.cpp @@ -4,6 +4,7 @@ // Distributed under the Boost Software License, Version 1.0. (See accompanying // file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) // +#include "td/utils/common.h" #include "td/utils/logging.h" #include "td/utils/MpmcQueue.h" #include "td/utils/port/thread.h" diff --git a/tdutils/test/MpscLinkQueue.cpp b/tdutils/test/MpscLinkQueue.cpp index 5a74ed81a51e..957992b443a7 100644 --- a/tdutils/test/MpscLinkQueue.cpp +++ b/tdutils/test/MpscLinkQueue.cpp @@ -4,6 +4,7 @@ // Distributed under the Boost Software License, Version 1.0. (See accompanying // file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) // +#include "td/utils/common.h" #include "td/utils/format.h" #include "td/utils/logging.h" #include "td/utils/MpscLinkQueue.h" diff --git a/tdutils/test/misc.cpp b/tdutils/test/misc.cpp index d85952302f48..0cb87d477d70 100644 --- a/tdutils/test/misc.cpp +++ b/tdutils/test/misc.cpp @@ -8,6 +8,7 @@ #include "td/utils/base64.h" #include "td/utils/BigNum.h" #include "td/utils/bits.h" +#include "td/utils/common.h" #include "td/utils/HttpUrl.h" #include "td/utils/invoke.h" #include "td/utils/logging.h" diff --git a/test/http.cpp b/test/http.cpp index 829db4589823..463d4aa062a6 100644 --- a/test/http.cpp +++ b/test/http.cpp @@ -16,6 +16,7 @@ #include "td/utils/buffer.h" #include "td/utils/BufferedFd.h" #include "td/utils/ByteFlow.h" +#include "td/utils/common.h" #include "td/utils/crypto.h" #include "td/utils/format.h" #include "td/utils/Gzip.h" diff --git a/test/main.cpp b/test/main.cpp index 3591de6b58cd..206470483c42 100644 --- a/test/main.cpp +++ b/test/main.cpp @@ -6,6 +6,7 @@ // #include "td/utils/tests.h" +#include "td/utils/common.h" #include "td/utils/logging.h" #include diff --git a/test/mtproto.cpp b/test/mtproto.cpp index 403e77725d63..3851de51230c 100644 --- a/test/mtproto.cpp +++ b/test/mtproto.cpp @@ -27,6 +27,7 @@ #include "td/telegram/NotificationManager.h" #include "td/utils/base64.h" +#include "td/utils/common.h" #include "td/utils/logging.h" #include "td/utils/port/IPAddress.h" #include "td/utils/port/SocketFd.h" diff --git a/test/secret.cpp b/test/secret.cpp index 3a8e3827dcd9..9349a24c44a8 100644 --- a/test/secret.cpp +++ b/test/secret.cpp @@ -28,6 +28,7 @@ #include "td/utils/base64.h" #include "td/utils/buffer.h" +#include "td/utils/common.h" #include "td/utils/crypto.h" #include "td/utils/format.h" #include "td/utils/Gzip.h" diff --git a/test/tdclient.cpp b/test/tdclient.cpp index 3d5e0cab252d..b4f850c18b45 100644 --- a/test/tdclient.cpp +++ b/test/tdclient.cpp @@ -15,6 +15,7 @@ #include "td/utils/base64.h" #include "td/utils/BufferedFd.h" +#include "td/utils/common.h" #include "td/utils/filesystem.h" #include "td/utils/format.h" #include "td/utils/logging.h"