Documentation: add information about builtin includes to FAQ
authorDmitri Gribenko <gribozavr@gmail.com>
Thu, 7 Feb 2013 14:36:37 +0000 (14:36 +0000)
committerDmitri Gribenko <gribozavr@gmail.com>
Thu, 7 Feb 2013 14:36:37 +0000 (14:36 +0000)
llvm-svn: 174612

clang/docs/FAQ.rst
clang/docs/LibTooling.rst

index d4993cd..28d4362 100644 (file)
@@ -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.
+
index f0a35d5..a9c24c3 100644 (file)
@@ -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
 ^^^^^^^^^^^^^^^^