Skip to content

Commit 07ddf19

Browse files
authored
[clang][docs] Update Include Options Help (llvm#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).
1 parent 5fb2002 commit 07ddf19

File tree

2 files changed

+9
-3
lines changed

2 files changed

+9
-3
lines changed

clang/docs/CommandGuide/clang.rst

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -703,6 +703,10 @@ Preprocessor Options
703703

704704
Do not search clang's builtin directory for include files.
705705

706+
.. option:: -nostdinc++
707+
708+
Do not search the system C++ standard library directory for include files.
709+
706710
.. option:: -fkeep-system-includes
707711

708712
Usable only with :option:`-E`. Do not copy the preprocessed content of

clang/include/clang/Driver/Options.td

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5507,7 +5507,7 @@ def no__dead__strip__inits__and__terms : Flag<["-"], "no_dead_strip_inits_and_te
55075507
def nobuiltininc : Flag<["-"], "nobuiltininc">,
55085508
Visibility<[ClangOption, CC1Option, CLOption, DXCOption]>,
55095509
Group<IncludePath_Group>,
5510-
HelpText<"Disable builtin #include directories">,
5510+
HelpText<"Disable builtin #include directories only">,
55115511
MarshallingInfoNegativeFlag<HeaderSearchOpts<"UseBuiltinIncludes">>;
55125512
def nogpuinc : Flag<["-"], "nogpuinc">, Group<IncludePath_Group>,
55135513
HelpText<"Do not add include paths for CUDA/HIP and"
@@ -5534,8 +5534,10 @@ def noprofilelib : Flag<["-"], "noprofilelib">;
55345534
def noseglinkedit : Flag<["-"], "noseglinkedit">;
55355535
def nostartfiles : Flag<["-"], "nostartfiles">, Group<Link_Group>;
55365536
def nostdinc : Flag<["-"], "nostdinc">,
5537-
Visibility<[ClangOption, CLOption, DXCOption]>, Group<IncludePath_Group>;
5538-
def nostdlibinc : Flag<["-"], "nostdlibinc">, Group<IncludePath_Group>;
5537+
Visibility<[ClangOption, CLOption, DXCOption]>, Group<IncludePath_Group>,
5538+
HelpText<"Disable both standard system #include directories and builtin #include directores">;
5539+
def nostdlibinc : Flag<["-"], "nostdlibinc">, Group<IncludePath_Group>,
5540+
HelpText<"Disable standard system #include directories only">;
55395541
def nostdincxx : Flag<["-"], "nostdinc++">, Visibility<[ClangOption, CC1Option]>,
55405542
Group<IncludePath_Group>,
55415543
HelpText<"Disable standard #include directories for the C++ standard library">,

0 commit comments

Comments
 (0)