[PATCH] D117205: [clang-tidy] Support custom fix hint for cppcoreguidelines-pro-bounds-constant-array-index
Eugene Zelenko via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Thu Jan 13 07:26:12 PST 2022
Eugene.Zelenko added inline comments.
================
Comment at: clang-tools-extra/docs/ReleaseNotes.rst:156
+- Add new option ``cppcoreguidelines-pro-bounds-constant-array-index.FixHint``
+ to allow users to specify a different fix hint than ``gsl::at``.
----------------
Please sort checks in this section alphabetically.
================
Comment at: clang-tools-extra/docs/clang-tidy/checks/cppcoreguidelines-pro-bounds-constant-array-index.rst:30
+ A string specifying which hint to suggest as a fix, in case users do not want
+ or cannot use GSL. Default is ``gsl::at()``. If a non-default fix hint is
+ used, the check will not output fix-it hints, since they could potentially
----------------
Please use single back-ticks for `gsl::at()` (option value).
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D117205/new/
https://reviews.llvm.org/D117205
More information about the cfe-commits
mailing list