Skip to content

Commit 19e5027

Browse files
generatedunixname89002005287564facebook-github-bot
authored andcommitted
Reviewed By: dtolnay
Differential Revision: D65145853 fbshipit-source-id: 0f67479d98c35b19cfeaed019f2bdff575b44ef4
1 parent da868b5 commit 19e5027

File tree

12 files changed

+12
-59
lines changed

12 files changed

+12
-59
lines changed

fatal/container/variadic_union.h

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,7 @@
66
* LICENSE file in the root directory of this source tree. An additional grant
77
* of patent rights can be found in the PATENTS file in the same directory.
88
*/
9-
10-
#ifndef FATAL_INCLUDE_fatal_container_variadic_union_h
11-
#define FATAL_INCLUDE_fatal_container_variadic_union_h
9+
#pragma once
1210

1311
#include <fatal/math/numerics.h>
1412
#include <fatal/type/conditional.h>
@@ -441,5 +439,3 @@ struct variadic_union_impl<T0, T1, T2, T3, T4> {
441439

442440
} // namespace detail {
443441
} // namespace fatal {
444-
445-
#endif // FATAL_INCLUDE_fatal_container_variadic_union_h

fatal/container/variant.h

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,14 +6,10 @@
66
* LICENSE file in the root directory of this source tree. An additional grant
77
* of patent rights can be found in the PATENTS file in the same directory.
88
*/
9-
10-
#ifndef FATAL_INCLUDE_fatal_container_variant_h
11-
#define FATAL_INCLUDE_fatal_container_variant_h
9+
#pragma once
1210

1311
#include <fatal/container/legacy_variant.h>
1412

1513
namespace fatal {
1614

1715
} // namespace fatal {
18-
19-
#endif // FATAL_INCLUDE_fatal_container_variant_h

fatal/debug/debug.h

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,7 @@
66
* LICENSE file in the root directory of this source tree. An additional grant
77
* of patent rights can be found in the PATENTS file in the same directory.
88
*/
9-
10-
#ifndef FATAL_INCLUDE_fatal_debug_debug_h
11-
#define FATAL_INCLUDE_fatal_debug_debug_h
9+
#pragma once
1210

1311
// production build
1412
#ifdef NDEBUG
@@ -67,4 +65,3 @@ struct debug_block {
6765
} // namespace fatal {
6866

6967
#endif // NDEBUG
70-
#endif // FATAL_INCLUDE_fatal_debug_debug_h

fatal/functional/functional.h

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,7 @@
66
* LICENSE file in the root directory of this source tree. An additional grant
77
* of patent rights can be found in the PATENTS file in the same directory.
88
*/
9-
10-
#ifndef FATAL_INCLUDE_fatal_functional_functional_h
11-
#define FATAL_INCLUDE_fatal_functional_functional_h
9+
#pragma once
1210

1311
#include <fatal/functional/identity.h>
1412
#include <fatal/functional/no_op.h>
@@ -935,5 +933,3 @@ class tuple_comparer<Index> {
935933

936934
} // namespace fn {
937935
} // namespace fatal {
938-
939-
#endif // FATAL_INCLUDE_fatal_functional_functional_h

fatal/functional/identity.h

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,7 @@
66
* LICENSE file in the root directory of this source tree. An additional grant
77
* of patent rights can be found in the PATENTS file in the same directory.
88
*/
9-
10-
#ifndef FATAL_INCLUDE_fatal_functional_identity_h
11-
#define FATAL_INCLUDE_fatal_functional_identity_h
9+
#pragma once
1210

1311
#include <utility>
1412

@@ -46,5 +44,3 @@ struct identity {
4644

4745
} // namespace fn {
4846
} // namespace fatal {
49-
50-
#endif // FATAL_INCLUDE_fatal_functional_identity_h

fatal/functional/no_op.h

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,7 @@
66
* LICENSE file in the root directory of this source tree. An additional grant
77
* of patent rights can be found in the PATENTS file in the same directory.
88
*/
9-
10-
#ifndef FATAL_INCLUDE_fatal_functional_no_op_h
11-
#define FATAL_INCLUDE_fatal_functional_no_op_h
9+
#pragma once
1210

1311
namespace fatal {
1412
namespace fn {
@@ -25,5 +23,3 @@ struct no_op {
2523

2624
} // namespace fn {
2725
} // namespace fatal {
28-
29-
#endif // FATAL_INCLUDE_fatal_functional_no_op_h

fatal/lesson/lesson.h

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,7 @@
66
* LICENSE file in the root directory of this source tree. An additional grant
77
* of patent rights can be found in the PATENTS file in the same directory.
88
*/
9-
10-
#ifndef FATAL_INCLUDE_fatal_lesson_lesson_h
11-
#define FATAL_INCLUDE_fatal_lesson_lesson_h
9+
#pragma once
1210

1311
#include <fatal/test/test.h>
1412

@@ -359,5 +357,3 @@ Out &operator <<(Out &out, padding pad) {
359357
} // namespace detail {
360358
} // namespace lesson {
361359
} // namespace fatal {
362-
363-
#endif // FATAL_INCLUDE_fatal_lesson_lesson_h

fatal/log/log.h

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,7 @@
66
* LICENSE file in the root directory of this source tree. An additional grant
77
* of patent rights can be found in the PATENTS file in the same directory.
88
*/
9-
10-
#ifndef FATAL_INCLUDE_fatal_log_log_h
11-
#define FATAL_INCLUDE_fatal_log_log_h
9+
#pragma once
1210

1311
#include <fatal/preprocessor.h>
1412
#include <fatal/time/time.h>
@@ -222,5 +220,3 @@ log::detail::log_impl::logger<std::ostream, TInfo> log(source_info source) {
222220
#endif // NDEBUG
223221

224222
} // namespace fatal {
225-
226-
#endif // FATAL_INCLUDE_fatal_log_log_h

fatal/math/compile_time_rng.h

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,7 @@
66
* LICENSE file in the root directory of this source tree. An additional grant
77
* of patent rights can be found in the PATENTS file in the same directory.
88
*/
9-
10-
#ifndef FATAL_INCLUDE_fatal_math_compile_time_rng_h
11-
#define FATAL_INCLUDE_fatal_math_compile_time_rng_h
9+
#pragma once
1210

1311
#include <type_traits>
1412

@@ -259,5 +257,3 @@ struct helper {
259257
::fatal::detail::compile_time_rng_impl::helper<__LINE__>::bind
260258

261259
} // namespace fatal {
262-
263-
#endif // FATAL_INCLUDE_fatal_math_compile_time_rng_h

fatal/math/hash.h

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,7 @@
66
* LICENSE file in the root directory of this source tree. An additional grant
77
* of patent rights can be found in the PATENTS file in the same directory.
88
*/
9-
10-
#ifndef FATAL_INCLUDE_fatal_math_hash_h
11-
#define FATAL_INCLUDE_fatal_math_hash_h
9+
#pragma once
1210

1311
#include <fatal/math/numerics.h>
1412

@@ -152,5 +150,3 @@ class bytes_hasher {
152150
};
153151

154152
} // namespace fatail {
155-
156-
#endif // FATAL_INCLUDE_fatal_math_hash_h

0 commit comments

Comments
 (0)