Skip to content

Commit bc0d811

Browse files
generatedunixname89002005287564facebook-github-bot
authored andcommitted
Reviewed By: dtolnay
Differential Revision: D65145762 fbshipit-source-id: f1df5d51c88cefa9088327cea89001a232e9f2f4
1 parent 26830c4 commit bc0d811

File tree

12 files changed

+12
-60
lines changed

12 files changed

+12
-60
lines changed

fatal/benchmark/prevent_optimization.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_benchmark_prevent_optimization_h
11-
#define FATAL_INCLUDE_fatal_benchmark_prevent_optimization_h
9+
#pragma once
1210

1311
#include <memory>
1412

@@ -29,5 +27,3 @@ inline void prevent_optimization(T const &what) {
2927
}
3028

3129
} // namespace fatal {
32-
33-
#endif // FATAL_INCLUDE_fatal_benchmark_prevent_optimization_h

fatal/codec/varint.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_codec_varint_h
11-
#define FATAL_INCLUDE_fatal_codec_varint_h
9+
#pragma once
1210

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

@@ -413,5 +411,3 @@ struct varint {
413411
};
414412

415413
} // namespace fatal {
416-
417-
#endif // FATAL_INCLUDE_fatal_codec_varint_h

fatal/container/circular_queue.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_circular_queue_h
11-
#define FATAL_INCLUDE_fatal_container_circular_queue_h
9+
#pragma once
1210

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

@@ -529,5 +527,3 @@ class circular_queue {
529527
} // namespace fatal {
530528

531529
FATAL_DIAGNOSTIC_POP
532-
533-
#endif // FATAL_INCLUDE_fatal_container_circular_queue_h

fatal/container/flag_set.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_flag_set_h
11-
#define FATAL_INCLUDE_fatal_container_flag_set_h
9+
#pragma once
1210

1311
#include <fatal/math/numerics.h>
1412
#include <fatal/type/bitwise.h>
@@ -797,5 +795,3 @@ struct flag_set {
797795
};
798796

799797
} // namespace fatal {
800-
801-
#endif // FATAL_INCLUDE_fatal_container_flag_set_h

fatal/container/legacy_variant.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_legacy_variant_h
11-
#define FATAL_INCLUDE_fatal_container_legacy_variant_h
9+
#pragma once
1210

1311
#include <fatal/container/optional.h>
1412
#include <fatal/container/unitary_union.h>
@@ -2136,5 +2134,3 @@ struct hash<fatal::variant<TStoragePolicy, Args...>> {
21362134
} // namespace std {
21372135

21382136
FATAL_DIAGNOSTIC_POP
2139-
2140-
#endif // FATAL_INCLUDE_fatal_container_legacy_variant_h

fatal/container/optional.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_optional_h
11-
#define FATAL_INCLUDE_fatal_container_optional_h
9+
#pragma once
1210

1311
#include <fatal/container/uninitialized.h>
1412
#include <fatal/type/traits.h>
@@ -237,5 +235,3 @@ class optional {
237235
};
238236

239237
} // namespace fatal {
240-
241-
#endif // FATAL_INCLUDE_fatal_container_optional_h

fatal/container/random_access_iterator.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_random_access_iterator_h
11-
#define FATAL_INCLUDE_fatal_container_random_access_iterator_h
9+
#pragma once
1210

1311
#include <fatal/type/traits.h>
1412

@@ -215,5 +213,3 @@ class random_access_iterator {
215213
};
216214

217215
} // namespace fatal {
218-
219-
#endif // FATAL_INCLUDE_fatal_container_random_access_iterator_h

fatal/container/runtime_array.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_runtime_array_h
11-
#define FATAL_INCLUDE_fatal_container_runtime_array_h
9+
#pragma once
1210

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

@@ -176,5 +174,3 @@ FATAL_DIAGNOSTIC_POP
176174
};
177175

178176
} // namespace fatal {
179-
180-
#endif // FATAL_INCLUDE_fatal_container_runtime_array_h

fatal/container/tuple.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_tuple_h
11-
#define FATAL_INCLUDE_fatal_container_tuple_h
9+
#pragma once
1210

1311
#include <fatal/container/tuple_tags.h>
1412
#include <fatal/type/list.h>
@@ -673,5 +671,3 @@ struct builder<tuple<T...>, Tag, Type, Args...>:
673671
} // namespace tuple_impl {
674672
} // namespace detail {
675673
} // namespace fatal {
676-
677-
#endif // FATAL_INCLUDE_fatal_container_tuple_h

fatal/container/tuple_tags.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_tuple_tags_h
11-
#define FATAL_INCLUDE_fatal_container_tuple_tags_h
9+
#pragma once
1210

1311
#include <fatal/type/find.h>
1412
#include <fatal/type/foreach.h>
@@ -236,5 +234,3 @@ using tuple_tags_from = typename reflect_template<T>::types
236234
::template apply<tuple_tags>;
237235

238236
} // namespace fatal {
239-
240-
#endif // FATAL_INCLUDE_fatal_container_tuple_tags_h

0 commit comments

Comments
 (0)