diff options
author | Alexander Kornienko <alexfh@google.com> | 2014-03-26 01:39:59 +0000 |
---|---|---|
committer | Alexander Kornienko <alexfh@google.com> | 2014-03-26 01:39:59 +0000 |
commit | 8a2341c22d1f64417a57b6c2457f71aa71e6f7da (patch) | |
tree | d8b38100397f4bc806775a139a167fe400586852 /docs/UsersManual.rst | |
parent | 70f12c60afd1c3fdf2dd8718f734fd06646bf588 (diff) | |
download | clang-8a2341c22d1f64417a57b6c2457f71aa71e6f7da.tar.gz clang-8a2341c22d1f64417a57b6c2457f71aa71e6f7da.tar.bz2 clang-8a2341c22d1f64417a57b6c2457f71aa71e6f7da.tar.xz |
Move the -i[no-]system-prefix options from CC1Options.td to Options.td.
Summary:
This allows them to be used without -cc1 the same way as -I and -isystem.
Renamed the options to --system-header-prefix=/--no-system-header-prefix to avoid interference with -isystem and make the intent of the option cleaner.
Reviewers: rsmith
Reviewed By: rsmith
CC: cfe-commits
Differential Revision: http://llvm-reviews.chandlerc.com/D3185
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@204775 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'docs/UsersManual.rst')
-rw-r--r-- | docs/UsersManual.rst | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/docs/UsersManual.rst b/docs/UsersManual.rst index 43a8717c9b..5b761a8326 100644 --- a/docs/UsersManual.rst +++ b/docs/UsersManual.rst @@ -700,17 +700,18 @@ the pragma onwards within the same file. char b = 'ab'; // no warning -The :option:`-isystem-prefix` and :option:`-ino-system-prefix` command-line -arguments can be used to override whether subsets of an include path are -treated as system headers. When the name in a ``#include`` directive is -found within a header search path and starts with a system prefix, the +The :option:`--system-header-prefix=` and :option:`--no-system-header-prefix=` +command-line arguments can be used to override whether subsets of an include +path are treated as system headers. When the name in a ``#include`` directive +is found within a header search path and starts with a system prefix, the header is treated as a system header. The last prefix on the command-line which matches the specified header name takes precedence. For instance: .. code-block:: console - $ clang -Ifoo -isystem bar -isystem-prefix x/ -ino-system-prefix x/y/ + $ clang -Ifoo -isystem bar --system-header-prefix=x/ \ + --no-system-header-prefix=x/y/ Here, ``#include "x/a.h"`` is treated as including a system header, even if the header is found in ``foo``, and ``#include "x/y/b.h"`` is treated |