From aeedfa588c013f660b6b3be3e29cfab109615d4e Mon Sep 17 00:00:00 2001 From: Tyler Veness Date: Sat, 8 Nov 2025 14:07:00 -0800 Subject: [PATCH] [build] Fix clang-tidy warnings (#8343) --- .../src/main/native/include/wpi/math/trajectory/Trajectory.hpp | 1 + wpiutil/src/main/native/include/wpi/util/StringMap.hpp | 1 + 2 files changed, 2 insertions(+) diff --git a/wpimath/src/main/native/include/wpi/math/trajectory/Trajectory.hpp b/wpimath/src/main/native/include/wpi/math/trajectory/Trajectory.hpp index 935154ed91..37145cd062 100644 --- a/wpimath/src/main/native/include/wpi/math/trajectory/Trajectory.hpp +++ b/wpimath/src/main/native/include/wpi/math/trajectory/Trajectory.hpp @@ -93,6 +93,7 @@ class WPILIB_DLLEXPORT Trajectory { // interpolation is the change in position (delta s) divided by the total // distance between the two endpoints. const double interpolationFrac = + // NOLINTNEXTLINE (bugprone-integer-division) newS / endValue.pose.Translation().Distance(pose.Translation()); return { diff --git a/wpiutil/src/main/native/include/wpi/util/StringMap.hpp b/wpiutil/src/main/native/include/wpi/util/StringMap.hpp index 09be08458a..2d0a037b1f 100644 --- a/wpiutil/src/main/native/include/wpi/util/StringMap.hpp +++ b/wpiutil/src/main/native/include/wpi/util/StringMap.hpp @@ -103,6 +103,7 @@ class StringMap : public std::map, Allocator> { * with * @param alloc allocator to use for all memory allocations of this container */ + // NOLINTNEXTLINE (google-explicit-constructor) StringMap(std::initializer_list init, const Allocator& alloc = Allocator()) : map_type{init, alloc} {}