OS Manuals

/usr/lib/llvm-20/bin/clang-include-fixer

Clang 20 extras

From clang-20-extras 20.1.8-r21 (os), captured 2026-11-05 by running clang-include-fixer --help (exit 0). permalink

USAGE: clang-include-fixer [options] <source0> [... <sourceN>]

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:

  --db=<value>                - Specify input format
    =fixed                    -   Hard-coded mapping
    =yaml                     -   Yaml database created by find-all-symbols
    =fuzzyYaml                -   Yaml database, with fuzzy-matched names
  --extra-arg=<string>        - Additional argument to append to the compiler command line
  --extra-arg-before=<string> - Additional argument to prepend to the compiler command line
  --input=<string>            - String to initialize the database
  --insert-header=<string>    - Insert a specific header. This should run with STDIN mode.
                                The result is written to stdout. It is currently used for
                                editor integration. Support YAML/JSON format:
                                  -insert-header="{
                                     FilePath: "/path/to/foo.cc",
                                     QuerySymbolInfos: [
                                       {RawIdentifier: foo,
                                        Range: {Offset: 0, Length: 3}}
                                     ],
                                     HeaderInfos: [ {Headers: "\"foo_a.h\"",
                                                     QualifiedName: "a::foo"} ]}"
  --minimize-paths            - Whether to minimize added include paths
  --output-headers            - Print the symbol being queried and all its relevant headers in
                                JSON format to stdout:
                                  {
                                    "FilePath": "/path/to/foo.cc",
                                    "QuerySymbolInfos": [
                                       {"RawIdentifier": "foo",
                                        "Range": {"Offset": 0, "Length": 3}}
                                    ],
                                    "HeaderInfos": [ {"Header": "\"foo_a.h\"",
                                                      "QualifiedName": "a::foo"} ]
                                  }
  -p <string>                 - Build path
  -q                          - Reduce terminal output
  --query-symbol=<string>     - Query a given symbol (e.g. "a::b::foo") in
                                database directly without parsing the file.
  --stdin                     - Override source file's content (in the overlaying
                                virtual file system) with input from <stdin> and run
                                the tool on the new content with the compilation
                                options of the source file. This mode is currently
                                used for editor integration.
  --style=<string>            - Fallback style for reformatting after inserting new
                                headers if there is no clang-format config file found.
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
--db value- Specify input format =fixed - Hard-coded mapping =yaml - Yaml database created by find-all-symbols =fuzzyYaml - Yaml database, with fuzzy-matched nameshelp
--extra-arg string- Additional argument to append to the compiler command linehelp
--input string- String to initialize the databasehelp
--insert-header string- Insert a specific header.help
--minimize-paths- Whether to minimize added include pathshelp
--output-headers- Print the symbol being queried and all its relevant headers in JSON format to stdout: { "FilePath": "/path/to/foo.cc", "QuerySymbolInfos": [ {"RawIdentifier": "foo", "Range": {"Offset": 0,…help
-p string- Build pathhelp
-q- Reduce terminal outputhelp
--query-symbol string- Query a given symbol (e.g. "a::b::foo") in database directly without parsing the file.help
--stdin- Override source file's content (in the overlaying virtual file system) with input from <stdin> and run the tool on the new content with the compilation options of the source file.help
--style string- Fallback style for reformatting after inserting new headers if there is no clang-format config file found.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.