Nix/src/libexpr
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
..
flake Allow open switch-enum in 5 places 2023-04-03 18:45:20 +02:00
primops Merge pull request #7609 from obsidiansystems/hide-experimental-settings 2023-03-27 09:19:29 -04:00
tests Ensure all headers have #pragma once and are in API docs 2023-03-31 23:19:44 -04:00
value Ensure all headers have #pragma once and are in API docs 2023-03-31 23:19:44 -04:00
attr-path.cc Revert "Revert "Merge pull request #6204 from layus/coerce-string"" 2023-01-19 13:23:04 +01:00
attr-path.hh Ensure all headers have #pragma once and are in API docs 2023-03-31 23:19:44 -04:00
attr-set.cc Don't pass Symbol by reference 2022-04-26 13:25:17 +02:00
attr-set.hh Ensure all headers have #pragma once and are in API docs 2023-03-31 23:19:44 -04:00
eval-cache.cc Revert "Revert "Merge pull request #6204 from layus/coerce-string"" 2023-01-19 13:23:04 +01:00
eval-cache.hh Ensure all headers have #pragma once and are in API docs 2023-03-31 23:19:44 -04:00
eval-inline.hh Ensure all headers have #pragma once and are in API docs 2023-03-31 23:19:44 -04:00
eval.cc Allow open switch-enum in 5 places 2023-04-03 18:45:20 +02:00
eval.hh Ensure all headers have #pragma once and are in API docs 2023-03-31 23:19:44 -04:00
fetchurl.nix fetchurl.nix: change other use of __impure 2022-09-16 01:54:24 -07:00
function-trace.cc Revert the enum struct change 2020-06-18 22:11:26 +00:00
function-trace.hh Ensure all headers have #pragma once and are in API docs 2023-03-31 23:19:44 -04:00
get-drvs.cc Revert "Revert "Merge pull request #6204 from layus/coerce-string"" 2023-01-19 13:23:04 +01:00
get-drvs.hh Ensure all headers have #pragma once and are in API docs 2023-03-31 23:19:44 -04:00
imported-drv-to-derivation.nix Move some corepkgs into the nix binary 2020-03-11 16:57:48 +01:00
json-to-value.cc return string_views from forceString* 2022-01-27 17:15:43 +01:00
json-to-value.hh Ensure all headers have #pragma once and are in API docs 2023-03-31 23:19:44 -04:00
lexer.l Handle EOFs in string literals correctly 2022-05-25 17:58:13 +02:00
local.mk Enable -Werror=switch-enum 2023-04-03 18:45:20 +02:00
nix-expr.pc.in Fix building with GCC 9 2023-02-10 18:38:57 +01:00
nixexpr.cc Restore display of source lines for stdin/string inputs 2022-12-13 16:00:44 +01:00
nixexpr.hh Ensure all headers have #pragma once and are in API docs 2023-03-31 23:19:44 -04:00
parser.y Move enabled experimental feature to libutil struct 2023-03-20 11:05:22 -04:00
primops.cc Allow open switch-enum in 5 places 2023-04-03 18:45:20 +02:00
primops.hh Ensure all headers have #pragma once and are in API docs 2023-03-31 23:19:44 -04:00
symbol-table.hh Ensure all headers have #pragma once and are in API docs 2023-03-31 23:19:44 -04:00
value-to-json.cc EvalState::copyPathToStore(): Return a StorePath 2022-12-20 14:58:39 +01:00
value-to-json.hh Ensure all headers have #pragma once and are in API docs 2023-03-31 23:19:44 -04:00
value-to-xml.cc Remove FormatOrString and remaining uses of format() 2023-03-02 15:57:54 +01:00
value-to-xml.hh Ensure all headers have #pragma once and are in API docs 2023-03-31 23:19:44 -04:00
value.hh Ensure all headers have #pragma once and are in API docs 2023-03-31 23:19:44 -04:00