Skip to content

Commit 267c9ba

Browse files
authored
Extend clang-format checks list (learning-process#571)
1 parent d6e198c commit 267c9ba

File tree

3 files changed

+11
-7
lines changed

3 files changed

+11
-7
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

3rdparty/stb_library.hpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
#pragma once
22

33
#if defined(__clang__)
4-
#pragma clang diagnostic push
5-
#pragma clang diagnostic ignored "-Wcast-align"
4+
# pragma clang diagnostic push
5+
# pragma clang diagnostic ignored "-Wcast-align"
66
#endif
77

88
#include "stb/stb_image.h"
99

1010
#if defined(__clang__)
11-
#pragma clang diagnostic pop
11+
# pragma clang diagnostic pop
1212
#endif

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)