CLANG-INCLUDE-FIXER(1)
๐ NAME ๐
okay so bestie, welcome to clang-include-fixer โ manual page for clang-include-fixer 13, filed under User Commands, and honestly she's the friend who always knows where the thing is. this whole page is her. ๐
๐ฆ DESCRIPTION ๐ฆ
โจ USAGE โจ
clang-include-fixer [options] <source0> [... <sourceN>]
that's the whole vibe: you give her some source files โ <source0> all the way out to <sourceN> โ you sprinkle on some [options], and she handles the rest. main character energy, no notes. ๐ซถ
๐ OPTIONS ๐
๐ Generic Options
--helpโ shows you all the available options she's got. want the secret menu too? that's--help-hidden, and it's giving extra. ๐--help-listโ prints out a list of the available options. and yes, there's a--help-list-hiddenfor more, because of course there is. โจ--versionโ tells you which version of this program you're running. a lil identity check, love that for her. ๐ชช
๐ง Tool options
--db=<value>โ tells her the input format to use. here's the menu of<value>s:=fixedโ hard-coded mapping. old reliable. ๐=yamlโ a Yaml database that was created byfind-all-symbols.=fuzzyYamlโ a Yaml database, except the names are fuzzy-matched. soft focus, very demure. ๐ธ
--extra-arg=<string>โ one extra argument, appended to the compiler command line. little bonus at the end. โจ--extra-arg-before=<string>โ one extra argument, but prepended to the compiler command line. she goes first, obviously, she's the main character. ๐--input=<string>โ a string used to initialize the database. ๐--insert-header=<string>โ insert one specific header. > heads up bestie: this one should run with STDIN mode. The result is written to stdout, and it's 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 the added include paths. tidy queen. ๐งน--output-headersโ prints 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>โ the build path. ๐-qโ reduces terminal output. less yapping, more doing. ๐คซ--query-symbol=<string>โ query a given symbol directly in the database (like, say,"a::b::foo") without even parsing the file. she just knows. ๐ฎ--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 for reformatting after inserting new headers, used when there's noclang-formatconfig file found. she's got a backup fit. ๐
ngl bestie, that's the whole page โ every option, every value, every default, all accounted for. nothing skipped, nothing invented. iykyk. ๐
and that's a wrap!! this was clang-include-fixer 13, from July 2023, living her best life in the User Commands manual. go fix some includes, you absolute icon. ๐๐๐ฆโจ
๐ฆ where this page comes from
- ubuntu jammy: clang-tools-13 1:13.0.1-2ubuntu2.2 ยท APACHE-2-LLVM-EXCEPTIONS
- ๐ girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms