Skip to content

Commit 67e6a37

Browse files
carlosgalvezpCarlos Gálvez
andauthored
[clang] Remove HelpHidden from the -resource-dir option (llvm#163131)
Currently the "getter" option `-print-resource-dir` is visible when typing `--help`, but the corresponding "setter" option `-resource-dir` is not. This option is useful when one is using clang on a non-standard location, or when one is building a libtooling-based tool (e.g. IWYU) based on a local clang build. In that case, we need to specify the correct path to the resource directory for things to work. Existing documentation already makes use of this option, for example here: https://clang.llvm.org/docs/StandardCPlusPlusModules.html#possible-issues-failed-to-find-system-headers There is thus no reason to keep this option hidden from the help and documentation. --------- Co-authored-by: Carlos Gálvez <[email protected]>
1 parent 8615193 commit 67e6a37

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

clang/docs/ReleaseNotes.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -276,7 +276,7 @@ New Compiler Flags
276276
- New option ``-fno-sanitize-debug-trap-reasons`` added to disable emitting trap reasons into the debug info when compiling with trapping UBSan (e.g. ``-fsanitize-trap=undefined``).
277277
- New option ``-fsanitize-debug-trap-reasons=`` added to control emitting trap reasons into the debug info when compiling with trapping UBSan (e.g. ``-fsanitize-trap=undefined``).
278278
- New options for enabling allocation token instrumentation: ``-fsanitize=alloc-token``, ``-falloc-token-max=``, ``-fsanitize-alloc-token-fast-abi``, ``-fsanitize-alloc-token-extended``.
279-
279+
- The ``-resource-dir`` option is now displayed in the list of options shown by ``--help``.
280280

281281
Lanai Support
282282
^^^^^^^^^^^^^^

clang/include/clang/Driver/Options.td

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6122,7 +6122,7 @@ def rewrite_legacy_objc : Flag<["-"], "rewrite-legacy-objc">,
61226122
def rdynamic : Flag<["-"], "rdynamic">, Group<Link_Group>,
61236123
Visibility<[ClangOption, FlangOption]>;
61246124
def resource_dir : Separate<["-"], "resource-dir">,
6125-
Flags<[NoXarchOption, HelpHidden]>,
6125+
Flags<[NoXarchOption]>,
61266126
Visibility<[ClangOption, CC1Option, CLOption, DXCOption, FlangOption, FC1Option]>,
61276127
HelpText<"The directory which holds the compiler resource files">,
61286128
MarshallingInfoString<HeaderSearchOpts<"ResourceDir">>;

0 commit comments

Comments
 (0)