Use NOLINT instead
diff --git a/doctest/doctest.h b/doctest/doctest.h
index 4c104a8..46aaa6d 100644
--- a/doctest/doctest.h
+++ b/doctest/doctest.h
@@ -3072,8 +3072,7 @@
DOCTEST_GCC_SUPPRESS_WARNING_POP
// Known issue https://github.com/clangd/clangd/issues/1167
-// NOLINTNEXTLINE(clang-diagnostic-unknown-pragmas)
-DOCTEST_SUPPRESS_COMMON_WARNINGS_POP
+DOCTEST_SUPPRESS_COMMON_WARNINGS_POP // NOLINT(clang-diagnostic-unknown-pragmas)
#endif // DOCTEST_LIBRARY_INCLUDED
diff --git a/doctest/parts/doctest_fwd.h b/doctest/parts/doctest_fwd.h
index 5f6c59b..ac83245 100644
--- a/doctest/parts/doctest_fwd.h
+++ b/doctest/parts/doctest_fwd.h
@@ -3069,7 +3069,6 @@
DOCTEST_GCC_SUPPRESS_WARNING_POP
// Known issue https://github.com/clangd/clangd/issues/1167
-// NOLINTNEXTLINE(clang-diagnostic-unknown-pragmas)
-DOCTEST_SUPPRESS_COMMON_WARNINGS_POP
+DOCTEST_SUPPRESS_COMMON_WARNINGS_POP // NOLINT(clang-diagnostic-unknown-pragmas)
#endif // DOCTEST_LIBRARY_INCLUDED