Skip to content

Commit 8b4603a

Browse files
committed
style(discrete_field): Fix clang-format violation in deprecated interpolate method
Clang-format requires the return type to be on the same line as the [[deprecated]] attribute. This change moves "T &" to the same line as the attribute, fixing CI build failures in the format-check step. No functional changes - pure formatting fix.
1 parent feb5883 commit 8b4603a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

include/openpfc/discrete_field.hpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -440,8 +440,8 @@ template <typename T, size_t D> class DiscreteField {
440440
*
441441
* @see pfc::interpolate(DiscreteField&, const std::array<double,D>&)
442442
*/
443-
[[deprecated("Use pfc::interpolate(field, coords) free function instead")]]
444-
T &interpolate(const std::array<double, D> &coordinates) {
443+
[[deprecated("Use pfc::interpolate(field, coords) free function instead")]] T &
444+
interpolate(const std::array<double, D> &coordinates) {
445445
// Keep original implementation (can't call free function yet - not declared)
446446
return get_array()[(map_coordinates_to_indices(coordinates))];
447447
}

0 commit comments

Comments
 (0)