CLANG-INCLUDE-FIXER(1)
π¦ CLANG-INCLUDE-FIXER π¦
okay so welcome to CLANG-INCLUDE-FIXER(1) bestie, this is the manual page for clang-include-fixer 22 and we're gonna get through it together, no cap π
β¨ NAME β¨
clang-include-fixer β literally the manual page for clang-include-fixer 22. that's it, that's the name, periodt.
πΈ DESCRIPTION πΈ
Here's the shape of it, the whole vibe, the usage bestie:
USAGE: clang-include-fixer [options] <source0> [... <sourceN>]
And nowβ¦ the options. so many options. we love her for it tho π
π OPTIONS π
π Generic Options π
these are the lil universal ones, the group-chat basics:
--helpβ shows you all the available options that are just out here in the open (--help-hiddenis the one you hit up for the extra secret ones)--help-listβ displays a list of the available options (--help-list-hiddenfor even more, iykyk)--versionβ tells you what version of this program you're working with
π Tool options π
okay now THIS is the main character section, the real ones:
--db=<value>β specify the input format, and here's the menu of what value can be, no guessing:=fixedβ hard-coded mapping=yamlβ a Yaml database created byfind-all-symbols=fuzzyYamlβ a Yaml database, but with fuzzy-matched names β¨
--extra-arg=<string>β an additional argument to append to the compiler command line--extra-arg-before=<string>β an additional argument to prepend to the compiler command line (yes, before, not after, don't mix them up bestie π)--input=<string>β a String to initialize the database with--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. It supports 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, like this:
{ "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 (quiet lil queen π«Ά)--query-symbol=<string>β query a given symbol (e.g."a::b::foo") in the database directly, without parsing the file. so direct. so efficient. π--stdinβ override the 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>β the fallback style for reformatting after inserting new headers, if there's noclang-formatconfig file found πΈ
heads up bestie: --insert-header should run with STDIN mode, and its result goes to stdout β and it's currently used for editor integration, so that's the context you're stepping into π
okay that's the whole page, you ate it, you read every single flag and i'm so proud of you π₯Ήπ
this was clang-include-fixer 22, dated September 2026 β that's the version and the date, leaving you with all the love, bye bestie πβ¨π
π¦ where this page comes from
- ubuntu stonking: clang-tools-22 1:22.1.8-1ubuntu1 Β· APACHE-2-LLVM-EXCEPTIONS
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms