diff options
author | Dmitri Gribenko <gribozavr@gmail.com> | 2013-02-07 14:36:37 +0000 |
---|---|---|
committer | Dmitri Gribenko <gribozavr@gmail.com> | 2013-02-07 14:36:37 +0000 |
commit | 1142b2aa6c10ed5f923eb4422fcfde185138087d (patch) | |
tree | 3198a97283e008907f15e2fde55a766094593486 | |
parent | 775bb8a4aecdd1e0af2a7a6baba449f074afa2c1 (diff) |
Documentation: add information about builtin includes to FAQ
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@174612 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | docs/FAQ.rst | 11 | ||||
-rw-r--r-- | docs/LibTooling.rst | 3 |
2 files changed, 14 insertions, 0 deletions
diff --git a/docs/FAQ.rst b/docs/FAQ.rst index d4993cd25f..28d4362f8a 100644 --- a/docs/FAQ.rst +++ b/docs/FAQ.rst @@ -51,3 +51,14 @@ driver and add the option you need. Alternatively, you can run ``clang -Xclang <option> ...`` to force the driver pass ``<option>`` to ``clang -cc1``. +I get errors about some headers being missing (``stddef.h``, ``stdard.h``) +-------------------------------------------------------------------------- + +Some header files (``stddef.h``, ``stdard.h``, and others) are shipped with +Clang --- these are called builtin includes. Clang searches for them in a +directory relative to the location of the ``clang`` binary. If you moved the +``clang`` binary, you need to move the builtin headers, too. + +More information can be found in the :ref:`libtooling_builtin_includes` +section. + diff --git a/docs/LibTooling.rst b/docs/LibTooling.rst index f0a35d5c80..a9c24c3045 100644 --- a/docs/LibTooling.rst +++ b/docs/LibTooling.rst @@ -168,6 +168,9 @@ arguments: $ export BD=/path/to/build/llvm $ $BD/bin/clang-check -p $BD tools/clang/tools/clang-check/ClangCheck.cpp + +.. _libtooling_builtin_includes: + Builtin includes ^^^^^^^^^^^^^^^^ |