lix/tests/unit/libutil
Rebecca Turner 149bd63afb
Cleanup fmt.hh
When I started contributing to Nix, I found the mix of definitions and
names in `fmt.hh` to be rather confusing, especially the small
difference between `hintfmt` and `hintformat`. I've renamed many classes
and added documentation to most definitions.

- `formatHelper` is no longer exported.
- `fmt`'s documentation is now with `fmt` rather than (misleadingly)
  above `formatHelper`.
- `yellowtxt` is renamed to `Magenta`.

  `yellowtxt` wraps its value with `ANSI_WARNING`, but `ANSI_WARNING`
  has been equal to `ANSI_MAGENTA` for a long time. Now the name is
  updated.
- `normaltxt` is renamed to `Uncolored`.
- `hintfmt` has been merged into `hintformat` as extra constructor
  functions.
- `hintformat` has been renamed to `hintfmt`.
- The single-argument `hintformat(std::string)` constructor has been
  renamed to a static member `hintformat::interpolate` to avoid pitfalls
  with using user-generated strings as format strings.
2024-02-08 11:51:03 -08:00
..
data/git Move tests to separate directories, and document 2023-12-01 10:48:58 -05:00
args.cc Move tests to separate directories, and document 2023-12-01 10:48:58 -05:00
canon-path.cc CanonPath, SourcePath: Change operator + to / 2024-02-05 15:17:39 +01:00
chunked-vector.cc Move tests to separate directories, and document 2023-12-01 10:48:58 -05:00
closure.cc Move tests to separate directories, and document 2023-12-01 10:48:58 -05:00
compression.cc Move tests to separate directories, and document 2023-12-01 10:48:58 -05:00
config.cc Move tests to separate directories, and document 2023-12-01 10:48:58 -05:00
git.cc Improve the FileSystemObjectSink interface 2024-01-22 18:01:21 -05:00
hash.cc Renamed HashFormat::Base32 to HashFormat::Nix32 2023-12-06 23:43:42 +01:00
hilite.cc Move tests to separate directories, and document 2023-12-01 10:48:58 -05:00
json-utils.cc Move tests to separate directories, and document 2023-12-01 10:48:58 -05:00
local.mk Move tests to separate directories, and document 2023-12-01 10:48:58 -05:00
logging.cc Cleanup fmt.hh 2024-02-08 11:51:03 -08:00
lru-cache.cc Move tests to separate directories, and document 2023-12-01 10:48:58 -05:00
pool.cc Move tests to separate directories, and document 2023-12-01 10:48:58 -05:00
references.cc Move tests to separate directories, and document 2023-12-01 10:48:58 -05:00
suggestions.cc Move tests to separate directories, and document 2023-12-01 10:48:58 -05:00
tests.cc Move tests to separate directories, and document 2023-12-01 10:48:58 -05:00
url.cc isValidSchemeName: Use regex 2023-12-12 17:46:34 +01:00
xml-writer.cc Move tests to separate directories, and document 2023-12-01 10:48:58 -05:00