Skip to content

Commit dc295b8

Browse files
committed
Extend clang-format checks list
1 parent d6e198c commit dc295b8

File tree

2 files changed

+8
-4
lines changed

2 files changed

+8
-4
lines changed

.clang-format

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,10 @@ BasedOnStyle: Google
44
ColumnLimit: 120
55
UseTab: Never
66
AllowShortFunctionsOnASingleLine: Empty
7+
IndentPPDirectives: AfterHash
8+
SortIncludes: true
9+
FixNamespaceComments: true
10+
InsertBraces: true
711
QualifierAlignment: Left
812
PointerAlignment: Right
913
ReferenceAlignment: Right

modules/util/include/util.hpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,14 +8,14 @@
88
#include <string>
99
#include <typeinfo>
1010
#ifdef __GNUG__
11-
#include <cxxabi.h>
11+
# include <cxxabi.h>
1212
#endif
1313

1414
#include "nlohmann/json_fwd.hpp"
1515

1616
#ifdef _MSC_VER
17-
#pragma warning(push)
18-
#pragma warning(disable : 4459)
17+
# pragma warning(push)
18+
# pragma warning(disable : 4459)
1919
#endif
2020

2121
#include <nlohmann/json.hpp>
@@ -25,7 +25,7 @@ using NlohmannJsonParseError = nlohmann::json::parse_error;
2525
/// @brief JSON namespace used for settings and config typing.
2626
using NlohmannJsonTypeError = nlohmann::json::type_error;
2727
#ifdef _MSC_VER
28-
#pragma warning(pop)
28+
# pragma warning(pop)
2929
#endif
3030

3131
namespace ppc::util {

0 commit comments

Comments
 (0)