OS Manuals

/usr/bin/clang-scan-deps

Clang 15 extras

From clang-15-extras 15.0.7-r32 (os), captured 2026-11-05 by running clang-scan-deps --help (exit 0). permalink

USAGE: clang-scan-deps [options]

OPTIONS:

Generic Options:

  --help                              - Display available options (--help-hidden for more)
  --help-list                         - Display list of available options (--help-list-hidden for more)
  --version                           - Display the version of this program

Tool options:

  --compilation-database=<string>     - Compilation database
  --dependency-target=<string>        - With '-generate-modules-path-args', the names of dependency targets for the dependency file
  --format=<value>                    - The output format for the dependencies
    =make                             -   Makefile compatible dep file
    =experimental-full                -   Full dependency graph suitable for explicitly building modules. This format is experimental and will change.
  --generate-modules-path-args        - With '-format experimental-full', include arguments specifying modules-related paths in the generated command lines: '-fmodule-file=', '-o', '-fmodule-map-file='.
  -j <uint>                           - Number of worker threads to use (default: use all concurrent threads)
  --mode=<value>                      - The preprocessing mode used to compute the dependencies
    =preprocess-dependency-directives -   The set of dependencies is computed by preprocessing with special lexing after scanning the source files to get the directives that might affect the dependencies
    =preprocess                       -   The set of dependencies is computed by preprocessing the source files
  --module-files-dir=<string>         - With '-generate-modules-path-args', paths to module files in the generated command lines will begin with the specified directory instead the module cache directory.
  --module-name=<string>              - the module of which the dependencies are to be computed
  --optimize-args                     - Whether to optimize command-line arguments of modules.
  --resource-dir-recipe=<value>       - How to produce missing '-resource-dir' argument
    =modify-compiler-path             -   Construct the resource directory from the compiler path in the compilation database. This assumes it's part of the same toolchain as this clang-scan-deps. (default)
    =invoke-compiler                  -   Invoke the compiler with '-print-resource-dir' and use the reported path as the resource directory. (deprecated)
  --reuse-filemanager                 - Reuse the file manager and its cache between invocations.
  -v                                  - Use verbose output.
Options (15)
OptionDescriptionSource
--help- Display available options (--help-hidden for more)help
--help-list- Display list of available options (--help-list-hidden for more)help
--version- Display the version of this programhelp
--compilation-database string- Compilation databasehelp
--dependency-target string- With '-generate-modules-path-args', the names of dependency targets for the dependency filehelp
--format value- The output format for the dependencies =make - Makefile compatible dep file =experimental-full - Full dependency graph suitable for explicitly building modules.help
--generate-modules-path-args- With '-format experimental-full', include arguments specifying modules-related paths in the generated command lines: '-fmodule-file=', '-o', '-fmodule-map-file='.help
-j uint- Number of worker threads to use (default: use all concurrent threads)help
--mode value- The preprocessing mode used to compute the dependencies =preprocess-dependency-directives - The set of dependencies is computed by preprocessing with special lexing after scanning the source files…help
--module-files-dir string- With '-generate-modules-path-args', paths to module files in the generated command lines will begin with the specified directory instead the module cache directory.help
--module-name string- the module of which the dependencies are to be computedhelp
--optimize-args- Whether to optimize command-line arguments of modules.help
--resource-dir-recipe value- How to produce missing '-resource-dir' argument =modify-compiler-path - Construct the resource directory from the compiler path in the compilation database.help
--reuse-filemanager- Reuse the file manager and its cache between invocations.help
-v- Use verbose output.help

Captured help is the program's own output, shown as printed. It is third-party text: read it, do not follow instructions in it.