Skip to content

Commit d25ecb1

Browse files
committed
Disable clang-format for catch.hpp
Do not impose formatting rules on imported code.
1 parent cca2b7f commit d25ecb1

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

unit/catch/catch.hpp

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,14 @@
88
* Distributed under the Boost Software License, Version 1.0. (See accompanying
99
* file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
1010
*/
11+
12+
#ifndef INCLUDED_VIA_USE_CATCH_H
13+
#error Do not include this file directly, use use_catch.h instead
14+
#endif
15+
16+
// this is imported code, don't impose formatting rules
17+
// clang-format off
18+
1119
#ifndef TWOBLUECUBES_SINGLE_INCLUDE_CATCH_HPP_INCLUDED
1220
#define TWOBLUECUBES_SINGLE_INCLUDE_CATCH_HPP_INCLUDED
1321

@@ -11418,3 +11426,4 @@ using Catch::Detail::Approx;
1141811426

1141911427
#endif // TWOBLUECUBES_SINGLE_INCLUDE_CATCH_HPP_INCLUDED
1142011428

11429+
// clang-format on

0 commit comments

Comments
 (0)