[libcxx-commits] [libcxx] [libc++] Avoid opening namespaces without putting something in them (PR #181136)

Nikolas Klauser via libcxx-commits libcxx-commits at lists.llvm.org
Fri Feb 13 23:27:16 PST 2026


================
@@ -22,7 +22,8 @@ _LIBCPP_BEGIN_NAMESPACE_STD
 
 namespace ranges {
 
-namespace views {}
+namespace views { // NOLINT(libcpp-avoid-empty-namespaces) // This is needed to declare the alias below.
+} // namespace views
----------------
philnik777 wrote:

This change is interesting.

https://github.com/llvm/llvm-project/pull/181136


More information about the libcxx-commits mailing list