Skip to content

Commit 8bc48c8

Browse files
committed
Merge remote-tracking branch 'origin/pr/4496' into sycl
2 parents 4f41444 + e3b451a commit 8bc48c8

File tree

1,307 files changed

+51750
-24976
lines changed

Some content is hidden

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

1,307 files changed

+51750
-24976
lines changed

clang-tools-extra/clangd/DumpAST.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -295,7 +295,7 @@ class DumpVisitor : public RecursiveASTVisitor<DumpVisitor> {
295295
}
296296
std::string getDetail(const TemplateName &TN) {
297297
return toString([&](raw_ostream &OS) {
298-
TN.print(OS, Ctx.getPrintingPolicy(), /*SuppressNNS=*/true);
298+
TN.print(OS, Ctx.getPrintingPolicy(), TemplateName::Qualified::None);
299299
});
300300
}
301301
std::string getDetail(const Attr *A) {

clang-tools-extra/clangd/PathMapping.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ llvm::Optional<std::string> doPathMapping(llvm::StringRef S,
4040
llvm::StringRef Body = Uri->body();
4141
if (Body.consume_front(From) && (Body.empty() || Body.front() == '/')) {
4242
std::string MappedBody = (To + Body).str();
43-
return URI(Uri->scheme(), Uri->authority(), MappedBody.c_str())
43+
return URI(Uri->scheme(), Uri->authority(), MappedBody)
4444
.toString();
4545
}
4646
}

clang-tools-extra/docs/clang-tidy/checks/abseil-no-internal-dependencies.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ abseil-no-internal-dependencies
55

66
Warns if code using Abseil depends on internal details. If something is in a
77
namespace that includes the word "internal", code is not allowed to depend upon
8-
it beaucse it’s an implementation detail. They cannot friend it, include it,
8+
it because it’s an implementation detail. They cannot friend it, include it,
99
you mention it or refer to it in any way. Doing so violates Abseil's
1010
compatibility guidelines and may result in breakage. See
1111
https://abseil.io/about/compatibility for more information.

clang-tools-extra/docs/clang-tidy/checks/abseil-time-subtraction.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ Examples:
2525
int x;
2626
absl::Time t;
2727

28-
// Original - absl::Duration result and first operand is a absl::Time.
28+
// Original - absl::Duration result and first operand is an absl::Time.
2929
absl::Duration d = absl::Seconds(absl::ToUnixSeconds(t) - x);
3030

3131
// Suggestion - Perform subtraction in the Time domain instead.

clang-tools-extra/docs/clang-tidy/checks/bugprone-fold-init-type.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ the latter, with ``operator+`` by default. This can cause loss of precision
1111
through:
1212

1313
- Truncation: The following code uses a floating point range and an int
14-
initial value, so trucation will happen at every application of ``operator+``
14+
initial value, so truncation will happen at every application of ``operator+``
1515
and the result will be `0`, which might not be what the user expected.
1616

1717
.. code-block:: c++

clang-tools-extra/docs/clang-tidy/checks/bugprone-redundant-branch-condition.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ is an operand of a logical "and" (``&&``) or a logical "or" (``||``) operator:
4141
4242
In the first case (logical "and") the suggested fix is to remove the redundant
4343
condition variable and keep the other side of the ``&&``. In the second case
44-
(logical "or") the whole ``if`` is removed similarily to the simple case on the
44+
(logical "or") the whole ``if`` is removed similarly to the simple case on the
4545
top.
4646

4747
The condition of the outer ``if`` statement may also be a logical "and" (``&&``)

clang-tools-extra/docs/clang-tidy/checks/bugprone-signal-handler.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ and has an alias name ``cert-sig30-c``.
2020

2121
.. option:: AsyncSafeFunctionSet
2222

23-
Selects wich set of functions is considered as asynchronous-safe
23+
Selects which set of functions is considered as asynchronous-safe
2424
(and therefore allowed in signal handlers). Value ``minimal`` selects
2525
a minimal set that is defined in the CERT SIG30-C rule and includes functions
2626
``abort()``, ``_Exit()``, ``quick_exit()`` and ``signal()``. Value ``POSIX``

clang-tools-extra/docs/clang-tidy/checks/bugprone-suspicious-memory-comparison.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,12 +8,12 @@ arguments. The following cases are covered:
88

99
**Case 1: Non-standard-layout type**
1010

11-
Comparing the object representaions of non-standard-layout objects may not
11+
Comparing the object representations of non-standard-layout objects may not
1212
properly compare the value representations.
1313

1414
**Case 2: Types with no unique object representation**
1515

16-
Objects with the same value may not have the same object representaion.
16+
Objects with the same value may not have the same object representation.
1717
This may be caused by padding or floating-point types.
1818

1919
See also:

clang-tools-extra/docs/clang-tidy/checks/bugprone-too-small-loop-variable.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ a larger user input.
3333
Upper limit for the magnitude bits of the loop variable. If it's set the check
3434
filters out those catches in which the loop variable's type has more magnitude
3535
bits as the specified upper limit. The default value is 16.
36-
For example, if the user sets this option to 31 (bits), then a 32-bit ``unsigend int``
36+
For example, if the user sets this option to 31 (bits), then a 32-bit ``unsigned int``
3737
is ignored by the check, however a 32-bit ``int`` is not (A 32-bit ``signed int``
3838
has 31 magnitude bits).
3939

clang-tools-extra/docs/clang-tidy/checks/bugprone-unhandled-exception-at-new.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,5 +21,5 @@ is allowed to propagate out of the function (exception handler is checked for
2121
types ``std::bad_alloc``, ``std::exception``, and catch-all handler).
2222
The check assumes that any user-defined ``operator new`` is either
2323
``noexcept`` or may throw an exception of type ``std::bad_alloc`` (or derived
24-
from it). Other exception types or exceptions occuring in the objects's
24+
from it). Other exception types or exceptions occurring in the objects's
2525
constructor are not taken into account.

0 commit comments

Comments
 (0)