Skip to content

Commit

Permalink
Explicitly include common.h.
Browse files Browse the repository at this point in the history
GitOrigin-RevId: 5ae32c18d0ff18aac36334b494ea526ce7da4a9a
  • Loading branch information
levlam committed Feb 12, 2019
1 parent eb9ead5 commit 9b42166
Show file tree
Hide file tree
Showing 64 changed files with 67 additions and 6 deletions.
1 change: 1 addition & 0 deletions benchmark/bench_actor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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 <algorithm>
Expand Down
1 change: 1 addition & 0 deletions benchmark/bench_db.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
1 change: 1 addition & 0 deletions benchmark/bench_handshake.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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"

Expand Down
1 change: 1 addition & 0 deletions benchmark/bench_http_reader.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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"

Expand Down
1 change: 1 addition & 0 deletions benchmark/bench_log.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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 <cstdio>
Expand Down
1 change: 1 addition & 0 deletions td/generate/tl_json_converter.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
1 change: 1 addition & 0 deletions td/mtproto/Handshake.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
1 change: 1 addition & 0 deletions td/mtproto/HttpTransport.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
1 change: 1 addition & 0 deletions td/mtproto/SessionConnection.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
1 change: 1 addition & 0 deletions td/telegram/CallActor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
1 change: 1 addition & 0 deletions td/telegram/CallManager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
1 change: 1 addition & 0 deletions td/telegram/Client.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
1 change: 1 addition & 0 deletions td/telegram/ClientJson.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
1 change: 1 addition & 0 deletions td/telegram/FileReferenceManager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
1 change: 1 addition & 0 deletions td/telegram/FileReferenceManager.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -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"

Expand Down
1 change: 1 addition & 0 deletions td/telegram/LanguagePackManager.h
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
1 change: 1 addition & 0 deletions td/telegram/SecretChatActor.h
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
1 change: 1 addition & 0 deletions td/telegram/SecretChatsManager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
1 change: 1 addition & 0 deletions td/telegram/SecureManager.h
Original file line number Diff line number Diff line change
Expand Up @@ -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"

Expand Down
1 change: 1 addition & 0 deletions td/telegram/TdDb.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
1 change: 1 addition & 0 deletions td/telegram/WallpaperManager.h
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
1 change: 1 addition & 0 deletions td/telegram/cli.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
1 change: 1 addition & 0 deletions td/telegram/files/FileDb.h
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
1 change: 1 addition & 0 deletions td/telegram/files/FileHashUploader.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
1 change: 1 addition & 0 deletions td/telegram/files/FileLoader.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
1 change: 1 addition & 0 deletions td/telegram/files/FileUploader.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
1 change: 1 addition & 0 deletions td/telegram/files/ResourceManager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
1 change: 1 addition & 0 deletions td/telegram/logevent/LogEvent.h
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
1 change: 1 addition & 0 deletions td/telegram/logevent/LogEventHelper.h
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
1 change: 1 addition & 0 deletions td/telegram/net/ConnectionCreator.h
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
1 change: 1 addition & 0 deletions td/telegram/net/NetQueryDelayer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
1 change: 1 addition & 0 deletions td/telegram/net/NetStatsManager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
1 change: 1 addition & 0 deletions td/telegram/net/SessionMultiProxy.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
1 change: 1 addition & 0 deletions td/telegram/net/SessionProxy.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@

#include "td/actor/PromiseFuture.h"

#include "td/utils/common.h"
#include "td/utils/logging.h"
#include "td/utils/Slice.h"

Expand Down
3 changes: 2 additions & 1 deletion tdactor/td/actor/SleepActor.h
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
8 changes: 3 additions & 5 deletions tdactor/td/actor/impl/Actor.h
Original file line number Diff line number Diff line change
Expand Up @@ -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"

Expand Down Expand Up @@ -115,8 +115,7 @@ inline ActorId<> Actor::actor_id() {
}
template <class SelfT>
ActorId<SelfT> Actor::actor_id(SelfT *self) {
LOG_CHECK(static_cast<Actor *>(self) == this)
<< self << " " << static_cast<Actor *>(self) << " " << this << " " << empty();
CHECK(static_cast<Actor *>(self) == this);
return ActorId<SelfT>(info_.get_weak());
}

Expand All @@ -125,8 +124,7 @@ inline ActorShared<> Actor::actor_shared() {
}
template <class SelfT>
ActorShared<SelfT> Actor::actor_shared(SelfT *self, uint64 id) {
LOG_CHECK(static_cast<Actor *>(self) == this)
<< self << " " << static_cast<Actor *>(self) << " " << this << " " << empty();
CHECK(static_cast<Actor *>(self) == this);
return ActorShared<SelfT>(actor_id(self), id);
}

Expand Down
1 change: 1 addition & 0 deletions tdactor/td/actor/impl/Scheduler.h
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
1 change: 1 addition & 0 deletions tdactor/test/actors_main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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"

Expand Down
1 change: 1 addition & 0 deletions tdactor/test/actors_simple.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
1 change: 1 addition & 0 deletions tddb/td/db/SqliteDb.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
1 change: 1 addition & 0 deletions tddb/td/db/SqliteKeyValueAsync.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@

#include "td/actor/actor.h"

#include "td/utils/common.h"
#include "td/utils/optional.h"
#include "td/utils/Time.h"

Expand Down
1 change: 1 addition & 0 deletions tdnet/td/net/GetHostByNameActor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
1 change: 1 addition & 0 deletions tdnet/td/net/HttpConnectionBase.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
1 change: 1 addition & 0 deletions tdnet/td/net/HttpProxy.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
1 change: 1 addition & 0 deletions tdnet/td/net/Socks5.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
1 change: 1 addition & 0 deletions tdnet/td/net/SslStream.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
Loading

0 comments on commit 9b42166

Please sign in to comment.