[build] Fix clang-tidy warnings (#8343)

This commit is contained in:
Tyler Veness
2025-11-08 14:07:00 -08:00
committed by GitHub
parent 161f8d107b
commit aeedfa588c
2 changed files with 2 additions and 0 deletions

View File

@@ -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 {

View File

@@ -103,6 +103,7 @@ class StringMap : public std::map<std::string, T, std::less<>, Allocator> {
* with
* @param alloc allocator to use for all memory allocations of this container
*/
// NOLINTNEXTLINE (google-explicit-constructor)
StringMap(std::initializer_list<value_type> init,
const Allocator& alloc = Allocator())
: map_type{init, alloc} {}