Skip to content

Commit 180b59c

Browse files
[clang] Proofread *.rst (#168215)
This patch is limited to single-word replacements to fix spelling and/or grammar to ease the review process. Punctuation and markdown fixes are specifically excluded.
1 parent e1e696d commit 180b59c

18 files changed

+23
-23
lines changed

clang/docs/AutomaticReferenceCounting.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2318,7 +2318,7 @@ aligned for an object of type ``id``. The other qualifiers may be used on
23182318
explicitly under-aligned memory.
23192319
23202320
The runtime tracks ``__weak`` objects which holds non-null values. It is
2321-
undefined behavior to direct modify a ``__weak`` object which is being tracked
2321+
undefined behavior to directly modify a ``__weak`` object which is being tracked
23222322
by the runtime except through an
23232323
:ref:`objc_storeWeak <arc.runtime.objc_storeWeak>`,
23242324
:ref:`objc_destroyWeak <arc.runtime.objc_destroyWeak>`, or

clang/docs/Block-ABI-Apple.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ attempt to use this ABI on systems prior to SnowLeopard is undefined.
3434
High Level
3535
==========
3636

37-
The ABI of ``Blocks`` consist of their layout and the runtime functions required
37+
The ABI of ``Blocks`` consists of their layout and the runtime functions required
3838
by the compiler. A ``Block`` of type ``R (^)(P...)`` consists of a structure of
3939
the following form:
4040

clang/docs/BoundsSafety.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -912,7 +912,7 @@ unsafe library by calling ``get_buf()`` which returns ``void
912912
``__bidi_indexable`` gets the lower bound same as the pointer value.
913913

914914
* A type conversion may involve both a bitcast and a bounds annotation cast. For
915-
example, casting from ``int *__bidi_indexable`` to ``char *__single`` involve
915+
example, casting from ``int *__bidi_indexable`` to ``char *__single`` involves
916916
a bitcast (``int *`` to ``char *``) and a bounds annotation cast
917917
(``__bidi_indexable`` to ``__single``). In this case, the compiler performs
918918
the bitcast and then converts the bounds annotation. This means, ``int
@@ -994,7 +994,7 @@ other types of safety violations such as type confusion. For instance,
994994

995995
``-fbounds-safety`` heavily relies on run-time checks to keep the bounds safety
996996
and the soundness of the type system. This may incur significant code size
997-
overhead in unoptimized builds and leaving some of the adoption mistakes to be
997+
overhead in unoptimized builds and leave some of the adoption mistakes to be
998998
caught only at run time. This is not a fundamental limitation, however, because
999999
incrementally adding necessary static analysis will allow us to catch issues
10001000
early on and remove unnecessary bounds checks in unoptimized builds.

clang/docs/BoundsSafetyAdoptionGuide.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ that automatically carries the bounds information.
4545
Address compiler diagnostics
4646
============================
4747

48-
Once you pass ``-fbounds-safety`` to compiler a C file, you will see some new
48+
Once you pass ``-fbounds-safety`` to compile a C file, you will see some new
4949
compiler warnings and errors, which guide adoption of ``-fbounds-safety``.
5050
Consider the following example:
5151

clang/docs/CXXTypeAwareAllocators.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ Operator selection then proceeds according to the usual rules for choosing
9090
the best/most constrained match.
9191

9292
Any declaration of a type aware operator new or operator delete must include a
93-
matching complimentary operator defined in the same scope.
93+
matching complementary operator defined in the same scope.
9494

9595
Notes
9696
=====

clang/docs/ClangTools.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ instructions on how to setup and use `clang-check`.
7272
----------------
7373

7474
Clang-format is both a :doc:`library <LibFormat>` and a :doc:`stand-alone tool
75-
<ClangFormat>` with the goal of automatically reformatting C++ sources files
75+
<ClangFormat>` with the goal of automatically reformatting C++ source files
7676
according to configurable style guides. To do so, clang-format uses Clang's
7777
``Lexer`` to transform an input file into a token stream and then changes all
7878
the whitespace around those tokens. The goal is for clang-format to serve both

clang/docs/ClangTransformerTutorial.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ can express this a Transformer rewrite rule:
7878
arguments: the pattern, the edit, and (optionally) an explanatory note. In our
7979
example, the pattern (``functionDecl(...)``) identifies the declaration of the
8080
function ``MkX``. Since we're just diagnosing the problem, but not suggesting a
81-
fix, our edit is an no-op. But, it contains an *anchor* for the diagnostic
81+
fix, our edit is a no-op. But, it contains an *anchor* for the diagnostic
8282
message: ``node("fun")`` says to associate the message with the source range of
8383
the AST node bound to "fun"; in this case, the ill-named function declaration.
8484
Finally, we use ``cat`` to build a message that explains the change. Regarding the

clang/docs/DataFlowSanitizerDesign.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -160,8 +160,8 @@ instructions, glibc memcpy and memmove. When ``-dfsan-track-origins`` is 2, a
160160
new chain is also appended at loads.
161161

162162
Other instructions do not create new chains, but simply propagate origin trace
163-
IDs. If an instruction has more than one operands with non-zero labels, the origin
164-
treace ID of the last operand with non-zero label is propagated to the result of
163+
IDs. If an instruction has more than one operand with non-zero labels, the origin
164+
trace ID of the last operand with non-zero label is propagated to the result of
165165
the instruction.
166166

167167
Memory layout and label management

clang/docs/InternalsManual.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2351,7 +2351,7 @@ different "from" contexts; in this case, they have to share the associated
23512351
errors of the "to" context.
23522352

23532353
When an error happens, that propagates through the call stack, through all the
2354-
dependant nodes. However, in case of dependency cycles, this is not enough,
2354+
dependent nodes. However, in case of dependency cycles, this is not enough,
23552355
because we strive to mark the erroneous nodes so clients can act upon. In those
23562356
cases, we have to keep track of the errors for those nodes which are
23572357
intermediate nodes of a cycle.

clang/docs/JSONCompilationDatabase.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ techniques.
4848

4949
Clang's tooling interface supports reading compilation databases; see
5050
the :doc:`LibTooling documentation <LibTooling>`. libclang and its
51-
python bindings also support this (since clang 3.2); see
51+
Python bindings also support this (since clang 3.2); see
5252
`CXCompilationDatabase.h </doxygen/group__COMPILATIONDB.html>`_.
5353

5454
Format

0 commit comments

Comments
 (0)