Skip to content

Commit 60231ca

Browse files
generatedunixname89002005287564facebook-github-bot
generatedunixname89002005287564
authored andcommitted
Fix CQS signal. Id] 76330863 -- modernize-concat-nested-namespaces in fbcode/proxygen/lib/http/codec/compress
Reviewed By: hanidamlaj Differential Revision: D74476940 fbshipit-source-id: 3398d5c7b291ce49c025b575096c3972a031aa14
1 parent 1c0653d commit 60231ca

File tree

11 files changed

+22
-22
lines changed

11 files changed

+22
-22
lines changed

proxygen/lib/http/codec/compress/HPACKCodec.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,9 @@
1818
#include <string>
1919
#include <vector>
2020

21-
namespace folly { namespace io {
21+
namespace folly::io {
2222
class Cursor;
23-
}} // namespace folly::io
23+
} // namespace folly::io
2424

2525
namespace proxygen {
2626

proxygen/lib/http/codec/compress/HPACKConstants.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
#include <iosfwd>
1212
#include <stdint.h>
1313

14-
namespace proxygen { namespace HPACK {
14+
namespace proxygen::HPACK {
1515

1616
struct Instruction {
1717
uint8_t code;
@@ -91,4 +91,4 @@ enum class DecodeError : uint8_t {
9191
};
9292

9393
std::ostream& operator<<(std::ostream& os, DecodeError err);
94-
}} // namespace proxygen::HPACK
94+
} // namespace proxygen::HPACK

proxygen/lib/http/codec/compress/HPACKStreamingCallback.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
#include <proxygen/lib/http/codec/compress/HPACKHeaderName.h>
1313
#include <proxygen/lib/http/codec/compress/HeaderCodec.h>
1414

15-
namespace proxygen { namespace HPACK {
15+
namespace proxygen::HPACK {
1616
class StreamingCallback {
1717
public:
1818
virtual ~StreamingCallback() {
@@ -26,4 +26,4 @@ class StreamingCallback {
2626
HeaderCodec::Stats* stats{nullptr};
2727
};
2828

29-
}} // namespace proxygen::HPACK
29+
} // namespace proxygen::HPACK

proxygen/lib/http/codec/compress/Header.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
#include <proxygen/lib/http/HTTPHeaders.h>
1212
#include <string>
1313

14-
namespace proxygen { namespace compress {
14+
namespace proxygen::compress {
1515

1616
/**
1717
* Helper structure used when serializing the uncompressed
@@ -48,4 +48,4 @@ struct Header {
4848
}
4949
};
5050

51-
}} // namespace proxygen::compress
51+
} // namespace proxygen::compress

proxygen/lib/http/codec/compress/HeaderCodec.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,9 @@ class IOBuf;
2121
class IOBufQueue;
2222
} // namespace folly
2323

24-
namespace folly { namespace io {
24+
namespace folly::io {
2525
class Cursor;
26-
}} // namespace folly::io
26+
} // namespace folly::io
2727

2828
namespace proxygen {
2929

proxygen/lib/http/codec/compress/HeaderPiece.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414

1515
#include <folly/Range.h>
1616

17-
namespace proxygen { namespace compress {
17+
namespace proxygen::compress {
1818

1919
/**
2020
* in-place representation of a header name or value
@@ -57,4 +57,4 @@ class HeaderPiece {
5757

5858
using HeaderPieceList = std::deque<HeaderPiece>;
5959

60-
}} // namespace proxygen::compress
60+
} // namespace proxygen::compress

proxygen/lib/http/codec/compress/Huffman.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414

1515
using std::pair;
1616

17-
namespace proxygen { namespace huffman {
17+
namespace proxygen::huffman {
1818

1919
// These constants were decided upon empirically
2020
constexpr static uint32_t kHuffmanDecodeSpaceNumerator = 3;
@@ -273,4 +273,4 @@ const HuffTree& huffTree() {
273273
return *huffTree;
274274
}
275275

276-
}} // namespace proxygen::huffman
276+
} // namespace proxygen::huffman

proxygen/lib/http/codec/compress/Huffman.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
#include <proxygen/lib/http/codec/compress/HPACKConstants.h>
1515
#include <string>
1616

17-
namespace proxygen { namespace huffman {
17+
namespace proxygen::huffman {
1818

1919
// size of the huffman tables (codes and bits)
2020
const uint32_t kTableSize = 256;
@@ -159,4 +159,4 @@ class HuffTree {
159159

160160
const HuffTree& huffTree();
161161

162-
}} // namespace proxygen::huffman
162+
} // namespace proxygen::huffman

proxygen/lib/http/codec/compress/QPACKCodec.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,9 @@
1818
#include <string>
1919
#include <vector>
2020

21-
namespace folly { namespace io {
21+
namespace folly::io {
2222
class Cursor;
23-
}} // namespace folly::io
23+
} // namespace folly::io
2424

2525
namespace proxygen {
2626

proxygen/lib/http/codec/compress/test/TestUtil.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ using std::string;
2222
using std::unique_ptr;
2323
using std::vector;
2424

25-
namespace proxygen { namespace hpack {
25+
namespace proxygen::hpack {
2626

2727
void dumpToFile(const string& filename, const IOBuf* buf) {
2828
ofstream outfile(filename, ofstream::binary);
@@ -123,4 +123,4 @@ vector<compress::Header> basicHeaders() {
123123
return headers;
124124
}
125125

126-
}} // namespace proxygen::hpack
126+
} // namespace proxygen::hpack

proxygen/lib/http/codec/compress/test/TestUtil.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
#include <proxygen/lib/http/codec/compress/QPACKEncoder.h>
1818
#include <string>
1919

20-
namespace proxygen { namespace hpack {
20+
namespace proxygen::hpack {
2121

2222
void dumpToFile(const std::string& filename, const folly::IOBuf* buf);
2323

@@ -92,4 +92,4 @@ class TestHeaderCodecStats : public HeaderCodec::Stats {
9292
uint32_t tooLarge{0};
9393
};
9494

95-
}} // namespace proxygen::hpack
95+
} // namespace proxygen::hpack

0 commit comments

Comments
 (0)