@@ -463,7 +463,7 @@ recovery.
463
463
situations where you absolutely must emit a non-programmatic error and
464
464
the ``Error `` model isn't workable you can call ``reportFatalUsageError ``,
465
465
which will call installed error handlers, print a message, and exit the
466
- program. The use of `reportFatalUsageError ` in this case is discouraged.
466
+ program. The use of `` reportFatalUsageError ` ` in this case is discouraged.
467
467
468
468
Recoverable errors are modeled using LLVM's ``Error `` scheme. This scheme
469
469
represents errors using function return values, similar to classic C integer
@@ -579,7 +579,7 @@ This second form is often more readable for functions that involve multiple
579
579
580
580
If an ``Expected<T> `` value will be moved into an existing variable then the
581
581
``moveInto() `` method avoids the need to name an extra variable. This is
582
- useful to enable ``operator->() `` the ``Expected<T> `` value has pointer-like
582
+ useful to enable ``operator->() `` if the ``Expected<T> `` value has pointer-like
583
583
semantics. For example:
584
584
585
585
.. code-block :: c++
@@ -957,7 +957,7 @@ Concatenating Errors with joinErrors
957
957
""""""""""""""""""""""""""""""""""""
958
958
959
959
In the archive walking example above, ``BadFileFormat `` errors are simply
960
- consumed and ignored. If the client had wanted report these errors after
960
+ consumed and ignored. If the client had wanted to report these errors after
961
961
completing the walk over the archive they could use the ``joinErrors `` utility:
962
962
963
963
.. code-block :: c++
@@ -989,7 +989,7 @@ Building fallible iterators and iterator ranges
989
989
"""""""""""""""""""""""""""""""""""""""""""""""
990
990
991
991
The archive walking examples above retrieve archive members by index; however,
992
- this requires considerable boiler-plate for iteration and error checking. We can
992
+ this requires considerable boilerplate for iteration and error checking. We can
993
993
clean this up by using the "fallible iterator" pattern, which supports the
994
994
following natural iteration idiom for fallible containers like Archive:
995
995
@@ -1039,7 +1039,7 @@ fallible_iterator utility which provides ``operator++`` and ``operator--``,
1039
1039
returning any errors via a reference passed in to the wrapper at construction
1040
1040
time. The fallible_iterator wrapper takes care of (a) jumping to the end of the
1041
1041
range on error, and (b) marking the error as checked whenever an iterator is
1042
- compared to ``end `` and found to be inequal (in particular, this marks the
1042
+ compared to ``end `` and found to be unequal (in particular, this marks the
1043
1043
error as checked throughout the body of a range-based for loop), enabling early
1044
1044
exit from the loop without redundant error checking.
1045
1045
@@ -1452,15 +1452,15 @@ A more general utility is provided in `llvm/tools/reduce-chunk-list/reduce-chunk
1452
1452
How to use reduce-chunk-list:
1453
1453
First, Figure out the number of calls to the debug counter you want to minimize.
1454
1454
To do so, run the compilation command causing you want to minimize with `-print-debug-counter ` adding a `-mllvm ` if needed.
1455
- Than find the line with the counter of interest. it should look like:
1455
+ Then find the line with the counter of interest. it should look like:
1456
1456
1457
1457
.. code-block :: none
1458
1458
1459
1459
my-counter : {5678,empty}
1460
1460
1461
1461
The number of calls to `my-counter ` is 5678
1462
1462
1463
- Than Find the minimum set of chunks that is interesting, with `reduce-chunk-list `.
1463
+ Then find the minimum set of chunks that is interesting, with `reduce-chunk-list `.
1464
1464
Build a reproducer script like:
1465
1465
1466
1466
.. code-block :: bash
@@ -1469,7 +1469,7 @@ Build a reproducer script like:
1469
1469
opt -debug-counter=my-counter=$1
1470
1470
# ... Test result of the command. Failure of the script is considered interesting
1471
1471
1472
- Than run `reduce-chunk-list my-script.sh 0-5678 2>&1 | tee dump_bisect `
1472
+ Then run `reduce-chunk-list my-script.sh 0-5678 2>&1 | tee dump_bisect `
1473
1473
This command may take some time.
1474
1474
but when it is done, it will print the result like: `Minimal Chunks = 0:1:5:11-12:33-34 `
1475
1475
@@ -1528,7 +1528,7 @@ LLVM has a plethora of data structures in the ``llvm/ADT/`` directory, and we
1528
1528
commonly use STL data structures. This section describes the trade-offs you
1529
1529
should consider when you pick one.
1530
1530
1531
- The first step is a choose your own adventure: do you want a sequential
1531
+ The first step is to choose your own adventure: do you want a sequential
1532
1532
container, a set-like container, or a map-like container? The most important
1533
1533
thing when choosing a container is the algorithmic properties of how you plan to
1534
1534
access the container. Based on that, you should use:
0 commit comments