[clang] 1d3d5ec - [Documentation] Fixed typos in LibASTMatchers tutorial
via cfe-commits
cfe-commits at lists.llvm.org
Fri Jun 10 01:22:42 PDT 2022
Author: isuckatcs
Date: 2022-06-10T10:22:36+02:00
New Revision: 1d3d5ecea5f07546a9755a1d4546dbe4930af624
URL: https://github.com/llvm/llvm-project/commit/1d3d5ecea5f07546a9755a1d4546dbe4930af624
DIFF: https://github.com/llvm/llvm-project/commit/1d3d5ecea5f07546a9755a1d4546dbe4930af624.diff
LOG: [Documentation] Fixed typos in LibASTMatchers tutorial
There was one missing parenthesis and a typo in the mentioned
part of the documentation.
Differential Revision: https://reviews.llvm.org/D124738
Added:
Modified:
clang/docs/LibASTMatchersTutorial.rst
Removed:
################################################################################
diff --git a/clang/docs/LibASTMatchersTutorial.rst b/clang/docs/LibASTMatchersTutorial.rst
index 3f396dd39ded1..37c9f178fa8df 100644
--- a/clang/docs/LibASTMatchersTutorial.rst
+++ b/clang/docs/LibASTMatchersTutorial.rst
@@ -399,7 +399,7 @@ in the callback. So we start with:
.. code-block:: c++
- hasCondition(binaryOperator(hasOperatorName("<"))
+ hasCondition(binaryOperator(hasOperatorName("<")))
It makes sense to ensure that the left-hand side is a reference to a
variable, and that the right-hand side has integer type.
@@ -529,7 +529,7 @@ address, all we need to do is make sure neither ``ValueDecl`` (base class of
}
If execution reaches the end of ``LoopPrinter::run()``, we know that the
-loop shell that looks like
+loop shell looks like
.. code-block:: c++
More information about the cfe-commits
mailing list