Replace NOLINT(runtime/explicit) comments with NOLINT (NFC) (#2992)

cpplint.py can accept either, but clang-tidy requires NOLINT.
This commit is contained in:
Tyler Veness
2020-12-28 15:10:31 -08:00
committed by GitHub
parent 1c3011ba4b
commit 2b4317452b
9 changed files with 19 additions and 20 deletions

View File

@@ -39,7 +39,7 @@ namespace {
template <typename T>
struct object {
object(T i) : v{i} {} // NOLINT(runtime/explicit)
object(T i) : v{i} {} // NOLINT
void inc_val(const T& i) {
if (i != v) {

View File

@@ -507,7 +507,7 @@ TEST(Signal, SignalMoving) {
template <typename T>
struct object {
object();
object(T i) : v{i} {} // NOLINT(runtime/explicit)
object(T i) : v{i} {} // NOLINT
const T& val() const { return v; }
T& val() { return v; }