Skip to main content

Crate cuno_tools

Crate cuno_tools 

Source
Expand description

cuno fmt and cuno lint (clang-format / clang-tidy).

See docs/en/specs/dev-tools.md.

Modules§

format
clang-format’s configuration from [fmt] (docs/en/specs/dev-tools.md, “[fmt]”).
targets
Which of the package’s code files cuno fmt and cuno lint work on: the code minus what exclude names, with file links set apart, since one can lead outside the project (docs/en/specs/dev-tools.md, “Target files”).
tidy
clang-tidy’s configuration from [lint] (docs/en/specs/dev-tools.md, “[lint]”).
write
The one answer to “may cuno write this file”: every command that writes in the project asks here, so a rule found missing in one writer (a link written through, a hand-written file overwritten) is added once.

Enums§

EditorFileWarning
Why an editor file was left as it was.

Functions§

write_editor_files
Writes the files editors read so they format and analyse as cuno does, at the project root: .clang-format from [fmt] and .clang-tidy from [lint]. Only a file cuno wrote, which starts with its marker, is overwritten, and only when its content changes; a file the user wrote, a link or a directory is left and warned about (docs/en/specs/dev-tools.md, “Configuration”).