[clang] 07ddf19 - [clang][docs] Update Include Options Help (#101192)
via cfe-commits
cfe-commits at lists.llvm.org
Wed Aug 7 13:01:30 PDT 2024
Author: Sam Elliott
Date: 2024-08-07T21:01:24+01:00
New Revision: 07ddf19438d20f0b9c5131288d278a5c786e662d
URL: https://github.com/llvm/llvm-project/commit/07ddf19438d20f0b9c5131288d278a5c786e662d
DIFF: https://github.com/llvm/llvm-project/commit/07ddf19438d20f0b9c5131288d278a5c786e662d.diff
LOG: [clang][docs] Update Include Options Help (#101192)
This adds HelpTexts for some clang options that relate to include
directory handling, to sync them up with what's in clang.rst (and
therefore the man page).
Added:
Modified:
clang/docs/CommandGuide/clang.rst
clang/include/clang/Driver/Options.td
Removed:
################################################################################
diff --git a/clang/docs/CommandGuide/clang.rst b/clang/docs/CommandGuide/clang.rst
index a0c2594d06c61e..ca8176f854729b 100644
--- a/clang/docs/CommandGuide/clang.rst
+++ b/clang/docs/CommandGuide/clang.rst
@@ -703,6 +703,10 @@ Preprocessor Options
Do not search clang's builtin directory for include files.
+.. option:: -nostdinc++
+
+ Do not search the system C++ standard library directory for include files.
+
.. option:: -fkeep-system-includes
Usable only with :option:`-E`. Do not copy the preprocessed content of
diff --git a/clang/include/clang/Driver/Options.td b/clang/include/clang/Driver/Options.td
index 9bc84168c29608..51ec29f1dc3212 100644
--- a/clang/include/clang/Driver/Options.td
+++ b/clang/include/clang/Driver/Options.td
@@ -5507,7 +5507,7 @@ def no__dead__strip__inits__and__terms : Flag<["-"], "no_dead_strip_inits_and_te
def nobuiltininc : Flag<["-"], "nobuiltininc">,
Visibility<[ClangOption, CC1Option, CLOption, DXCOption]>,
Group<IncludePath_Group>,
- HelpText<"Disable builtin #include directories">,
+ HelpText<"Disable builtin #include directories only">,
MarshallingInfoNegativeFlag<HeaderSearchOpts<"UseBuiltinIncludes">>;
def nogpuinc : Flag<["-"], "nogpuinc">, Group<IncludePath_Group>,
HelpText<"Do not add include paths for CUDA/HIP and"
@@ -5534,8 +5534,10 @@ def noprofilelib : Flag<["-"], "noprofilelib">;
def noseglinkedit : Flag<["-"], "noseglinkedit">;
def nostartfiles : Flag<["-"], "nostartfiles">, Group<Link_Group>;
def nostdinc : Flag<["-"], "nostdinc">,
- Visibility<[ClangOption, CLOption, DXCOption]>, Group<IncludePath_Group>;
-def nostdlibinc : Flag<["-"], "nostdlibinc">, Group<IncludePath_Group>;
+ Visibility<[ClangOption, CLOption, DXCOption]>, Group<IncludePath_Group>,
+ HelpText<"Disable both standard system #include directories and builtin #include directores">;
+def nostdlibinc : Flag<["-"], "nostdlibinc">, Group<IncludePath_Group>,
+ HelpText<"Disable standard system #include directories only">;
def nostdincxx : Flag<["-"], "nostdinc++">, Visibility<[ClangOption, CC1Option]>,
Group<IncludePath_Group>,
HelpText<"Disable standard #include directories for the C++ standard library">,
More information about the cfe-commits
mailing list