lix/src/libutil
Robert Hensing fba7be80eb Enable -Werror=switch-enum
switch statements must now match all enum values or disable the
warning.

Explicit is good. This has helped us find two bugs, after solving
another one by debugging.

From now on, adding to an enum will raise errors where they are
not explicitly handled, which is good for productivity, and helps
us decide the correct behavior in all usages.

Notably still excluded from this though are the cases where the
warning is disabled by local pragmas.

fromTOML.cc did not build despite a top-level pragma, so I've had
to resort to a makefile solution for that.
2023-04-03 18:45:20 +02:00
..
tests Ensure all headers have #pragma once and are in API docs 2023-03-31 23:19:44 -04:00
abstract-setting-to-json.hh Ensure all headers have #pragma once and are in API docs 2023-03-31 23:19:44 -04:00
ansicolor.hh Ensure all headers have #pragma once and are in API docs 2023-03-31 23:19:44 -04:00
archive.cc Remove FormatOrString and remaining uses of format() 2023-03-02 15:57:54 +01:00
archive.hh Ensure all headers have #pragma once and are in API docs 2023-03-31 23:19:44 -04:00
args.cc Fix handling of experimental features mid-parse 2023-03-20 11:35:34 -04:00
args.hh Ensure all headers have #pragma once and are in API docs 2023-03-31 23:19:44 -04:00
callback.hh Ensure all headers have #pragma once and are in API docs 2023-03-31 23:19:44 -04:00
canon-path.cc Add CanonPath::makeRelative() 2023-03-31 17:15:03 +02:00
canon-path.hh Ensure all headers have #pragma once and are in API docs 2023-03-31 23:19:44 -04:00
cgroup.cc Clean up cgroup handling in getMaxCPU() 2022-12-02 12:59:13 +01:00
cgroup.hh Ensure all headers have #pragma once and are in API docs 2023-03-31 23:19:44 -04:00
chunked-vector.hh Ensure all headers have #pragma once and are in API docs 2023-03-31 23:19:44 -04:00
closure.hh Ensure all headers have #pragma once and are in API docs 2023-03-31 23:19:44 -04:00
comparator.hh Ensure all headers have #pragma once and are in API docs 2023-03-31 23:19:44 -04:00
compression.cc Get rid of std::shared_ptr<std::string> and ref<std::string> 2022-01-18 11:12:30 +01:00
compression.hh Ensure all headers have #pragma once and are in API docs 2023-03-31 23:19:44 -04:00
compute-levels.cc Add x86_64 compute levels as additional system types 2021-02-22 09:11:15 +01:00
compute-levels.hh Ensure all headers have #pragma once and are in API docs 2023-03-31 23:19:44 -04:00
config.cc Fix handling of experimental features mid-parse 2023-03-20 11:35:34 -04:00
config.hh Ensure all headers have #pragma once and are in API docs 2023-03-31 23:19:44 -04:00
error.cc error.cc: Only suggest show-trace when truncated trace items would be printed 2023-03-23 17:29:06 +01:00
error.hh Ensure all headers have #pragma once and are in API docs 2023-03-31 23:19:44 -04:00
experimental-features.cc unsafeDiscardReferences 2023-01-03 17:19:16 +01:00
experimental-features.hh Ensure all headers have #pragma once and are in API docs 2023-03-31 23:19:44 -04:00
filesystem.cc Remove FormatOrString and remaining uses of format() 2023-03-02 15:57:54 +01:00
finally.hh Ensure all headers have #pragma once and are in API docs 2023-03-31 23:19:44 -04:00
fmt.hh Ensure all headers have #pragma once and are in API docs 2023-03-31 23:19:44 -04:00
git.cc Fix the parsing of the sourcehut refs file 2022-05-04 14:38:59 +02:00
git.hh Ensure all headers have #pragma once and are in API docs 2023-03-31 23:19:44 -04:00
hash.cc avoid a string copy in printHash16 2023-03-29 10:54:27 +01:00
hash.hh Ensure all headers have #pragma once and are in API docs 2023-03-31 23:19:44 -04:00
hilite.cc Fix incorrect comment in hiliteMatches 2022-06-05 20:30:18 +02:00
hilite.hh Ensure all headers have #pragma once and are in API docs 2023-03-31 23:19:44 -04:00
json-impls.hh Ensure all headers have #pragma once and are in API docs 2023-03-31 23:19:44 -04:00
json-utils.hh Ensure all headers have #pragma once and are in API docs 2023-03-31 23:19:44 -04:00
local.mk Remove the explicit c++fs linkage on darwin 2022-08-08 14:34:22 +02:00
logging.cc Enable -Werror=switch-enum 2023-04-03 18:45:20 +02:00
logging.hh Ensure all headers have #pragma once and are in API docs 2023-03-31 23:19:44 -04:00
lru-cache.hh Ensure all headers have #pragma once and are in API docs 2023-03-31 23:19:44 -04:00
monitor-fd.hh Ensure all headers have #pragma once and are in API docs 2023-03-31 23:19:44 -04:00
namespaces.cc Simplify the PID namespace check: just try to mount /proc 2023-02-10 14:38:14 +01:00
namespaces.hh Ensure all headers have #pragma once and are in API docs 2023-03-31 23:19:44 -04:00
pool.hh Ensure all headers have #pragma once and are in API docs 2023-03-31 23:19:44 -04:00
ref.hh Ensure all headers have #pragma once and are in API docs 2023-03-31 23:19:44 -04:00
regex-combinators.hh Ensure all headers have #pragma once and are in API docs 2023-03-31 23:19:44 -04:00
serialise.cc Revert "Disable GC during coroutine execution + test" 2023-03-08 20:47:52 +01:00
serialise.hh Ensure all headers have #pragma once and are in API docs 2023-03-31 23:19:44 -04:00
split.hh Ensure all headers have #pragma once and are in API docs 2023-03-31 23:19:44 -04:00
suggestions.cc Implement operator<< for Suggestions 2022-03-07 10:09:10 +01:00
suggestions.hh Ensure all headers have #pragma once and are in API docs 2023-03-31 23:19:44 -04:00
sync.hh Ensure all headers have #pragma once and are in API docs 2023-03-31 23:19:44 -04:00
tarfile.cc tarfile: set directory mode to at least 0500, don't extract fflags 2022-11-01 16:01:38 +01:00
tarfile.hh Ensure all headers have #pragma once and are in API docs 2023-03-31 23:19:44 -04:00
thread-pool.cc Remove CPU locking 2021-12-22 15:56:25 +01:00
thread-pool.hh Ensure all headers have #pragma once and are in API docs 2023-03-31 23:19:44 -04:00
topo-sort.hh Ensure all headers have #pragma once and are in API docs 2023-03-31 23:19:44 -04:00
types.hh Ensure all headers have #pragma once and are in API docs 2023-03-31 23:19:44 -04:00
url-parts.hh Ensure all headers have #pragma once and are in API docs 2023-03-31 23:19:44 -04:00
url.cc url: make percentEncode stricter, expose and unit test it 2023-02-27 15:30:00 +01:00
url.hh Ensure all headers have #pragma once and are in API docs 2023-03-31 23:19:44 -04:00
util.cc Cleanup 2023-03-20 18:06:08 +01:00
util.hh Ensure all headers have #pragma once and are in API docs 2023-03-31 23:19:44 -04:00
xml-writer.cc xml-writer: Remove std aliases 2022-02-25 16:13:02 +01:00
xml-writer.hh Ensure all headers have #pragma once and are in API docs 2023-03-31 23:19:44 -04:00