Author: ibiryukov Date: Thu Jun 6 01:06:25 2019 New Revision: 362683 URL: http://llvm.org/viewvc/llvm-project?rev=362683&view=rev Log: 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 Modified: cfe/trunk/docs/LibASTMatchersTutorial.rst Modified: cfe/trunk/docs/LibASTMatchersTutorial.rst URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/docs/LibASTMatchersTutorial.rst?rev=362683&r1=362682&r2=362683&view=diff ============================================================================== --- cfe/trunk/docs/LibASTMatchersTutorial.rst (original) +++ cfe/trunk/docs/LibASTMatchersTutorial.rst Thu Jun 6 01:06:25 2019 @@ -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 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>`_. _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits