[clang-tools-extra] [clang-tidy] Fix false positive for cppcoreguidelines-pro-bounds-pointer-arithmetic (PR #127394)
Carlos Galvez via cfe-commits
cfe-commits at lists.llvm.org
Wed Apr 30 12:05:34 PDT 2025
================
@@ -106,6 +106,10 @@ Changes in existing checks
<clang-tidy/checks/bugprone/unsafe-functions>` check to allow specifying
additional C++ member functions to match.
+- Improved :doc:`cppcoreguidelines-pro-bounds-pointer-arithmetic
+ <clang-tidy/checks/cppcoreguidelines/pro-bounds-pointer-arithmetic>` check by
+ fix false positives related to operator overloading and templates.
----------------
carlosgalvezp wrote:
"by fixing"
Also, "operator overloading and templates" seems too generic, maybe "when calling indexing operators that do not perform pointer arithmetic"?
https://github.com/llvm/llvm-project/pull/127394
More information about the cfe-commits
mailing list