[libcxx-commits] [libcxx] 5b57da3 - [libc++] Fix nolint comment that became useless after running clang-format

Louis Dionne via libcxx-commits libcxx-commits at lists.llvm.org
Mon Dec 18 14:49:25 PST 2023


Author: Louis Dionne
Date: 2023-12-18T17:49:21-05:00
New Revision: 5b57da32a861ec4d7ef4adc7f1560142cf58d1ed

URL: https://github.com/llvm/llvm-project/commit/5b57da32a861ec4d7ef4adc7f1560142cf58d1ed
DIFF: https://github.com/llvm/llvm-project/commit/5b57da32a861ec4d7ef4adc7f1560142cf58d1ed.diff

LOG: [libc++] Fix nolint comment that became useless after running clang-format

Added: 
    

Modified: 
    libcxx/include/map

Removed: 
    


################################################################################
diff  --git a/libcxx/include/map b/libcxx/include/map
index 85fcebf3a7be26..f122f2ebb15b52 100644
--- a/libcxx/include/map
+++ b/libcxx/include/map
@@ -1521,12 +1521,13 @@ _Tp& map<_Key, _Tp, _Compare, _Allocator>::operator[](const key_type& __k) {
 template <class _Key, class _Tp, class _Compare, class _Allocator>
 _Tp& map<_Key, _Tp, _Compare, _Allocator>::operator[](key_type&& __k) {
   // TODO investigate this clang-tidy warning.
-  // NOLINTNEXTLINE(bugprone-use-after-move)
+  // NOLINTBEGIN(bugprone-use-after-move)
   return __tree_
       .__emplace_unique_key_args(
           __k, std::piecewise_construct, std::forward_as_tuple(std::move(__k)), std::forward_as_tuple())
       .first->__get_value()
       .second;
+  // NOLINTEND(bugprone-use-after-move)
 }
 
 #else // _LIBCPP_CXX03_LANG


        


More information about the libcxx-commits mailing list