summaryrefslogtreecommitdiffstats
path: root/clang/docs
diff options
context:
space:
mode:
authorIlya Biryukov <ibiryukov@google.com>2019-06-06 08:06:25 +0000
committerIlya Biryukov <ibiryukov@google.com>2019-06-06 08:06:25 +0000
commit0d02dc60542f7ba2e0ac19220350e8e097ab6d0a (patch)
tree09b63c588cd0f85d1b1782064bebc9d30783e10d /clang/docs
parentdbceb9b2203b58f829e911c8d1610b95d9abf192 (diff)
downloadbcm5719-llvm-0d02dc60542f7ba2e0ac19220350e8e097ab6d0a.tar.gz
bcm5719-llvm-0d02dc60542f7ba2e0ac19220350e8e097ab6d0a.zip
Update AST matchers tutorial to use monorepo layout
The docs were inconsistent: requesting the user to clone the monorepo, and then continuing with the `llvm/tools/clang` layout. Follow-up to a question on cfe-dev: http://lists.llvm.org/pipermail/cfe-dev/2019-June/062518.html llvm-svn: 362683
Diffstat (limited to 'clang/docs')
-rw-r--r--clang/docs/LibASTMatchersTutorial.rst12
1 files changed, 6 insertions, 6 deletions
diff --git a/clang/docs/LibASTMatchersTutorial.rst b/clang/docs/LibASTMatchersTutorial.rst
index 24659a5209c..b0f1217de50 100644
--- a/clang/docs/LibASTMatchersTutorial.rst
+++ b/clang/docs/LibASTMatchersTutorial.rst
@@ -85,14 +85,14 @@ going on.
First, we'll need to create a new directory for our tool and tell CMake
that it exists. As this is not going to be a core clang tool, it will
-live in the ``tools/extra`` repository.
+live in the ``clang-tools-extra`` repository.
.. code-block:: console
- cd ~/clang-llvm/llvm/tools/clang
- mkdir tools/extra/loop-convert
- echo 'add_subdirectory(loop-convert)' >> tools/extra/CMakeLists.txt
- vim tools/extra/loop-convert/CMakeLists.txt
+ cd ~/clang-llvm
+ mkdir clang-tools-extra/loop-convert
+ echo 'add_subdirectory(loop-convert)' >> clang-tools-extra/CMakeLists.txt
+ vim clang-tools-extra/loop-convert/CMakeLists.txt
CMakeLists.txt should have the following contents:
@@ -112,7 +112,7 @@ CMakeLists.txt should have the following contents:
With that done, Ninja will be able to compile our tool. Let's give it
something to compile! Put the following into
-``tools/extra/loop-convert/LoopConvert.cpp``. A detailed explanation of
+``clang-tools-extra/loop-convert/LoopConvert.cpp``. A detailed explanation of
why the different parts are needed can be found in the `LibTooling
documentation <LibTooling.html>`_.
OpenPOWER on IntegriCloud