[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
Wed Jun 12 08:08:48 PDT 2024
================
@@ -0,0 +1,31 @@
+.. title:: clang-tidy - cppcoreguidelines-prefer-at-over-subscript-operator
+
+cppcoreguidelines-prefer-at-over-subscript-operator
+=====================================
+
+This check flags all uses of ``operator[]`` where an equivalent (same parameter and return types) ``at()`` method exists and suggest using that instead.
----------------
PBHDK wrote:
Which of the two statements do you prefer: this one or the one in the release notes?
> Please synchronize with statement in Release Notes.
Which of the two statements do you prefer: this one or the one in the release notes?
https://github.com/llvm/llvm-project/pull/95220
More information about the cfe-commits
mailing list