mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-19 00:41:43 +00:00
[build] Fix clang-tidy warnings (#8343)
This commit is contained in:
@@ -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 {
|
||||
|
||||
@@ -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} {}
|
||||
|
||||
Reference in New Issue
Block a user