Author: Andrei Lebedev
Date: 2020-08-01T15:54:11-07:00
New Revision: 8dd4e3ceb804a58bcf25e6856fc6fde5e1995a66
URL:
https://github.com/llvm/llvm-project/commit/8dd4e3ceb804a58bcf25e6856fc6fde5e1995a66
DIFF:
https://github.com/llvm/llvm-project/commit/8dd4e3ceb804a58bcf25e6856fc6fde5e1995a66.diff
LOG: Updated the -I option description.
Added:
Modified:
clang/docs/ClangCommandLineReference.rst
clang/include/clang/Driver/Options.td
Removed:
diff --git a/clang/docs/ClangCommandLineReference.rst
b/clang/docs/ClangCommandLineReference.rst
index 699a0be72036..8eb010eae265 100644
--- a/clang/docs/ClangCommandLineReference.rst
+++ b/clang/docs/ClangCommandLineReference.rst
@@ -1014,9 +1014,9 @@ Include path management
Flags controlling how ``#include``\s are resolved to files.
-.. option:: -I, --include-directory , --include-directory=
+.. option:: -I, --include-directory , --include-directory=
-Add directory to the list of include files search paths. If there are
multiple -I options, these directories are searched in the order they are given
before the standard system directories are searched. If the same directory is
in the SYSTEM include search paths, for example if also specified with
-isystem, the -I option will be ignored
+Add directory to include search path. If there are multiple -I options, these
directories are searched in the order they are given before the standard system
directories are searched. If the same directory is in the SYSTEM include search
paths, for example if also specified with -isystem, the -I option will be
ignored
.. option:: -I-, --include-barrier
diff --git a/clang/include/clang/Driver/Options.td
b/clang/include/clang/Driver/Options.td
index 889035a0815e..16051934c1e0 100644
--- a/clang/include/clang/Driver/Options.td
+++ b/clang/include/clang/Driver/Options.td
@@ -395,7 +395,12 @@ def I_ : Flag<["-"], "I-">, Group,
"remove current directory from include path">;
def I : JoinedOrSeparate<["-"], "I">, Group,
Flags<[CC1Option,CC1AsOption]>, MetaVarName<"">,
-HelpText<"Add directory to include search path">;
+HelpText<"Add directory to include search path. If there are multiple -I "
+ "options, these directories are searched in the order they are "
+ "given before the standard system directories are searched. "
+ "If the same directory is in the SYSTEM include search paths, for
"
+ "example if also specified with -isystem, the -I option will be "
+ "ignored">;
def L : JoinedOrSeparate<["-"], "L">, Flags<[RenderJoined]>, Group,
MetaVarName<"">, HelpText<"Add directory to library search path">;
def MD : Flag<["-"], "MD">, Group,
@@ -1244,7 +1249,7 @@ def finline_functions : Flag<["-"], "finline-functions">,
Group,
def finline_hint_functions: Flag<["-"], "finline-hint-functions">,
Group, Flags<[CC1Option]>,
HelpText<"Inline functions which are (explicitly or implicitly) marked
inline">;
def finline : Flag<["-"], "finline">, Group;
-def fglobal_isel : Flag<["-"], "fglobal-isel">, Group,
+def fglobal_isel : Flag<["-"], "fglobal-isel">, Group,
HelpText<"Enables the global instruction selector">;
def fexperimental_isel : Flag<["-"], "fexperimental-isel">,
Group,
Alias;
___
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits