1
1
Fork 0
mirror of https://github.com/NixOS/nix.git synced 2025-11-12 21:46:01 +01:00
nix/src/libexpr
Bernardo Meurer Costa 8b3af40006
fix(libexpr/lexer): fix flex warning about default rule
We were getting this flex lexer warning during build:
```
../src/libexpr/lexer.l:333: warning, -s option given but default rule can be matched
```

The lexer uses `%option nodefault` but the `PATH_START` state only had
rules for specific patterns (`PATH_SEG` and `HPATH_START`) without a
catch-all rule to handle unexpected input.

Added a catch-all rule with `unreachable()`. This code path should never
be reached in normal operation since `PATH_START` is only entered after
matching `PATH_SEG` or `HPATH_START`, and we immediately rewind to
re-parse those same patterns. The catch-all exists solely to satisfy
flex's `%option nodefault` requirement.
2025-10-29 23:55:37 +00:00
..
include/nix/expr Merge pull request #14379 from Radvendii/exprlist-alloc 2025-10-27 21:04:45 +00:00
pch libexpr: Speed up builds by using precompiled headers 2025-07-20 22:01:56 +03:00
primops Allow access to the result of fetchClosure 2025-10-24 11:11:03 +02:00
value Apply clang-format universally. 2025-07-18 12:47:27 -04:00
.version Meson build for libexpr and libflake 2024-07-02 09:23:24 -04:00
attr-path.cc libexpr: Make emptyBindings a global constant 2025-09-11 01:51:48 +03:00
attr-set.cc libexpr: move eval memory allocation to own struct 2025-09-26 00:40:43 +03:00
eval-cache.cc libexpr: Statically allocate commonly used symbols 2025-08-31 13:24:06 +02:00
eval-error.cc Apply clang-format universally. 2025-07-18 12:47:27 -04:00
eval-gc.cc libexpr: Fix build without Boehm 2025-09-12 04:02:07 +03:00
eval-profiler-settings.cc libutil: Include necessary headers in config-impl.hh 2025-08-11 20:44:27 +03:00
eval-profiler.cc libexpr: Use use-after-move in SampleStack::saveProfile() 2025-10-05 16:57:13 +03:00
eval-settings.cc Apply clang-format universally. 2025-07-18 12:47:27 -04:00
eval.cc Mark some fields in EvalState as const 2025-10-27 14:10:34 +01:00
fetchurl.nix Format .nix files 2025-01-24 17:04:02 +01:00
function-trace.cc Apply clang-format universally. 2025-07-18 12:47:27 -04:00
get-drvs.cc libexpr: Remove Bindings::find 2025-09-14 23:29:44 +03:00
imported-drv-to-derivation.nix Format .nix files 2025-01-24 17:04:02 +01:00
json-to-value.cc Apply clang-format universally. 2025-07-18 12:47:27 -04:00
lexer-helpers.cc libexpr: Switch parser.y to %skeleton lalr1.cc 2025-09-29 00:58:41 +03:00
lexer-helpers.hh libexpr: Switch parser.y to %skeleton lalr1.cc 2025-09-29 00:58:41 +03:00
lexer.l fix(libexpr/lexer): fix flex warning about default rule 2025-10-29 23:55:37 +00:00
meson.build meson: Only enable b_lto for nixexpr-parser when b_lto is enabled globally 2025-10-23 01:49:31 +03:00
meson.options meson: Apply formatting universally 2025-08-07 02:58:29 +03:00
nix-meson-build-support rename: build-utils-meson -> nix-meson-build-support 2024-12-09 16:54:42 +01:00
nixexpr.cc libexpr: parser.y: api.value.type variant 2025-10-22 02:25:11 +02:00
package.nix flake: Apply nixfmt 1.0.0 2025-08-18 20:29:45 +03:00
parser-scanner-decls.hh libexpr: Switch parser.y to %skeleton lalr1.cc 2025-09-29 00:58:41 +03:00
parser.y Merge pull request #14379 from Radvendii/exprlist-alloc 2025-10-27 21:04:45 +00:00
paths.cc Mount inputs on storeFS to restore fetchToStore() caching 2025-09-25 11:30:11 -04:00
primops.cc Merge pull request #14359 from obsidiansystems/structured-attrs-always-object 2025-10-27 17:51:33 +00:00
print-ambiguous.cc Apply clang-format universally. 2025-07-18 12:47:27 -04:00
print.cc treewide: Remove toView() because it leads to segfaults when compiled with newer nixpkgs 2025-10-05 02:30:21 +03:00
search-path.cc Apply clang-format universally. 2025-07-18 12:47:27 -04:00
value-to-json.cc libexpr: Statically allocate commonly used symbols 2025-08-31 13:24:06 +02:00
value-to-xml.cc libexpr: Statically allocate commonly used symbols 2025-08-31 13:24:06 +02:00
value.cc libexpr: Make constant Values global constants, move out of EvalState 2025-09-11 01:53:41 +03:00