Commit e03bc64116c0478d7333f641f1667c8e98c3efa2
1 parent
1c279e64
chore: add clang-format (which is similar to Visual Studio preset)
Showing
4 changed files
with
17 additions
and
4 deletions
.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
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