clang-tidy: c_string_view: unmatched NOLINTBEGIN
authorJérémie Galarneau <jeremie.galarneau@efficios.com>
Wed, 29 May 2024 18:29:23 +0000 (18:29 +0000)
committerJérémie Galarneau <jeremie.galarneau@efficios.com>
Thu, 27 Jun 2024 15:09:21 +0000 (11:09 -0400)
clang-tidy reports:
'NOLINTBEGIN' comment without a subsequent 'NOLINTEND' comment

If a specific warning is mentionned as part of the NOLINTBEGIN clause, it must
also be mentionned in the matching NOLINTEND clause. Otherwise, clang-tidy
doesn't match them.

Change-Id: I6adef610227b162ba8a5715c3b426e4c49a1b346
Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
src/common/string-utils/c-string-view.hpp

index 6b175ea333129b9dd1c8a683aa370ee7d9d0208d..386ac8fdaab4bea73f2e3e1dfb4db10ee3f1d187 100644 (file)
@@ -47,7 +47,7 @@ public:
        c_string_view(const std::string& str) noexcept : _str{ str.c_str() }
        {
        }
-       /* NOLINTEND */
+       /* NOLINTEND(google-explicit-constructor) */
 
        /*
         * Makes this view view the C string `str` (may be `nullptr`).
This page took 0.025606 seconds and 4 git commands to generate.