Skip to content

Commit f57cf66

Browse files
committed
[Jenkins] auto-formatting by clang-format version 10.0.0-4ubuntu1
1 parent 586613a commit f57cf66

3 files changed

Lines changed: 8 additions & 7 deletions

File tree

stan/math/prim/fun/value_of.hpp

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -34,9 +34,11 @@ inline decltype(auto) value_of(T&& x) {
3434
return x;
3535
}
3636
} else {
37-
return make_holder([](auto&& m) -> decltype(auto) {
38-
return std::forward<decltype(m)>(m);
39-
}, std::forward<T>(x));
37+
return make_holder(
38+
[](auto&& m) -> decltype(auto) {
39+
return std::forward<decltype(m)>(m);
40+
},
41+
std::forward<T>(x));
4042
}
4143
} else {
4244
if constexpr (std::is_rvalue_reference_v<T&&>) {

stan/math/prim/meta/holder.hpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -323,8 +323,8 @@ inline auto holder_handle_element(T&& a, T*& res) {
323323
* @return `holder` referencing given expression
324324
*/
325325
template <typename T, std::size_t... Is, typename... Args>
326-
inline auto make_holder_impl_construct_object(T&& expr, std::index_sequence<Is...>,
327-
const std::tuple<Args*...>& ptrs) {
326+
inline auto make_holder_impl_construct_object(
327+
T&& expr, std::index_sequence<Is...>, const std::tuple<Args*...>& ptrs) {
328328
return holder(std::forward<T>(expr), std::get<Is>(ptrs)...);
329329
}
330330

@@ -339,7 +339,7 @@ inline auto make_holder_impl_construct_object(T&& expr, std::index_sequence<Is..
339339
*/
340340
template <typename F, std::size_t... Is, typename... Args>
341341
inline auto make_holder_impl(F&& func, std::index_sequence<Is...>,
342-
Args&&... args) {
342+
Args&&... args) {
343343
std::tuple<std::remove_reference_t<Args>*...> res;
344344
auto ptrs = std::tuple_cat(
345345
holder_handle_element(std::forward<Args>(args), std::get<Is>(res))...);

test/unit/math/prim/fun/value_of_test.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -204,4 +204,3 @@ TEST(MathFunctions, value_of_return_type_short_circuit_static_sized_matrix) {
204204
EXPECT_TRUE((std::is_same<decltype(stan::math::value_of(b)),
205205
const Eigen::Matrix<double, 5, 4>&>::value));
206206
}
207-

0 commit comments

Comments
 (0)