[clang-tools-extra] Enforce SL.con.3: Add check to replace operator[] with at() [Cont.] (PR #95220)

Paul Heidekrüger via cfe-commits cfe-commits at lists.llvm.org
Tue May 27 11:02:39 PDT 2025


================
@@ -136,6 +136,13 @@ New checks
   Finds unintended character output from ``unsigned char`` and ``signed char``
   to an ``ostream``.
 
+- New :doc:`cppcoreguidelines-pro-bounds-avoid-unchecked-container-accesses
+  <clang-tidy/checks/cppcoreguidelines/pro-bounds-avoid-unchecked-container-accesses>`
+  check.
+
+  Flags calls to ``operator[]`` in STL containers and suggests replacing it with
----------------
paulhdk wrote:

s/it/them

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


More information about the cfe-commits mailing list