lix/tests/unit/libexpr
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
..
flake getNameFromURL(): Support uppercase characters in attribute names 2023-12-22 16:35:58 +01:00
value Print error messages but not traces 2024-02-03 20:50:16 -08:00
derived-path.cc Move tests to separate directories, and document 2023-12-01 10:48:58 -05:00
error_traces.cc Cleanup fmt.hh 2024-02-08 11:51:03 -08:00
eval.cc allowed-uris: Match whole schemes also when scheme is not followed by slashes 2023-12-11 12:18:04 +01:00
json.cc Move tests to separate directories, and document 2023-12-01 10:48:58 -05:00
local.mk Move url-name utility to libexpr/flake 2023-12-22 09:33:02 +01:00
primops.cc Organize content addressing, use SourceAccessor with Store::addToStore 2023-12-18 10:41:54 -05:00
search-path.cc Move tests to separate directories, and document 2023-12-01 10:48:58 -05:00
trivial.cc Move tests to separate directories, and document 2023-12-01 10:48:58 -05:00