Skip to content

Commit 293dbea

Browse files
authored
Fix some typos (#123506)
Fixes some typos in the documentation
1 parent 0ab1f57 commit 293dbea

File tree

5 files changed

+7
-7
lines changed

5 files changed

+7
-7
lines changed

clang-tools-extra/docs/clang-tidy/Contributing.rst

+3-3
Original file line numberDiff line numberDiff line change
@@ -331,7 +331,7 @@ a starting point for your test cases. A rough outline of the process looks like
331331
- Issue the necessary diagnostics and fix-its in the ``check`` method.
332332
- Add the necessary ``CHECK-MESSAGES`` and ``CHECK-FIXES`` annotations to your
333333
test case to validate the diagnostics and fix-its.
334-
- Build the target ``check-clang-tool`` to confirm the test passes.
334+
- Build the target ``check-clang-tools`` to confirm the test passes.
335335
- Repeat the process until all aspects of your check are covered by tests.
336336

337337
The quickest way to prototype your matcher is to use :program:`clang-query` to
@@ -519,8 +519,8 @@ the check implements and what the current values are (e.g. for the
519519
public:
520520
MyCheck(StringRef Name, ClangTidyContext *Context)
521521
: ClangTidyCheck(Name, Context),
522-
SomeOption(Options.get("SomeOption1", -1U)),
523-
SomeOption(Options.get("SomeOption2", "some default")) {}
522+
SomeOption1(Options.get("SomeOption1", -1U)),
523+
SomeOption2(Options.get("SomeOption2", "some default")) {}
524524
525525
void storeOptions(ClangTidyOptions::OptionMap &Opts) override {
526526
Options.store(Opts, "SomeOption1", SomeOption1);

clang/docs/ClangTransformerTutorial.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ can express this a Transformer rewrite rule:
7070

7171
.. code-block:: c++
7272

73-
makeRule(functionDecl(hasName("MkX").bind("fun"),
73+
makeRule(functionDecl(hasName("MkX")).bind("fun"),
7474
noopEdit(node("fun")),
7575
cat("The name ``MkX`` is not allowed for functions; please rename"));
7676

llvm/docs/DeveloperPolicy.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,7 @@ awareness of. For such changes, the following should be done:
136136

137137
.. warning::
138138

139-
Phabricator is deprecated is available in read-only mode,
139+
Phabricator is deprecated and is available in read-only mode,
140140
for new code contributions use :ref:`GitHub Pull Requests <github-reviews>`.
141141
This section contains old information that needs to be updated.
142142

llvm/docs/GitHub.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ documentation refer to `GitHub's documentation <https://docs.github.com/pull-req
5050
.. note::
5151
If you are using a Pull Request for purposes other than review
5252
(eg: precommit CI results, convenient web-based reverts, etc)
53-
`skip-precommit-approval <https://github.com/llvm/llvm-project/labels?q=skip-precommit-approval>`_
53+
add the `skip-precommit-approval <https://github.com/llvm/llvm-project/labels?q=skip-precommit-approval>`_
5454
label to the PR.
5555

5656
GitHub Tools

llvm/docs/MyFirstTypoFix.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -378,7 +378,7 @@ your branch with more commits and push to your GitHub fork of ``llvm-project``.
378378
It is best if you answer comments from the reviewer directly instead of expecting
379379
them to read through all the changes again.
380380

381-
For example you might comment "I have done this." or "I was able to this part
381+
For example you might comment "I have done this." or "I was able to do this part
382382
but have a question about...".
383383

384384
Review expectations

0 commit comments

Comments
 (0)