From 876d4150aa3da531ddd687b48afada6e43f79146 Mon Sep 17 00:00:00 2001 From: Martin Braun Date: Mon, 2 Mar 2020 15:25:13 -0800 Subject: uhd: Apply clang-format against all .cpp and .hpp files in host/ Note: template_lvbitx.{cpp,hpp} need to be excluded from the list of files that clang-format gets applied against. --- host/examples/wavetable.hpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'host/examples/wavetable.hpp') diff --git a/host/examples/wavetable.hpp b/host/examples/wavetable.hpp index 73401220f..216fe5012 100644 --- a/host/examples/wavetable.hpp +++ b/host/examples/wavetable.hpp @@ -34,7 +34,8 @@ public: } else if (wave_type == "SINE") { static const double tau = 2 * std::acos(-1.0); for (size_t i = 0; i < wave_table_len; i++) { - real_wave_table[i] = static_cast(std::sin((tau * i) / wave_table_len)); + real_wave_table[i] = + static_cast(std::sin((tau * i) / wave_table_len)); } } else { throw std::runtime_error("unknown waveform type: " + wave_type); -- cgit v1.2.3