mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-21 01:01:43 +00:00
Remove spaces in NOLINT comments (#5407)
clang-tidy ignores the category filter if there's a space. wpiformat now ignores categories it doesn't understand, so we can remove the spaces.
This commit is contained in:
@@ -32,7 +32,7 @@ class CommandPtr final {
|
||||
: m_ptr(std::move(command)) {}
|
||||
|
||||
template <std::derived_from<Command> T>
|
||||
// NOLINTNEXTLINE (bugprone-forwarding-reference-overload)
|
||||
// NOLINTNEXTLINE(bugprone-forwarding-reference-overload)
|
||||
explicit CommandPtr(T&& command)
|
||||
: CommandPtr(
|
||||
std::make_unique<std::decay_t<T>>(std::forward<T>(command))) {}
|
||||
|
||||
@@ -69,7 +69,7 @@ class PerpetualCommand : public CommandHelper<CommandBase, PerpetualCommand> {
|
||||
"be valid. This was unsafe/undefined behavior from the start, and "
|
||||
"RepeatCommand provides an easy way to achieve similar end results "
|
||||
"with slightly different (and safe) semantics.")
|
||||
// NOLINTNEXTLINE (bugprone-forwarding-reference-overload)
|
||||
// NOLINTNEXTLINE(bugprone-forwarding-reference-overload)
|
||||
explicit PerpetualCommand(T&& command)
|
||||
: PerpetualCommand(
|
||||
std::make_unique<std::decay_t<T>>(std::forward<T>(command))) {}
|
||||
|
||||
@@ -46,7 +46,7 @@ class RepeatCommand : public CommandHelper<CommandBase, RepeatCommand> {
|
||||
* @param command the command to run repeatedly
|
||||
*/
|
||||
template <std::derived_from<Command> T>
|
||||
// NOLINTNEXTLINE (bugprone-forwarding-reference-overload)
|
||||
// NOLINTNEXTLINE(bugprone-forwarding-reference-overload)
|
||||
explicit RepeatCommand(T&& command)
|
||||
: RepeatCommand(
|
||||
std::make_unique<std::decay_t<T>>(std::forward<T>(command))) {}
|
||||
|
||||
@@ -41,7 +41,7 @@ class WrapperCommand : public CommandHelper<CommandBase, WrapperCommand> {
|
||||
* command or add it to a group will throw an exception.
|
||||
*/
|
||||
template <std::derived_from<Command> T>
|
||||
// NOLINTNEXTLINE (bugprone-forwarding-reference-overload)
|
||||
// NOLINTNEXTLINE(bugprone-forwarding-reference-overload)
|
||||
explicit WrapperCommand(T&& command)
|
||||
: WrapperCommand(
|
||||
std::make_unique<std::decay_t<T>>(std::forward<T>(command))) {}
|
||||
|
||||
Reference in New Issue
Block a user