Skip to content

Commit 646a112

Browse files
committed
Merge remote-tracking branch 'origin/main' into vplan-all-regions-as-transform
2 parents a88f03e + d4002b4 commit 646a112

File tree

88 files changed

+1372
-1261
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

88 files changed

+1372
-1261
lines changed

clang-tools-extra/clangd/ConfigCompile.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -535,7 +535,7 @@ struct FragmentCompiler {
535535
}
536536
if (Filters->empty())
537537
return std::nullopt;
538-
auto Filter = [Filters](llvm::StringRef Path) {
538+
auto Filter = [Filters = std::move(Filters)](llvm::StringRef Path) {
539539
for (auto &Regex : *Filters)
540540
if (Regex.match(Path))
541541
return true;

clang-tools-extra/clangd/Headers.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -305,14 +305,14 @@ IncludeInserter::calculateIncludePath(const HeaderFile &InsertedHeader,
305305
if (llvm::sys::path::is_absolute(Suggested))
306306
return std::nullopt;
307307
bool IsAngled = false;
308-
for (auto Filter : AngledHeaders) {
308+
for (auto &Filter : AngledHeaders) {
309309
if (Filter(Suggested)) {
310310
IsAngled = true;
311311
break;
312312
}
313313
}
314314
bool IsQuoted = false;
315-
for (auto Filter : QuotedHeaders) {
315+
for (auto &Filter : QuotedHeaders) {
316316
if (Filter(Suggested)) {
317317
IsQuoted = true;
318318
break;

clang-tools-extra/docs/clang-tidy/checks/android/comparison-in-temp-failure-retry.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,3 +41,4 @@ Options
4141
.. option:: RetryMacros
4242

4343
A comma-separated list of the names of retry macros to be checked.
44+
Default is `TEMP_FAILURE_RETRY`.

clang-tools-extra/docs/clang-tidy/checks/cert/msc51-cpp.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,4 +37,4 @@ Options
3737
.. option:: DisallowedSeedTypes
3838

3939
A comma-separated list of the type names which are disallowed.
40-
Default values are ``time_t``, ``std::time_t``.
40+
Default value is `time_t,std::time_t`.

clang-tools-extra/docs/clang-tidy/checks/concurrency/mt-unsafe.rst

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,9 @@ Examples:
3232

3333
sleep(1); // implementation may use SIGALRM
3434

35+
Options
36+
-------
37+
3538
.. option:: FunctionSet
3639

3740
Specifies which functions in libc should be considered thread-safe,

clang-tools-extra/docs/clang-tidy/checks/cppcoreguidelines/no-malloc.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,14 +35,14 @@ Options
3535
.. option:: Allocations
3636

3737
Semicolon-separated list of fully qualified names of memory allocation functions.
38-
Defaults to ``::malloc;::calloc``.
38+
Defaults to `::malloc;::calloc`.
3939

4040
.. option:: Deallocations
4141

4242
Semicolon-separated list of fully qualified names of memory allocation functions.
43-
Defaults to ``::free``.
43+
Defaults to `::free`.
4444

4545
.. option:: Reallocations
4646

4747
Semicolon-separated list of fully qualified names of memory allocation functions.
48-
Defaults to ``::realloc``.
48+
Defaults to `::realloc`.

clang-tools-extra/docs/clang-tidy/checks/cppcoreguidelines/owning-memory.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -95,14 +95,14 @@ Options
9595

9696
Semicolon-separated list of fully qualified names of legacy functions that create
9797
resources but cannot introduce ``gsl::owner<>``.
98-
Defaults to ``::malloc;::aligned_alloc;::realloc;::calloc;::fopen;::freopen;::tmpfile``.
98+
Defaults to `::malloc;::aligned_alloc;::realloc;::calloc;::fopen;::freopen;::tmpfile`.
9999

100100

101101
.. option:: LegacyResourceConsumers
102102

103103
Semicolon-separated list of fully qualified names of legacy functions expecting
104104
resource owners as pointer arguments but cannot introduce ``gsl::owner<>``.
105-
Defaults to ``::free;::realloc;::freopen;::fclose``.
105+
Defaults to `::free;::realloc;::freopen;::fclose`.
106106

107107

108108
Limitations

clang-tools-extra/docs/clang-tidy/checks/cppcoreguidelines/pro-bounds-constant-array-index.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ Options
2121

2222
The check can generate fixes after this option has been set to the name of
2323
the include file that contains ``gsl::at()``, e.g. `"gsl/gsl.h"`.
24+
Default is an empty string.
2425

2526
.. option:: IncludeStyle
2627

clang-tools-extra/docs/clang-tidy/checks/cppcoreguidelines/pro-type-member-init.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ Options
3737

3838
If set to `true`, the check will provide fix-its with literal initializers
3939
\( ``int i = 0;`` \) instead of curly braces \( ``int i{};`` \).
40+
Default is `false`.
4041

4142
This rule is part of the `Type safety (Type.6)
4243
<https://isocpp.github.io/CppCoreGuidelines/CppCoreGuidelines#Pro-type-memberinit>`_

clang-tools-extra/docs/clang-tidy/checks/misc/coroutine-hostile-raii.rst

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -45,8 +45,8 @@ Options
4545

4646
A semicolon-separated list of qualified types which should not be allowed to
4747
persist across suspension points.
48-
Eg: ``my::lockable; a::b;::my::other::lockable;``
49-
The default value of this option is `"std::lock_guard;std::scoped_lock"`.
48+
Eg: `my::lockable;a::b;::my::other::lockable`
49+
The default value of this option is `std::lock_guard;std::scoped_lock`.
5050

5151
.. option:: AllowedAwaitablesList
5252

@@ -78,6 +78,6 @@ Options
7878
co_await wait();
7979
}
8080

81-
Eg: ``my::safe::awaitable;other::awaitable``
82-
The default value of this option is empty string `""`.
81+
Eg: `my::safe::awaitable;other::awaitable`
82+
Default is an empty string.
8383

0 commit comments

Comments
 (0)