Skip to content

Commit

Permalink
Update formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
tmadden committed Jan 2, 2021
1 parent a40d3f0 commit 171d34a
Show file tree
Hide file tree
Showing 6 changed files with 14 additions and 25 deletions.
2 changes: 1 addition & 1 deletion .clang-format
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ BreakAfterJavaFieldAnnotations: false
BreakStringLiterals: true
ColumnLimit: 79
CommentPragmas: '^ IWYU pragma:'
CompactNamespaces: false
CompactNamespaces: true
ConstructorInitializerAllOnOneLineOrOnePerLine: true
ConstructorInitializerIndentWidth: 4
ContinuationIndentWidth: 4
Expand Down
6 changes: 2 additions & 4 deletions src/alia/common.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,7 @@ typedef long long counter_type;

// Inspired by Boost, inheriting from noncopyable disables copying for a type.
// The namespace prevents unintended ADL if used by applications.
namespace detail {
namespace noncopyable_ {
namespace detail { namespace noncopyable_ {
struct noncopyable
{
noncopyable()
Expand All @@ -34,8 +33,7 @@ struct noncopyable
operator=(noncopyable const& other)
= delete;
};
} // namespace noncopyable_
} // namespace detail
}} // namespace detail::noncopyable_
typedef detail::noncopyable_::noncopyable noncopyable;

// general-purpose exception class for alia
Expand Down
8 changes: 2 additions & 6 deletions src/alia/context/storage.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,7 @@

#include <alia/context/structural_typing.hpp>

namespace alia {

namespace detail {
namespace alia { namespace detail {

// generic_tagged_storage is one possible implementation of the underlying
// container for storing the actual data associated with a tag.
Expand Down Expand Up @@ -168,8 +166,6 @@ struct tagged_data_accessor
}; \
}

} // namespace detail

} // namespace alia
}} // namespace alia::detail

#endif
3 changes: 1 addition & 2 deletions src/alia/timing/ticks.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,7 @@ get_animation_tick_count(dataless_context ctx)
millisecond_count
get_raw_animation_ticks_left(dataless_context ctx, millisecond_count end_time)
{
int ticks_remaining
= int(end_time - get<timing_tag>(ctx).tick_counter);
int ticks_remaining = int(end_time - get<timing_tag>(ctx).tick_counter);
if (ticks_remaining > 0)
{
if (is_refresh_event(ctx))
Expand Down
8 changes: 2 additions & 6 deletions src/alia/timing/waves.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,7 @@
#include <alia/signals/operators.hpp>
#include <alia/timing/timer.hpp>

namespace alia {

namespace detail {
namespace alia { namespace detail {

struct square_wave_data
{
Expand Down Expand Up @@ -45,6 +43,4 @@ square_wave(
return value(data.value);
}

} // namespace detail

} // namespace alia
}} // namespace alia::detail
12 changes: 6 additions & 6 deletions unit_tests/flow/for_each.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -327,8 +327,8 @@ TEST_CASE("item vector", "[flow][for_each]")

std::reverse(container.begin(), container.end());

// Since my_item defines get_alia_item_id(), the graph data properly follows
// the items around, so there are no additional calls.
// Since my_item defines get_alia_item_id(), the graph data properly
// follows the items around, so there are no additional calls.
check_traversal(sys, controller, "cherry;banana;apple;");
REQUIRE(call_count == 3);
}
Expand Down Expand Up @@ -568,8 +568,8 @@ TEST_CASE("item list", "[for_each][list]")

std::reverse(container.begin(), container.end());

// Since my_item defines get_alia_item_id(), the graph data properly follows
// the items around, so there are no additional calls.
// Since my_item defines get_alia_item_id(), the graph data properly
// follows the items around, so there are no additional calls.
check_traversal(sys, controller, "cherry;banana;apple;");
REQUIRE(call_count == 3);
}
Expand Down Expand Up @@ -654,8 +654,8 @@ TEST_CASE("for_each over a list of raw items", "[for_each][list]")

std::reverse(container.begin(), container.end());

// Since my_item defines get_alia_item_id(), the graph data properly follows
// the items around, so there are no additional calls.
// Since my_item defines get_alia_item_id(), the graph data properly
// follows the items around, so there are no additional calls.
check_traversal(sys, controller, "cherry;banana;apple;");
REQUIRE(call_count == 3);
}

0 comments on commit 171d34a

Please sign in to comment.