@@ -312,7 +312,7 @@ Description:
312
312
* number: A simple decimal number matches if the argument is the same as the
313
313
number. Example: ``"%plural{1:mouse|:mice}0" ``
314
314
* range: A range in square brackets matches if the argument is within the
315
- range. Then range is inclusive on both ends. Example:
315
+ range. The range is inclusive on both ends. Example:
316
316
``"%plural{0:none|1:one|[2,5]:some|:many}0" ``
317
317
* modulo: A modulo operator is followed by a number, and equals sign and
318
318
either a number or a range. The tests are the same as for plain numbers
@@ -341,7 +341,7 @@ Example:
341
341
Class:
342
342
Integers
343
343
Description:
344
- This is a formatter which represents the argument number in a human readable
344
+ This is a formatter which represents the argument number in a human- readable
345
345
format: the value ``123 `` stays ``123 ``, ``12345 `` becomes ``12.34k ``,
346
346
``6666666` becomes ``6.67M ``, and so on for 'G' and 'T'.
347
347
@@ -561,7 +561,7 @@ documentation for the ``-verify`` mode can be found at
561
561
562
562
There are many other possible implementations of this interface, and this is
563
563
why we prefer diagnostics to pass down rich structured information in
564
- arguments. For example, an HTML output might want declaration names be
564
+ arguments. For example, an HTML output might want declaration names to be
565
565
linkified to where they come from in the source. Another example is that a GUI
566
566
might let you click on typedefs to expand them. This application would want to
567
567
pass significantly more information about types through to the GUI than a
@@ -846,7 +846,7 @@ Option Marshalling Infrastructure
846
846
The option marshalling infrastructure automates the parsing of the Clang
847
847
``-cc1 `` frontend command line arguments into ``CompilerInvocation `` and their
848
848
generation from ``CompilerInvocation ``. The system replaces lots of repetitive
849
- C++ code with simple, declarative tablegen annotations and it's being used for
849
+ C++ code with simple, declarative tablegen annotations and is being used for
850
850
the majority of the ``-cc1 `` command line interface. This section provides an
851
851
overview of the system.
852
852
@@ -986,7 +986,7 @@ line.
986
986
NegFlag<SetFalse, [], [], "Use the new pass manager in LLVM">,
987
987
BothFlags<[], [ClangOption, CC1Option]>>;
988
988
989
- With most such pair of flags, the ``-cc1 `` frontend accepts only the flag that
989
+ With most such pairs of flags, the ``-cc1 `` frontend accepts only the flag that
990
990
changes the default key path value. The Clang driver is responsible for
991
991
accepting both and either forwarding the changing flag or discarding the flag
992
992
that would just set the key path to its default.
@@ -1042,8 +1042,8 @@ and the result is assigned to the key path on success.
1042
1042
The key path defaults to the value specified in ``MarshallingInfoEnum `` prefixed
1043
1043
by the contents of ``NormalizedValuesScope `` and ``:: ``. This ensures correct
1044
1044
reference to an enum case is formed even if the enum resides in different
1045
- namespace or is an enum class. If the value present on command line does not
1046
- match any of the comma-separated values from ``Values ``, an error diagnostics is
1045
+ namespace or is an enum class. If the value present on the command line does not
1046
+ match any of the comma-separated values from ``Values ``, an error diagnostic is
1047
1047
issued. Otherwise, the corresponding element from ``NormalizedValues `` at the
1048
1048
same index is assigned to the key path (also correctly scoped). The number of
1049
1049
comma-separated string values and elements of the array within
@@ -1111,7 +1111,7 @@ The Token class
1111
1111
---------------
1112
1112
1113
1113
The ``Token `` class is used to represent a single lexed token. Tokens are
1114
- intended to be used by the lexer/preprocess and parser libraries, but are not
1114
+ intended to be used by the lexer/preprocessor and parser libraries, but are not
1115
1115
intended to live beyond them (for example, they should not live in the ASTs).
1116
1116
1117
1117
Tokens most often live on the stack (or some other location that is efficient
@@ -1253,7 +1253,7 @@ In order to do this, whenever the parser expects a ``tok::identifier`` or
1253
1253
``tok::coloncolon ``, it should call the ``TryAnnotateTypeOrScopeToken `` or
1254
1254
``TryAnnotateCXXScopeToken `` methods to form the annotation token. These
1255
1255
methods will maximally form the specified annotation tokens and replace the
1256
- current token with them, if applicable. If the current tokens is not valid for
1256
+ current token with them, if applicable. If the current token is not valid for
1257
1257
an annotation token, it will remain an identifier or "``:: ``" token.
1258
1258
1259
1259
.. _Lexer :
@@ -1276,7 +1276,7 @@ The lexer has a couple of interesting modal features:
1276
1276
This mode is used for lexing within an "``#if 0 ``" block, for example.
1277
1277
* The lexer can capture and return comments as tokens. This is required to
1278
1278
support the ``-C `` preprocessor mode, which passes comments through, and is
1279
- used by the diagnostic checker to identifier expect-error annotations.
1279
+ used by the diagnostic checker to identify expect-error annotations.
1280
1280
* The lexer can be in ``ParsingFilename `` mode, which happens when
1281
1281
preprocessing after reading a ``#include `` directive. This mode changes the
1282
1282
parsing of "``< ``" to return an "angled string" instead of a bunch of tokens
@@ -1308,7 +1308,7 @@ The ``TokenLexer`` class
1308
1308
------------------------
1309
1309
1310
1310
The ``TokenLexer `` class is a token provider that returns tokens from a list of
1311
- tokens that came from somewhere else. It typically used for two things: 1)
1311
+ tokens that came from somewhere else. It is typically used for two things: 1)
1312
1312
returning tokens from a macro definition as it is being expanded 2) returning
1313
1313
tokens from an arbitrary buffer of tokens. The later use is used by
1314
1314
``_Pragma `` and will most likely be used to handle unbounded look-ahead for the
@@ -1509,7 +1509,7 @@ type checker must verify that the operand has a pointer type. It would not be
1509
1509
correct to check that with "``isa<PointerType>(SubExpr->getType()) ``", because
1510
1510
this predicate would fail if the subexpression had a typedef type.
1511
1511
1512
- The solution to this problem are a set of helper methods on ``Type ``, used to
1512
+ The solution to this problem is a set of helper methods on ``Type ``, used to
1513
1513
check their properties. In this case, it would be correct to use
1514
1514
"``SubExpr->getType()->isPointerType() ``" to do the check. This predicate will
1515
1515
return true if the *canonical type is a pointer *, which is true any time the
@@ -1632,7 +1632,7 @@ the names are inside the ``DeclarationName`` class).
1632
1632
1633
1633
``CXXLiteralOperatorName ``
1634
1634
1635
- The name is a C++11 user defined literal operator. User defined
1635
+ The name is a C++11 user- defined literal operator. User- defined
1636
1636
Literal operators are named according to the suffix they define,
1637
1637
e.g., "``_foo ``" for "``operator "" _foo ``". Use
1638
1638
``N.getCXXLiteralIdentifier() `` to retrieve the corresponding
@@ -2215,7 +2215,7 @@ Consequently, we must either set the virtual flag for the definition (but then
2215
2215
we create a malformed AST which the parser would never create), or we import
2216
2216
the whole redeclaration chain of the function. The most recent version of the
2217
2217
``ASTImporter `` uses the latter mechanism. We do import all function
2218
- declarations - regardless if they are definitions or prototypes - in the order
2218
+ declarations - regardless of whether they are definitions or prototypes - in the order
2219
2219
as they appear in the "from" context.
2220
2220
2221
2221
.. One definition
@@ -2338,7 +2338,7 @@ library receive an Error object, which they must check.
2338
2338
During import of a specific declaration, it may happen that some AST nodes had
2339
2339
already been created before we recognize an error. In this case, we signal back
2340
2340
the error to the caller, but the "to" context remains polluted with those nodes
2341
- which had been created. Ideally, those nodes should not had been created, but
2341
+ which had been created. Ideally, those nodes should not have been created, but
2342
2342
that time we did not know about the error, the error happened later. Since the
2343
2343
AST is immutable (most of the cases we can't remove existing nodes) we choose
2344
2344
to mark these nodes as erroneous.
@@ -2579,7 +2579,7 @@ that there are global declarations which collide with declarations from other
2579
2579
translation units, but they are not referenced outside from their translation
2580
2580
unit. These declarations should be in an unnamed namespace ideally. If we treat
2581
2581
these collisions liberally then CTU analysis can find more results. Note, the
2582
- feature be able to choose between name conflict handling strategies is still an
2582
+ feature to be able to choose between name conflict handling strategies is still an
2583
2583
ongoing work.
2584
2584
2585
2585
.. _CFG :
0 commit comments