File tree Expand file tree Collapse file tree 4 files changed +0
-10
lines changed
Expand file tree Collapse file tree 4 files changed +0
-10
lines changed Original file line number Diff line number Diff line change @@ -44,8 +44,6 @@ struct TurnIndexBlock
4444 NodeID to_id;
4545};
4646#pragma pack(pop)
47- // Note: Conditions are split into separate static_asserts to avoid
48- // clang-tidy misc-redundant-expression warning.
4947static_assert (std::is_trivially_default_constructible<TurnIndexBlock>::value,
5048 " TurnIndexBlock must be trivially default constructible." );
5149static_assert (std::is_trivially_copyable<TurnIndexBlock>::value,
Original file line number Diff line number Diff line change @@ -68,8 +68,6 @@ using FloatLongitude = Alias<double, tag::longitude>;
6868// range checks on these (toFixed/toFloat, etc)
6969using UnsafeFloatLatitude = Alias<double , tag::unsafelatitude>;
7070using UnsafeFloatLongitude = Alias<double , tag::unsafelongitude>;
71- // Note: Conditions are split into separate static_asserts to avoid
72- // clang-tidy misc-redundant-expression warning.
7371static_assert (std::is_standard_layout<FixedLatitude>(), " FixedLatitude must have standard layout." );
7472static_assert (std::is_trivially_default_constructible<FixedLatitude>(),
7573 " FixedLatitude must be trivially default constructible." );
Original file line number Diff line number Diff line change @@ -32,8 +32,6 @@ struct FingerPrint
3232};
3333
3434static_assert (sizeof (FingerPrint) == 8 , " FingerPrint has unexpected size" );
35- // Note: Conditions are split into separate static_asserts to avoid
36- // clang-tidy misc-redundant-expression warning.
3735static_assert (std::is_trivially_default_constructible<FingerPrint>::value,
3836 " FingerPrint needs to be trivially default constructible." );
3937static_assert (std::is_trivially_copyable<FingerPrint>::value,
Original file line number Diff line number Diff line change @@ -69,16 +69,12 @@ struct turn_penalty
6969} // namespace tag
7070
7171using OSMNodeID = osrm::Alias<std::uint64_t , tag::osm_node_id>;
72- // Note: Conditions are split into separate static_asserts to avoid
73- // clang-tidy misc-redundant-expression warning.
7472static_assert (std::is_standard_layout<OSMNodeID>(), " OSMNodeID must have standard layout." );
7573static_assert (std::is_trivially_default_constructible<OSMNodeID>(),
7674 " OSMNodeID must be trivially default constructible." );
7775static_assert (std::is_trivially_copyable<OSMNodeID>(), " OSMNodeID must be trivially copyable." );
7876
7977using OSMWayID = osrm::Alias<std::uint64_t , tag::osm_way_id>;
80- // Note: Conditions are split into separate static_asserts to avoid
81- // clang-tidy misc-redundant-expression warning.
8278static_assert (std::is_standard_layout<OSMWayID>(), " OSMWayID must have standard layout." );
8379static_assert (std::is_trivially_default_constructible<OSMWayID>(),
8480 " OSMWayID must be trivially default constructible." );
You can’t perform that action at this time.
0 commit comments