https://github.com/DeNiCoN updated https://github.com/llvm/llvm-project/pull/123506
>From f1691c219527e96832316a853d60985fc72115ef Mon Sep 17 00:00:00 2001 From: DeNiCoN <denicon1...@gmail.com> Date: Tue, 14 Jan 2025 07:30:08 +0100 Subject: [PATCH 1/2] Fix some typos --- clang-tools-extra/docs/clang-tidy/Contributing.rst | 6 +++--- clang/docs/ClangTransformerTutorial.rst | 2 +- clang/include/clang/Basic/Diagnostic.h | 2 +- llvm/docs/DeveloperPolicy.rst | 2 +- llvm/docs/GitHub.rst | 2 +- llvm/docs/MyFirstTypoFix.rst | 2 +- 6 files changed, 8 insertions(+), 8 deletions(-) diff --git a/clang-tools-extra/docs/clang-tidy/Contributing.rst b/clang-tools-extra/docs/clang-tidy/Contributing.rst index ff8b05ff263c14..4f1df8d1144444 100644 --- a/clang-tools-extra/docs/clang-tidy/Contributing.rst +++ b/clang-tools-extra/docs/clang-tidy/Contributing.rst @@ -331,7 +331,7 @@ a starting point for your test cases. A rough outline of the process looks like - Issue the necessary diagnostics and fix-its in the ``check`` method. - Add the necessary ``CHECK-MESSAGES`` and ``CHECK-FIXES`` annotations to your test case to validate the diagnostics and fix-its. -- Build the target ``check-clang-tool`` to confirm the test passes. +- Build the target ``check-clang-tools`` to confirm the test passes. - Repeat the process until all aspects of your check are covered by tests. 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 public: MyCheck(StringRef Name, ClangTidyContext *Context) : ClangTidyCheck(Name, Context), - SomeOption(Options.get("SomeOption1", -1U)), - SomeOption(Options.get("SomeOption2", "some default")) {} + SomeOption1(Options.get("SomeOption1", -1U)), + SomeOption2(Options.get("SomeOption2", "some default")) {} void storeOptions(ClangTidyOptions::OptionMap &Opts) override { Options.store(Opts, "SomeOption1", SomeOption1); diff --git a/clang/docs/ClangTransformerTutorial.rst b/clang/docs/ClangTransformerTutorial.rst index b07b83f80f17d1..e9b701203300a2 100644 --- a/clang/docs/ClangTransformerTutorial.rst +++ b/clang/docs/ClangTransformerTutorial.rst @@ -70,7 +70,7 @@ can express this a Transformer rewrite rule: .. code-block:: c++ - makeRule(functionDecl(hasName("MkX").bind("fun"), + makeRule(functionDecl(hasName("MkX")).bind("fun"), noopEdit(node("fun")), cat("The name ``MkX`` is not allowed for functions; please rename")); diff --git a/clang/include/clang/Basic/Diagnostic.h b/clang/include/clang/Basic/Diagnostic.h index 510b782e35d065..8708bd10dc4014 100644 --- a/clang/include/clang/Basic/Diagnostic.h +++ b/clang/include/clang/Basic/Diagnostic.h @@ -224,7 +224,7 @@ class DiagStorageAllocator { /// Concrete class used by the front-end to report problems and issues. /// -/// This massages the diagnostics (e.g. handling things like "report warnings +/// This messages the diagnostics (e.g. handling things like "report warnings /// as errors" and passes them off to the DiagnosticConsumer for reporting to /// the user. DiagnosticsEngine is tied to one translation unit and one /// SourceManager. diff --git a/llvm/docs/DeveloperPolicy.rst b/llvm/docs/DeveloperPolicy.rst index 6614d036a014e9..18b05d2e58e6e5 100644 --- a/llvm/docs/DeveloperPolicy.rst +++ b/llvm/docs/DeveloperPolicy.rst @@ -136,7 +136,7 @@ awareness of. For such changes, the following should be done: .. warning:: - Phabricator is deprecated is available in read-only mode, + Phabricator is deprecated and is available in read-only mode, for new code contributions use :ref:`GitHub Pull Requests <github-reviews>`. This section contains old information that needs to be updated. diff --git a/llvm/docs/GitHub.rst b/llvm/docs/GitHub.rst index 85766bfe94afd2..df0b4841a7bb58 100644 --- a/llvm/docs/GitHub.rst +++ b/llvm/docs/GitHub.rst @@ -50,7 +50,7 @@ documentation refer to `GitHub's documentation <https://docs.github.com/pull-req .. note:: If you are using a Pull Request for purposes other than review (eg: precommit CI results, convenient web-based reverts, etc) - `skip-precommit-approval <https://github.com/llvm/llvm-project/labels?q=skip-precommit-approval>`_ + add a `skip-precommit-approval <https://github.com/llvm/llvm-project/labels?q=skip-precommit-approval>`_ label to the PR. GitHub Tools diff --git a/llvm/docs/MyFirstTypoFix.rst b/llvm/docs/MyFirstTypoFix.rst index 733b3eac141f27..5856615bee8bfa 100644 --- a/llvm/docs/MyFirstTypoFix.rst +++ b/llvm/docs/MyFirstTypoFix.rst @@ -378,7 +378,7 @@ your branch with more commits and push to your GitHub fork of ``llvm-project``. It is best if you answer comments from the reviewer directly instead of expecting them to read through all the changes again. -For example you might comment "I have done this." or "I was able to this part +For example you might comment "I have done this." or "I was able to do this part but have a question about...". Review expectations >From 477adc631b3a3dc2b241b9e5f8714cc4949ce34e Mon Sep 17 00:00:00 2001 From: DeNiCoN <denicon1...@gmail.com> Date: Sun, 19 Jan 2025 10:16:37 +0100 Subject: [PATCH 2/2] fixup! Fix some typos --- llvm/docs/GitHub.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/llvm/docs/GitHub.rst b/llvm/docs/GitHub.rst index df0b4841a7bb58..892b8abcc2d4e2 100644 --- a/llvm/docs/GitHub.rst +++ b/llvm/docs/GitHub.rst @@ -50,7 +50,7 @@ documentation refer to `GitHub's documentation <https://docs.github.com/pull-req .. note:: If you are using a Pull Request for purposes other than review (eg: precommit CI results, convenient web-based reverts, etc) - add a `skip-precommit-approval <https://github.com/llvm/llvm-project/labels?q=skip-precommit-approval>`_ + add the `skip-precommit-approval <https://github.com/llvm/llvm-project/labels?q=skip-precommit-approval>`_ label to the PR. GitHub Tools _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits