[clang-tidy] add std::span to the default types. (#76116)
Change default configuration of readability-simplify-subscript-expr to include std::span. Fixes #75687
This commit is contained in:
parent
c67e2d97ad
commit
8c24422cd4
@ -16,7 +16,8 @@ using namespace clang::ast_matchers;
|
||||
namespace clang::tidy::readability {
|
||||
|
||||
static const char KDefaultTypes[] =
|
||||
"::std::basic_string;::std::basic_string_view;::std::vector;::std::array";
|
||||
"::std::basic_string;::std::basic_string_view;::std::vector;::std::array;::"
|
||||
"std::span";
|
||||
|
||||
SimplifySubscriptExprCheck::SimplifySubscriptExprCheck(
|
||||
StringRef Name, ClangTidyContext *Context)
|
||||
|
@ -20,4 +20,4 @@ Options
|
||||
.. option:: Types
|
||||
|
||||
The list of type(s) that triggers this check. Default is
|
||||
`::std::basic_string;::std::basic_string_view;::std::vector;::std::array`
|
||||
`::std::basic_string;::std::basic_string_view;::std::vector;::std::array;::std::span`
|
||||
|
Loading…
x
Reference in New Issue
Block a user