OS Manuals

/usr/lib/llvm-17/bin/clang-scan-deps

Clang 17 extras

From clang-17-extras 17.0.6-r30 (os), captured 2026-11-05 by running clang-scan-deps --help (exit 0). permalink

OVERVIEW: clang-scan-deps

USAGE: clang-scan-deps [options]

OPTIONS:
  -compilation-database=<value>
                       Compilation database
  -dependency-target=<value>
                       The names of dependency targets for the dependency file
  -deprecated-driver-command
                       use a single driver command to build the tu (deprecated)
  -eager-load-pcm      Load PCM files eagerly (instead of lazily on import)
  -format=<value>      The output format for the dependencies
  --help               Display this help
  -j <value>           Number of worker threads to use (default: use all concurrent threads)
  -mode=<value>        The preprocessing mode used to compute the dependencies
  -module-files-dir=<value>
                       The build directory for modules. Defaults to the value of '-fmodules-cache-path=' from command lines for implicit modules
  -module-name=<value> the module of which the dependencies are to be computed
  -optimize-args       Whether to optimize command-line arguments of modules
  -print-timing        Print timing information
  -resource-dir-recipe=<value>
                       How to produce missing '-resource-dir' argument
  -round-trip-args     verify that command-line arguments are canonical by parsing and re-serializing
  --version            Display the version
  -v                   Use verbose output
Options (15)
OptionDescriptionSource
-compilation-database valueCompilation databasehelp
-dependency-target valueThe names of dependency targets for the dependency filehelp
-deprecated-driver-commanduse a single driver command to build the tu (deprecated)help
-eager-load-pcmLoad PCM files eagerly (instead of lazily on import)help
-format valueThe output format for the dependencieshelp
--helpDisplay this helphelp
-j valueNumber of worker threads to use (default: use all concurrent threads)help
-mode valueThe preprocessing mode used to compute the dependencieshelp
-module-files-dir valueThe build directory for modules.help
-optimize-argsWhether to optimize command-line arguments of moduleshelp
-print-timingPrint timing informationhelp
-resource-dir-recipe valueHow to produce missing '-resource-dir' argumenthelp
-round-trip-argsverify that command-line arguments are canonical by parsing and re-serializinghelp
--versionDisplay the versionhelp
-vUse verbose outputhelp

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