1
0
mirror of https://github.com/facebookincubator/mvfst.git synced 2025-04-18 17:24:03 +03:00

Fix includes

Summary:
```
find quic -name \*.h -o -name \*.cpp | xargs sed -i'' -E "s/#include \"(.*)\"/#include <\1>/"
arc lint -a --paths-cmd 'hg files quic/'
```

Reviewed By: mjoras

Differential Revision: D34199869

fbshipit-source-id: 3633cb8429b86c03ab367211d6a46dbe4fdd5ff2
This commit is contained in:
Luca Niccolini 2022-02-14 23:53:06 -08:00 committed by Facebook GitHub Bot
parent 626a94bdb5
commit 63ee419d75
27 changed files with 29 additions and 32 deletions

View File

@ -74,4 +74,3 @@ available at https://www.contributor-covenant.org/version/1/4/code-of-conduct.ht
For answers to common questions about this code of conduct, see
https://www.contributor-covenant.org/faq

View File

@ -1,4 +1,3 @@
![alt text](logo.png "MVFST")
[![Linux Build Status](https://github.com/facebookincubator/mvfst/workflows/linux/badge.svg)](https://github.com/facebookincubator/mvfst/actions?workflow=linux)

View File

@ -54,12 +54,12 @@ DerivePointerAlignment: false
DisableFormat: false
ExperimentalAutoDetectBinPacking: false
FixNamespaceComments: true
ForEachMacros:
ForEachMacros:
- FOR_EACH
- FOR_EACH_R
- FOR_EACH_RANGE
IncludeBlocks: Preserve
IncludeCategories:
IncludeCategories:
- Regex: '^<.*\.h(pp)?>'
Priority: 1
- Regex: '^<.*'
@ -112,4 +112,3 @@ SpacesInSquareBrackets: false
Standard: Cpp11
TabWidth: 8
UseTab: Never

View File

@ -5,8 +5,8 @@
* LICENSE file in the root directory of this source tree.
*/
#include <quic/QuicConstants.h>
#include <quic/QuicException.h>
#include "quic/QuicConstants.h"
#include <fizz/record/Types.h>
#include <glog/logging.h>

View File

@ -7,9 +7,9 @@
#pragma once
#include <quic/QuicConstants.h>
#include <stdexcept>
#include <string>
#include "quic/QuicConstants.h"
#include <quic/QuicConstants.h>
#include <quic/common/Variant.h>

View File

@ -20,8 +20,8 @@
#include <quic/state/QuicStreamUtilities.h>
#include <quic/state/StateData.h>
#include <folly/Portability.h>
#include <chrono>
#include "folly/Portability.h"
namespace folly {
class EventBase;
@ -866,7 +866,7 @@ class QuicSocket {
* Structure used to communicate cancellation of a ByteEvent.
*
* According to Dictionary.com, cancellation is more frequent in American
* English than cancelation. Yet in American English, the preferred style is
* English than cancellation. Yet in American English, the preferred style is
* typically not to double the final L, so cancel generally becomes canceled.
*/
using ByteEventCancellation = ByteEvent;

View File

@ -10,7 +10,7 @@
#include <folly/Random.h>
#include <quic/QuicConstants.h>
#include <quic/QuicException.h>
#include "quic/codec/QuicConnectionId.h"
#include <quic/codec/QuicConnectionId.h>
namespace {
// mask to extract process id bit from the connectionId

View File

@ -5,7 +5,7 @@
* LICENSE file in the root directory of this source tree.
*/
#include "quic/common/BufUtil.h"
#include <quic/common/BufUtil.h>
namespace quic {

View File

@ -5,7 +5,7 @@
* LICENSE file in the root directory of this source tree.
*/
#include "quic/common/SocketUtil.h"
#include <quic/common/SocketUtil.h>
using folly::AsyncUDPSocket;

View File

@ -5,7 +5,7 @@
* LICENSE file in the root directory of this source tree.
*/
#include "quic/common/Timers.h"
#include <quic/common/Timers.h>
#ifdef QUIC_USE_TIMERFD_TIMEOUT_MGR
namespace quic {

View File

@ -6,7 +6,7 @@
*/
#pragma once
#include "folly/io/async/HHWheelTimer.h"
#include <folly/io/async/HHWheelTimer.h>
#if !FOLLY_MOBILE
#define QUIC_USE_TIMERFD_TIMEOUT_MGR

View File

@ -26,7 +26,7 @@
#include <folly/io/async/test/MockAsyncUDPSocket.h>
#include <folly/ssl/Init.h>
#include "quic/codec/QuicConnectionId.h"
#include <quic/codec/QuicConnectionId.h>
namespace quic {
namespace test {

View File

@ -7,7 +7,7 @@
#include <folly/portability/GMock.h>
#include <folly/portability/GTest.h>
#include "quic/api/QuicTransportBase.h"
#include <quic/api/QuicTransportBase.h>
#include <folly/io/async/test/MockAsyncUDPSocket.h>
#include <quic/api/test/Mocks.h>

View File

@ -8,8 +8,8 @@
#pragma once
#include <folly/String.h>
#include <quic/QuicConstants.h>
#include <quic/codec/Types.h>
#include "quic/QuicConstants.h"
namespace quic {
constexpr folly::StringPiece kShortHeaderPacketType = "1RTT";

View File

@ -7,8 +7,8 @@
#include <folly/portability/GMock.h>
#include <folly/portability/GTest.h>
#include "quic/codec/Types.h"
#include "quic/state/AckEvent.h"
#include <quic/codec/Types.h>
#include <quic/state/AckEvent.h>
#include <folly/io/async/test/MockAsyncUDPSocket.h>
#include <folly/io/async/test/MockTimeoutManager.h>

View File

@ -8,10 +8,10 @@
#pragma once
#include <glog/logging.h>
#include <quic/QuicConstants.h>
#include <quic/QuicException.h>
#include <quic/codec/Types.h>
#include <quic/state/QuicTransportStatsCallback.h>
#include "quic/QuicConstants.h"
#include "quic/QuicException.h"
namespace quic {
namespace samples {

View File

@ -5,7 +5,7 @@
* LICENSE file in the root directory of this source tree.
*/
#include "quic/server/QuicCcpThreadLauncher.h"
#include <quic/server/QuicCcpThreadLauncher.h>
namespace quic {

View File

@ -5,7 +5,7 @@
* LICENSE file in the root directory of this source tree.
*/
#include "SlidingWindowRateLimiter.h"
#include <quic/server/SlidingWindowRateLimiter.h>
#include <cmath>

View File

@ -10,6 +10,7 @@
#include <folly/portability/GMock.h>
#include <folly/portability/GTest.h>
#include <folly/io/async/AsyncTransport.h>
#include <quic/api/test/Mocks.h>
#include <quic/client/QuicClientAsyncTransport.h>
#include <quic/client/QuicClientTransport.h>
@ -22,7 +23,6 @@
#include <quic/server/async_tran/QuicAsyncTransportServer.h>
#include <quic/server/async_tran/QuicServerAsyncTransport.h>
#include <quic/server/test/Mocks.h>
#include "folly/io/async/AsyncTransport.h"
using namespace testing;

View File

@ -5,8 +5,8 @@
* LICENSE file in the root directory of this source tree.
*/
#include <folly/io/IOBuf.h>
#include <quic/server/handshake/TokenGenerator.h>
#include "folly/io/IOBuf.h"
#include <folly/Range.h>
#include <quic/codec/Decode.h>

View File

@ -15,6 +15,7 @@
#include <quic/api/test/MockQuicSocket.h>
#include <quic/api/test/Mocks.h>
#include <quic/codec/DefaultConnectionIdAlgo.h>
#include <quic/codec/QuicConnectionId.h>
#include <quic/codec/QuicHeaderCodec.h>
#include <quic/codec/test/Mocks.h>
#include <quic/common/test/TestUtils.h>
@ -25,7 +26,6 @@
#include <quic/server/handshake/TokenGenerator.h>
#include <quic/server/test/Mocks.h>
#include <quic/state/test/MockQuicStats.h>
#include "quic/codec/QuicConnectionId.h"
using namespace testing;
using namespace folly;

View File

@ -7,10 +7,10 @@
#pragma once
#include <folly/container/F14Map.h>
#include <quic/codec/Types.h>
#include <quic/state/LossState.h>
#include <quic/state/PacketEvent.h>
#include "folly/container/F14Map.h"
namespace quic {

View File

@ -5,7 +5,7 @@
* LICENSE file in the root directory of this source tree.
*/
#include "quic/state/QuicPriorityQueue.h"
#include <quic/state/QuicPriorityQueue.h>
namespace quic {

View File

@ -9,7 +9,7 @@
#include <folly/io/async/EventBase.h>
#include <folly/portability/GMock.h>
#include "quic/QuicException.h"
#include <quic/QuicException.h>
#include <quic/state/QuicTransportStatsCallback.h>

View File

@ -7,7 +7,7 @@
#include <gmock/gmock.h>
#include <gtest/gtest.h>
#include "quic/state/OutstandingPacket.h"
#include <quic/state/OutstandingPacket.h>
#include <quic/common/test/TestUtils.h>
#include <quic/fizz/server/handshake/FizzServerQuicHandshakeContext.h>

View File

@ -7,7 +7,7 @@
#include <gmock/gmock.h>
#include <gtest/gtest.h>
#include "quic/state/QuicStreamUtilities.h"
#include <quic/state/QuicStreamUtilities.h>
#include <quic/state/QuicStreamFunctions.h>
#include <quic/state/QuicStreamUtilities.h>

View File

@ -9,8 +9,8 @@
#include <gtest/gtest.h>
#include <quic/common/test/TestUtils.h>
#include <quic/state/LossState.h>
#include <quic/state/StateData.h>
#include "quic/state/LossState.h"
using namespace quic;
using namespace testing;