Skip to content

Commit a2862b1

Browse files
committed
[clang][docs] Improve "Obtaining Clang" section
The documentation is written relatively to `clang-llvm`, not the root repository directory. Therefore, the `llvm-project` repo needs to be cloned into the existing directory `clang-llvm`. As cloning into an existing directory is only allowed if the directory is empty, I added `mkdir ~/clang-llvm` to make the intent of creating an empty directory explicit.
1 parent 13956fd commit a2862b1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

clang/docs/LibASTMatchersTutorial.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,8 @@ started guide <https://llvm.org/docs/GettingStarted.html>`_.
2222

2323
.. code-block:: console
2424
25-
cd ~/clang-llvm
26-
git clone https://github.com/llvm/llvm-project.git
25+
mkdir ~/clang-llvm && cd ~/clang-llvm
26+
git clone https://github.com/llvm/llvm-project.git .
2727
2828
Next you need to obtain the CMake build system and Ninja build tool.
2929

0 commit comments

Comments
 (0)