Commit e03bc64116c0478d7333f641f1667c8e98c3efa2

Authored by Patric Stout
1 parent 1c279e64

chore: add clang-format (which is similar to Visual Studio preset)

.clang-format 0 → 100644
  1 +{
  2 + BasedOnStyle: LLVM,
  3 + UseTab: Never,
  4 + IndentWidth: 4,
  5 + TabWidth: 4,
  6 + BreakBeforeBraces: Allman,
  7 + AllowShortIfStatementsOnASingleLine: false,
  8 + IndentCaseLabels: false,
  9 + ColumnLimit: 0,
  10 + AccessModifierOffset: -4,
  11 + NamespaceIndentation: All,
  12 + FixNamespaceComments: false,
  13 +}
... ...
src/Connection.cpp
... ... @@ -5,8 +5,8 @@
5 5 * LICENSE file in the root directory of this source tree.
6 6 */
7 7  
8   -#include "ClientImpl.h"
9 8 #include "Connection.h"
  9 +#include "ClientImpl.h"
10 10 #include "Log.h"
11 11  
12 12 #include <memory.h>
... ...
src/Connection.h
... ... @@ -13,11 +13,11 @@
13 13 #include <chrono>
14 14 #include <condition_variable>
15 15 #include <deque>
16   -#include <optional>
17   -#include <string>
18 16 #include <map>
19 17 #include <mutex>
20 18 #include <netdb.h>
  19 +#include <optional>
  20 +#include <string>
21 21 #include <thread>
22 22 #include <vector>
23 23  
... ...
src/Packet.cpp
... ... @@ -5,10 +5,10 @@
5 5 * LICENSE file in the root directory of this source tree.
6 6 */
7 7  
  8 +#include "Packet.h"
8 9 #include "ClientImpl.h"
9 10 #include "Connection.h"
10 11 #include "Log.h"
11   -#include "Packet.h"
12 12  
13 13 #include <magic_enum.hpp>
14 14 #include <string.h>
... ...