Skip to content

Commit a1c898f

Browse files
committed
Adding commonly used .clang-format CommentPragmas:
1 parent 5062135 commit a1c898f

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

.clang-format

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ BinPackParameters: false
99
BreakBeforeBinaryOperators: All
1010
BreakConstructorInitializers: BeforeColon
1111
ColumnLimit: 99
12+
CommentPragmas: 'NOLINT:.*|^ IWYU pragma:'
1213
IncludeBlocks: Regroup
1314
IndentCaseLabels: true
1415
IndentPPDirectives: AfterHash

tests/pybind11_tests.h

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,7 @@
55

66
#if defined(_MSC_VER) && _MSC_VER < 1910
77
// We get some really long type names here which causes MSVC 2015 to emit warnings
8-
# pragma warning( \
9-
disable : 4503) // warning C4503: decorated name length exceeded, name was truncated
8+
# pragma warning(disable : 4503) // NOLINT: warning C4503: decorated name length exceeded, name was truncated
109
#endif
1110

1211
namespace py = pybind11;

0 commit comments

Comments
 (0)