Skip to content

Commit b0a2564

Browse files
committed
Fix formatting of foreach function.
GitOrigin-RevId: de355b5e5877428c75a167f4bff1e2514b5e0577
1 parent b0dfc08 commit b0a2564

4 files changed

Lines changed: 6 additions & 5 deletions

File tree

‎.clang-format‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ DerivePointerAlignment: true
5555
DisableFormat: false
5656
ExperimentalAutoDetectBinPacking: false
5757
FixNamespaceComments: true
58-
# ForEachMacros: [ foreach, Q_FOREACH, BOOST_FOREACH ]
58+
ForEachMacros: [ Q_FOREACH_THIS_LIST_MUST_BE_NON_EMPTY ]
5959
IndentCaseLabels: true
6060
IndentPPDirectives: None
6161
IndentWidth: 2

‎tddb/td/db/SeqKeyValue.h‎

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
#include <unordered_map>
1212

1313
namespace td {
14+
1415
class SeqKeyValue {
1516
public:
1617
using SeqNo = uint64;
@@ -51,7 +52,7 @@ class SeqKeyValue {
5152
}
5253

5354
template <class F>
54-
void foreach (const F &f) {
55+
void foreach(const F &f) {
5556
for (auto &it : map_) {
5657
f(it.first, it.second);
5758
}
@@ -75,4 +76,5 @@ class SeqKeyValue {
7576
return ++current_id_;
7677
}
7778
};
79+
7880
} // namespace td

‎tddb/td/db/SqliteKeyValue.h‎

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -82,9 +82,6 @@ class SqliteKeyValue {
8282
void close() {
8383
clear();
8484
}
85-
void close_silent() {
86-
clear();
87-
}
8885
static Status destroy(Slice name) {
8986
return SqliteDb::destroy(name);
9087
}

‎tddb/td/db/TsSeqKeyValue.h‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
#include <utility>
1616

1717
namespace td {
18+
1819
class TsSeqKeyValue {
1920
public:
2021
using SeqNo = SeqKeyValue::SeqNo;
@@ -68,4 +69,5 @@ class TsSeqKeyValue {
6869
RwMutex rw_mutex_;
6970
SeqKeyValue kv_;
7071
};
72+
7173
} // namespace td

0 commit comments

Comments
 (0)