Skip to content

Commit

Permalink
pre-commit run -a
Browse files Browse the repository at this point in the history
  • Loading branch information
nim65s committed Oct 8, 2024
1 parent 8983da8 commit 19a300b
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 11 deletions.
10 changes: 5 additions & 5 deletions include/crocoddyl/core/activations/smooth-abs.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,9 @@ class ActivationModelSmoothAbsTpl
typedef ActivationModelSmooth1NormTpl<Scalar> Base;

DEPRECATED("Use ActivationModelSmooth1Norm",
explicit ActivationModelSmoothAbsTpl(const std::size_t nr,
const Scalar eps = Scalar(1.))
: Base(nr, eps){};)
explicit ActivationModelSmoothAbsTpl(
const std::size_t nr,
const Scalar eps = Scalar(1.)) : Base(nr, eps){};)
};

template <typename Scalar>
Expand All @@ -39,8 +39,8 @@ struct ActivationDataSmoothAbsTpl

template <typename Activation>
DEPRECATED("Use ActivationDataSmooth1Norm",
explicit ActivationDataSmoothAbsTpl(Activation* const activation)
: Base(activation){})
explicit ActivationDataSmoothAbsTpl(
Activation* const activation) : Base(activation){})
};

} // namespace crocoddyl
Expand Down
10 changes: 4 additions & 6 deletions include/crocoddyl/core/utils/deprecate.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -43,19 +43,17 @@
#ifndef CROCODDYL_IGNORE_DEPRECATED_HEADER
#define CROCODDYL_PRAGMA_DEPRECATED_HEADER(old_header, new_header) \
CROCODDYL_PRAGMA_WARNING( \
Deprecated header file \
: old_header has been replaced by \
new_header.\n Please use new_header instead of old_header.)
Deprecated header file : old_header has been replaced by \
new_header.\n Please use new_header instead of old_header.)
#else
#define CROCODDYL_PRAGMA_DEPRECATED_HEADER(old_header, new_header)
#endif // CROCODDYL_IGNORE_DEPRECATED_HEADER

#ifndef CROCODDYL_IGNORE_DEPRECATED_HEADER
#define CROCODDYL_PRAGMA_TO_BE_REMOVED_HEADER(remove_header) \
CROCODDYL_PRAGMA_WARNING( \
Deprecated header file \
: remove_header has now been \
deprecated.\n It would be removed in the upcoming releases.)
Deprecated header file : remove_header has now been \
deprecated.\n It would be removed in the upcoming releases.)
#else
#define CROCODDYL_PRAGMA_TO_BE_REMOVED_HEADER(remove_header)
#endif // CROCODDYL_IGNORE_TO_BE_REMOVED_HEADER
Expand Down

0 comments on commit 19a300b

Please sign in to comment.