CLANG-INCLUDE-FIXER(1)
π NAME π
clang-include-fixer β it's the manual page for clang-include-fixer 17, bestie. Yes, the whole thing. Grab a strawberry π and let's go.
β¨ DESCRIPTION β¨
okay so here's the vibe. The usage is literally:
USAGE: clang-include-fixer [options] <source0> [... <sourceN>]
and then, and this is the part where you sit up straight:
OPTIONS:
Let's break it down, babes. π
πΈ Generic Options πΈ
--helpβ shows you the options you can actually use. (Want the hidden ones too? That's--help-hidden. π)--help-listβ prints a whole list of the available options. (--help-list-hiddenif you're feeling nosy about the hidden ones too.)--versionβ tells you what version of this program you're running. Iconic.
π Tool options π
--db=<value>β specifies the input format. And the formats are:=fixedβ a 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.--input=<string>β a string to initialize the database with.--insert-header=<string>β inserts a specific header. Heads up: this should run with STDIN mode, and the result gets written to stdout. It's currently used for editor integration, and it supports YAML/JSON format, like:
-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β prints the symbol being queried and all its relevant headers in JSON format to stdout, like:
{
"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β reduces terminal output. (Shy queen behavior. π)--query-symbol=<string>β queries a given symbol (e.g."a::b::foo") in the database directly, without parsing the file. no cap.--stdinβ overrides the source file's content (in the overlaying virtual file system) with input from<stdin>, then runs the tool on the new content using 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, used when there's noclang-formatconfig file found. π
lowkey important: <source0> [... <sourceN>] means you can pass more than one source file. Bring the whole friend group. π«Ά
π SEE ALSO π
ngl bestie, the original page didn't send you anywhere else. It's giving self-sufficient main character energy. π
that's the whole manual, fr fr. this was clang-include-fixer 17, page dated June 2025, straight out of User Commands. go forth and fix those includes, queen. πβ¨π
π¦ where this page comes from
- debian trixie: clang-tools-17 1:17.0.6-22+b2 Β· APACHE-2-LLVM-EXCEPTIONS
- ubuntu questing: clang-tools-17 1:17.0.6-22build1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms