OS Manuals

/usr/bin/clang-scan-deps

Clang 14 extras

From clang-14-extras 14.0.6-r12 (enterprise-packages), captured 2026-11-08 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
  --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-minimized-sources -   The set of dependencies is computed by preprocessing the source files that were minimized to only include the contents that might affect the dependencies
    =preprocess                   -   The set of dependencies is computed by preprocessing the unmodified 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.
  --skip-excluded-pp-ranges       - Use the preprocessor optimization that skips excluded conditionals by bumping the buffer pointer in the lexer instead of lexing the tokens  until reaching the end directive.
  -v                              - Use verbose output.
Options (14)
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
--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-minimized-sources - The set of dependencies is computed by preprocessing the source files that were minimized to only include the…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
--skip-excluded-pp-ranges- Use the preprocessor optimization that skips excluded conditionals by bumping the buffer pointer in the lexer instead of lexing the tokens until reaching the end directive.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.