Skip to content

Commit 9fba1d5

Browse files
committed
[clang-tidy] Fixes for bugprone-unused-local-non-trivial-variable
Fixed spelling of some classes in code and in documentation. Fixes for llvm#76101
1 parent 37fc9c6 commit 9fba1d5

File tree

2 files changed

+5
-6
lines changed

2 files changed

+5
-6
lines changed

clang-tools-extra/clang-tidy/bugprone/UnusedLocalNonTrivialVariableCheck.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ namespace clang::tidy::bugprone {
2424
namespace {
2525
static constexpr StringRef DefaultIncludeTypeRegex =
2626
"::std::.*mutex;::std::future;::std::basic_string;::std::basic_regex;"
27-
"::std::base_istringstream;::std::base_stringstream;::std::bitset;"
27+
"::std::basic_istringstream;::std::basic_stringstream;::std::bitset;"
2828
"::std::filesystem::path";
2929

3030
AST_MATCHER(VarDecl, isLocalVarDecl) { return Node.isLocalVarDecl(); }

clang-tools-extra/docs/clang-tidy/checks/bugprone/unused-local-non-trivial-variable.rst

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -38,19 +38,18 @@ Options
3838
.. option:: IncludeTypes
3939

4040
Semicolon-separated list of regular expressions matching types of variables
41-
to check.
42-
By default the following types are checked:
41+
to check. By default the following types are checked:
4342

4443
* `::std::.*mutex`
4544
* `::std::future`
46-
* `::std::string`
45+
* `::std::basic_string`
4746
* `::std::basic_regex`
4847
* `::std::basic_istringstream`
4948
* `::std::basic_stringstream`
5049
* `::std::bitset`
51-
* `::std::path`
50+
* `::std::filesystem::path`
5251

5352
.. option:: ExcludeTypes
5453

55-
A semicolon-separated list of regular expressions matching types that are
54+
A semicolon-separated list of regular expressions matching types that are
5655
excluded from the `IncludeTypes` matches. By default it is an empty list.

0 commit comments

Comments
 (0)