Skip to content

Commit 06368da

Browse files
committed
Remove unnamed namespace from ondemand
1 parent 0b68077 commit 06368da

File tree

90 files changed

+1601
-187
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

90 files changed

+1601
-187
lines changed

benchmark/kostya/iter.h

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66
#include "kostya.h"
77

88
namespace kostya {
9-
namespace {
109

1110
using namespace simdjson;
1211
using namespace SIMDJSON_IMPLEMENTATION;
@@ -54,10 +53,8 @@ simdjson_really_inline bool Iter::Run(const padded_string &json) {
5453

5554
BENCHMARK_TEMPLATE(Kostya, Iter);
5655

57-
} // unnamed namespace
5856

5957
namespace sum {
60-
namespace {
6158

6259
class Iter {
6360
public:
@@ -95,7 +92,6 @@ simdjson_really_inline bool Iter::Run(const padded_string &json) {
9592

9693
BENCHMARK_TEMPLATE(KostyaSum, Iter);
9794

98-
} // unnamed namespace
9995
} // namespace sum
10096
} // namespace kostya
10197

benchmark/kostya/ondemand.h

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66
#include "kostya.h"
77

88
namespace kostya {
9-
namespace {
109

1110
using namespace simdjson;
1211
using namespace SIMDJSON_IMPLEMENTATION;
@@ -40,10 +39,8 @@ simdjson_really_inline bool OnDemand::Run(const padded_string &json) {
4039

4140
BENCHMARK_TEMPLATE(Kostya, OnDemand);
4241

43-
} // unnamed namespace
4442

4543
namespace sum {
46-
namespace {
4744

4845
class OnDemand {
4946
public:
@@ -75,7 +72,6 @@ simdjson_really_inline bool OnDemand::Run(const padded_string &json) {
7572

7673
BENCHMARK_TEMPLATE(KostyaSum, OnDemand);
7774

78-
} // unnamed namespace
7975
} // namespace sum
8076
} // namespace kostya
8177

benchmark/largerandom/iter.h

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66
#include "largerandom.h"
77

88
namespace largerandom {
9-
namespace {
109

1110
using namespace simdjson;
1211
using namespace SIMDJSON_IMPLEMENTATION;
@@ -51,10 +50,8 @@ simdjson_really_inline bool Iter::Run(const padded_string &json) {
5150

5251
BENCHMARK_TEMPLATE(LargeRandom, Iter);
5352

54-
} // unnamed namespace
5553

5654
namespace sum {
57-
namespace {
5855

5956
class Iter {
6057
public:
@@ -91,7 +88,6 @@ simdjson_really_inline bool Iter::Run(const padded_string &json) {
9188

9289
BENCHMARK_TEMPLATE(LargeRandomSum, Iter);
9390

94-
} // unnamed namespace
9591
} // namespace sum
9692
} // namespace largerandom
9793

benchmark/largerandom/ondemand.h

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66
#include "largerandom.h"
77

88
namespace largerandom {
9-
namespace {
109

1110
using namespace simdjson;
1211
using namespace SIMDJSON_IMPLEMENTATION;
@@ -37,10 +36,8 @@ simdjson_really_inline bool OnDemand::Run(const padded_string &json) {
3736

3837
BENCHMARK_TEMPLATE(LargeRandom, OnDemand);
3938

40-
} // unnamed namespace
4139

4240
namespace sum {
43-
namespace {
4441

4542
class OnDemand {
4643
public:
@@ -72,7 +69,6 @@ simdjson_really_inline bool OnDemand::Run(const padded_string &json) {
7269

7370
BENCHMARK_TEMPLATE(LargeRandomSum, OnDemand);
7471

75-
} // unnamed namespace
7672
} // namespace sum
7773
} // namespace largerandom
7874

benchmark/largerandom/sax.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66
#include "largerandom.h"
77

88
namespace largerandom {
9-
namespace {
109

1110
using namespace simdjson;
1211
using namespace SIMDJSON_IMPLEMENTATION;
@@ -121,7 +120,6 @@ error_code Sax::Allocate(size_t new_capacity) {
121120

122121
BENCHMARK_TEMPLATE(LargeRandom, Sax);
123122

124-
}
125123
} // namespace largerandom
126124

127125
#endif // SIMDJSON_EXCEPTIONS

benchmark/partial_tweets/iter.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66
#include "partial_tweets.h"
77

88
namespace partial_tweets {
9-
namespace {
109

1110
using namespace simdjson;
1211
using namespace SIMDJSON_IMPLEMENTATION;
@@ -91,7 +90,6 @@ simdjson_really_inline bool Iter::Run(const padded_string &json) {
9190

9291
BENCHMARK_TEMPLATE(PartialTweets, Iter);
9392

94-
}
9593
} // namespace partial_tweets
9694

9795
#endif // SIMDJSON_EXCEPTIONS

benchmark/partial_tweets/ondemand.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66
#include "partial_tweets.h"
77

88
namespace partial_tweets {
9-
namespace {
109

1110
using namespace simdjson;
1211
using namespace SIMDJSON_IMPLEMENTATION;
@@ -56,7 +55,6 @@ simdjson_really_inline bool OnDemand::Run(const padded_string &json) {
5655

5756
BENCHMARK_TEMPLATE(PartialTweets, OnDemand);
5857

59-
}
6058
} // namespace partial_tweets
6159

6260
#endif // SIMDJSON_EXCEPTIONS

benchmark/partial_tweets/sax.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66
#include "sax_tweet_reader_visitor.h"
77

88
namespace partial_tweets {
9-
namespace {
109

1110
using namespace simdjson;
1211
using namespace SIMDJSON_IMPLEMENTATION;
@@ -67,7 +66,6 @@ error_code Sax::Allocate(size_t new_capacity) {
6766

6867
BENCHMARK_TEMPLATE(PartialTweets, Sax);
6968

70-
}
7169
} // namespace partial_tweets
7270

7371
#endif // SIMDJSON_IMPLEMENTATION

src/arm64/bitmanipulation.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
#ifndef SIMDJSON_ARM64_BITMANIPULATION_H
22
#define SIMDJSON_ARM64_BITMANIPULATION_H
33

4+
namespace SIMDJSON_IMPLEMENTATION {
45
namespace {
5-
namespace arm64 {
66

77
// We sometimes call trailing_zero on inputs that are zero,
88
// but the algorithms do not end up using the returned value.
@@ -55,7 +55,7 @@ simdjson_really_inline bool add_overflow(uint64_t value1, uint64_t value2, uint6
5555
#endif
5656
}
5757

58-
} // namespace arm64
5958
} // unnamed namespace
59+
} // namespace SIMDJSON_IMPLEMENTATION
6060

6161
#endif // SIMDJSON_ARM64_BITMANIPULATION_H

src/arm64/bitmask.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
#ifndef SIMDJSON_ARM64_BITMASK_H
22
#define SIMDJSON_ARM64_BITMASK_H
33

4+
namespace SIMDJSON_IMPLEMENTATION {
45
namespace {
5-
namespace arm64 {
66

77
//
88
// Perform a "cumulative bitwise xor," flipping bits each time a 1 is encountered.

0 commit comments

Comments
 (0)