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:
Tyler Veness
2023-06-20 20:29:23 -07:00
committed by GitHub
parent 3a0e484691
commit 5d3a133f9f
8 changed files with 15 additions and 15 deletions

View File

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

View File

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

View File

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

View File

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