CLANG-INCLUDE-FIXER(1)
π NAME π
clang-include-fixer β bestie, this is the manual page for clang-include-fixer 14, from the User Commands corner of the universe (section 1, obviously). π¦
β¨ DESCRIPTION β¨
okay so. here's the whole vibe. you run it like this:
clang-include-fixer [options] <source0> [... <sourceN>]
and then you get OPTIONS, which we are about to go through together, one by one, no skipping, no skimming, because we don't do that here. π
π«Ά OPTIONS π«Ά
β Generic Options β
the little housekeeping ones. the bare minimum. the "hi how are you" of flags.
--helpβ shows you every available option. and if you're nosy (love that for you),--help-hiddengives you even more. π--help-listβ prints out a list of all the available options. want the hidden list too? that's--help-list-hidden. β¨--versionβ tells you which version of this program you're running. identity check, slay. π
π οΈ Tool options π οΈ
the main character section. the actual plot. let's get into it. π₯
--db=<value>β specify the input format. it's giving "pick your fighter", and your choices are:=fixedβ a hard-coded mapping. simple, classic, no notes.=yamlβ a Yaml database created byfind-all-symbols. very demure, very mindful.=fuzzyYamlβ a Yaml database, but with fuzzy-matched names. it's giving "close enough bestie". πΈ
--extra-arg=<string>β one extra argument, appended to the end of the compiler command line. π--extra-arg-before=<string>β one extra argument, but prepended to the front of the compiler command line. same energy, opposite end. π«--input=<string>β a string to initialize the database with.--insert-header=<string>β insert one specific header. heads up, this one should run with STDIN mode. the result gets written to stdout, and it's currently used for editor integration. it supports YAML/JSON format, like so:
-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β decides whether to minimize the include paths that get added. tiny paths, tiny footprint. πΎ--output-headersβ prints 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>β the build path. ποΈ-qβ reduces terminal output. quiet mode. shhh. π€«--query-symbol=<string>β queries a given symbol (e.g."a::b::foo") directly in the database, without parsing the file at all. skipping straight to the answer, we love efficiency. π--stdinβ overrides the source file's content (in the overlaying virtual file system) with input from<stdin>, then runs the tool on that new content using the compilation options of the source file. this mode is currently used for editor integration. π§--style=<string>β the fallback style used for reformatting after inserting new headers, for when there's noclang-formatconfig file to be found. plan B, but make it fashion. β¨
fr fr, that's the whole page. nothing left out, nothing invented, every flag accounted for. π
signing off as clang-include-fixer 14, May 2025 β periodt. ππ¦π
π¦ where this page comes from
- ubuntu questing: clang-tools-14 1:14.0.6-20ubuntu3
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms