Skip to content

Commit a37be47

Browse files
committed
[Jenkins] auto-formatting by clang-format version 6.0.0-1ubuntu2 (tags/RELEASE_600/final)
1 parent a589de9 commit a37be47

File tree

2 files changed

+9
-11
lines changed

2 files changed

+9
-11
lines changed

stan/math/prim/fun/eval.hpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ namespace math {
1616
* @return Forwarded input argument
1717
**/
1818
template <typename T,
19-
require_same_t<std::decay_t<T>, plain_type_t<T>>* = nullptr>
19+
require_same_t<std::decay_t<T>, plain_type_t<T>>* = nullptr>
2020
inline decltype(auto) eval(T&& arg) {
2121
return std::forward<T>(arg);
2222
}
@@ -30,7 +30,7 @@ inline decltype(auto) eval(T&& arg) {
3030
* @return Eval'd argument
3131
**/
3232
template <typename T,
33-
require_not_same_t<std::decay_t<T>, plain_type_t<T>>* = nullptr>
33+
require_not_same_t<std::decay_t<T>, plain_type_t<T>>* = nullptr>
3434
inline decltype(auto) eval(const T& arg) {
3535
return arg.eval();
3636
}

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

Lines changed: 7 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -149,9 +149,8 @@ TEST(MathFunctions, eval_return_type_short_circuit_std_vector) {
149149
TEST(MathFunctions, eval_return_type_short_circuit_vector_xd) {
150150
Eigen::Matrix<double, Eigen::Dynamic, 1> a(5);
151151
const Eigen::Matrix<double, Eigen::Dynamic, 1> b(5);
152-
EXPECT_TRUE(
153-
(std::is_same<decltype(stan::math::eval(a)),
154-
Eigen::Matrix<double, Eigen::Dynamic, 1>&>::value));
152+
EXPECT_TRUE((std::is_same<decltype(stan::math::eval(a)),
153+
Eigen::Matrix<double, Eigen::Dynamic, 1>&>::value));
155154
EXPECT_TRUE(
156155
(std::is_same<decltype(stan::math::eval(b)),
157156
const Eigen::Matrix<double, Eigen::Dynamic, 1>&>::value));
@@ -160,9 +159,8 @@ TEST(MathFunctions, eval_return_type_short_circuit_vector_xd) {
160159
TEST(MathFunctions, eval_return_type_short_circuit_row_vector_xd) {
161160
Eigen::Matrix<double, 1, Eigen::Dynamic> a(5);
162161
const Eigen::Matrix<double, 1, Eigen::Dynamic> b(5);
163-
EXPECT_TRUE(
164-
(std::is_same<decltype(stan::math::eval(a)),
165-
Eigen::Matrix<double, 1, Eigen::Dynamic>&>::value));
162+
EXPECT_TRUE((std::is_same<decltype(stan::math::eval(a)),
163+
Eigen::Matrix<double, 1, Eigen::Dynamic>&>::value));
166164
EXPECT_TRUE(
167165
(std::is_same<decltype(stan::math::eval(b)),
168166
const Eigen::Matrix<double, 1, Eigen::Dynamic>&>::value));
@@ -171,9 +169,9 @@ TEST(MathFunctions, eval_return_type_short_circuit_row_vector_xd) {
171169
TEST(MathFunctions, eval_return_type_short_circuit_matrix_xd) {
172170
Eigen::Matrix<double, Eigen::Dynamic, Eigen::Dynamic> a(5, 4);
173171
const Eigen::Matrix<double, Eigen::Dynamic, Eigen::Dynamic> b(5, 4);
174-
EXPECT_TRUE((std::is_same<decltype(stan::math::eval(a)),
175-
Eigen::Matrix<double, Eigen::Dynamic,
176-
Eigen::Dynamic>&>::value));
172+
EXPECT_TRUE((std::is_same<
173+
decltype(stan::math::eval(a)),
174+
Eigen::Matrix<double, Eigen::Dynamic, Eigen::Dynamic>&>::value));
177175
EXPECT_TRUE((std::is_same<decltype(stan::math::eval(b)),
178176
const Eigen::Matrix<double, Eigen::Dynamic,
179177
Eigen::Dynamic>&>::value));

0 commit comments

Comments
 (0)