[PATCH] D123655: [clang-tidy] Add portability-std-allocator-const-t check

Fangrui Song via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Tue Apr 12 23:40:25 PDT 2022


MaskRay created this revision.
MaskRay added reviewers: alexfh, aaron.ballman, njames93, whisperity.
Herald added subscribers: carlosgalvezp, StephenFan, rnkovacs, xazax.hun, mgorny.
Herald added a project: All.
MaskRay requested review of this revision.
Herald added a project: clang-tools-extra.
Herald added a subscriber: cfe-commits.

Find undefined container usage due to std::allocator<const T>. This is
unsupported in libstdc++ and may be unsupported in future libc++ (D120996 <https://reviews.llvm.org/D120996>). See
docs/clang-tidy/checks/portability-std-allocator-const-t.rst for detail.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D123655

Files:
  clang-tools-extra/clang-tidy/portability/CMakeLists.txt
  clang-tools-extra/clang-tidy/portability/PortabilityTidyModule.cpp
  clang-tools-extra/clang-tidy/portability/StdAllocatorConstTCheck.cpp
  clang-tools-extra/clang-tidy/portability/StdAllocatorConstTCheck.h
  clang-tools-extra/docs/ReleaseNotes.rst
  clang-tools-extra/docs/clang-tidy/checks/list.rst
  clang-tools-extra/docs/clang-tidy/checks/portability-std-allocator-const-t.rst
  clang-tools-extra/test/clang-tidy/checkers/portability-std-allocator-const-t.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D123655.422404.patch
Type: text/x-patch
Size: 10718 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20220413/99d469ba/attachment-0001.bin>


More information about the cfe-commits mailing list