1
0
mirror of https://github.com/vlang/v.git synced 2023-08-10 21:13:21 +03:00

Commit Graph

  • 2090e4a12f ast, cgen: optimize generic struct with inconsistent generic types (#16708) yuyi 2022-12-19 21:02:27 +08:00
  • bcdf1b95c1 docs: add a note about test files being compiled as separate V programs, independently from normal code Delyan Angelov 2022-12-19 13:15:39 +02:00
  • 353fdb4ca0 ci: workaround for v vet failing for v clean-code over the new v bench script (using \ in its path on windows). Delyan Angelov 2022-12-19 12:31:11 +02:00
  • 8873127687 v doc: properly highlight the new generics syntax [] in the CLI results of v doc arrays etc (#16703) Swastik Baranwal 2022-12-19 15:42:46 +05:30
  • cbd34cd6e7 bench: add bench_string_key_in_map_vs_string_value_in_array.v Delyan Angelov 2022-12-19 11:55:48 +02:00
  • aad95ac818 cgen: fix generic struct init with inconsistent generic types (fix #16677) (#16702) yuyi 2022-12-19 16:43:27 +08:00
  • 04936b00c5 cgen: fix struct selector with or block (#16695) Felipe Pena 2022-12-18 09:22:06 -03:00
  • de5ae63401 parser: improve precision of struct field type positions in errors Delyan Angelov 2022-12-18 13:34:39 +02:00
  • 5b4a16e864 checker: add err for unknown generic struct field (#16698) Swastik Baranwal 2022-12-18 15:16:37 +05:30
  • 20aaf4de09 README: replace deprecated align attribute, correct tcc info in C compiler section, fix some grammar and spacing issues (#16699) JalonSolov 2022-12-18 04:44:23 -05:00
  • ba07e48691 ast, checker: fix checking generic struct type mismatch (#16701) yuyi 2022-12-18 16:29:44 +08:00
  • 9f1239c56e vweb,net: fix vweb crash when the connection was closed prematurely (tested with Chrome on windows, refreshing as fast as possible) Delyan Angelov 2022-12-17 19:08:59 +02:00
  • e83a8416d5 ast, parser: fix generic struct init with inconsistent generic types (#16697) yuyi 2022-12-18 00:17:43 +08:00
  • 9921598c91 cgen: fix struct field initialisation with a fixed array (#16692) Felipe Pena 2022-12-17 13:15:17 -03:00
  • 1aec40a126 vweb: flush stdout after the Running app on message, fix potential invalid map value access in serve_if_static Delyan Angelov 2022-12-17 18:04:50 +02:00
  • 65a020e385 cgen: fix comptime checking optional type with IS operator (#16688) Felipe Pena 2022-12-16 10:53:04 -03:00
  • f0a252d0e6 builtin: apply .nogrow flags to gcboehm array (#16689) l-m 2022-12-16 16:57:50 +11:00
  • 14cc43b0f6 v ast: add forgotten fields since 2022/06/01 Delyan Angelov 2022-12-15 21:18:54 +02:00
  • 0a11955284 parser: support an unambiguous sizeof[T]() and isreftype[T]() (part 1) (#16684) Delyan Angelov 2022-12-15 19:21:52 +02:00
  • e5e73ebbfa regex: fix typo in regex.v (#16683) Ikko Ashimine 2022-12-16 01:54:07 +09:00
  • bd1d96de0e cgen: add support for alias map keys (#16682) Swastik Baranwal 2022-12-15 22:23:23 +05:30
  • 3643785981 pref: deprecate -error-limit in favour of the documented -message-limit option. Delyan Angelov 2022-12-15 10:37:57 +02:00
  • fd472d2d41 toml: minor cleanup in toml tests (#16679) yuyi 2022-12-15 16:16:42 +08:00
  • db2111235e tests: add a teamcity output format for V's test runner (#16681) Makhnev Petr 2022-12-15 11:29:09 +04:00
  • 3fa23b789c ci: add new dependencies for VSL (hdf5 libs and tools) Delyan Angelov 2022-12-15 08:37:10 +02:00
  • 5b008fca41 make.bat: fix path backslashes to forward slashes for more compatibility, change quoting to be more consistent (#16678) JalonSolov 2022-12-14 15:48:34 -05:00
  • c3ee26f15f checker,cgen: fix dump when using comptime variable val.${field.name} (#16671) Felipe Pena 2022-12-14 15:45:28 -03:00
  • f762d46c84 pg: add compatibility.h, using a PG_VERSION_NUM check in the preprocessor, to just hardcode the missing CONNECTION_ numbers Delyan Angelov 2022-12-14 18:26:39 +02:00
  • 34f5255bb5 ci: fix a failing test for v test .github/workflows Delyan Angelov 2022-12-14 17:02:01 +02:00
  • 3b683f11e0 pg: comment out C.CONNECTION_GSS_STARTUP, which is not available on Debian 10 (PG 11) Delyan Angelov 2022-12-14 16:39:23 +02:00
  • 8e3a90ae79 cgen: minor cleanup in struct_init() (#16676) yuyi 2022-12-14 21:25:09 +08:00
  • 8ab4c7742c ast, checker: fix generic struct init with inconsistent generic types (#16675) yuyi 2022-12-14 20:57:12 +08:00
  • 7f23ae595b ci: add a separate download_vc target to Makefile for FreeBSD Delyan Angelov 2022-12-14 14:05:10 +02:00
  • 93a1cd5aab freebsd: update Makefile to use --filter=blob:none for vc/ Delyan Angelov 2022-12-14 13:25:40 +02:00
  • 173b1895d6 pg: cleanup implementation, make -cstrict pass with both gcc-11 and clang-12 (by tightening the C wrapper declarations) Delyan Angelov 2022-12-14 13:10:23 +02:00
  • 70bb989537 doc: update the README for json2 (#16657) Hitalo Souza 2022-12-14 05:21:29 -03:00
  • acbd93b54c builtin: add .nogrow and .nofree flags to array (#16661) l-m 2022-12-14 18:44:14 +11:00
  • b07e447764 encoding.html: add escape() function (#16666) Subhomoy Haldar 2022-12-13 20:10:57 +00:00
  • 69f7c45bec builtin: fix array init with array default (#16664) yuyi 2022-12-14 00:05:33 +08:00
  • 738fe77300 cgen: fix short circuiting behaviour of logical expressions, when several PrefixExpr's are used in if conditions (#16660) Felipe Pena 2022-12-13 08:09:03 -03:00
  • 992621bd91 bench: add a small performance comparison script bench_json_vs_json2.v weekly.2022.50 Delyan Angelov 2022-12-12 10:26:04 +02:00
  • b682e9ec0b json2: decode time.Time, supporting unix timestamps (like json), as well as rfc3339 datetimes (#16653) Hitalo Souza 2022-12-12 05:06:29 -03:00
  • 8225622da5 checker: check smartcasting requires either an immutable value, or an explicit mut keyword before the value (#16654) yuyi 2022-12-12 15:22:56 +08:00
  • d87e400e77 transformer: clean up expr_stmt_match_expr() (#16655) yuyi 2022-12-12 14:41:02 +08:00
  • 1e7208d28b parser: fix initialization for array of Option type - []?Cell{} (#16652) Felipe Pena 2022-12-12 03:40:05 -03:00
  • d7c244e5ec x.json2: support time.Time values in encode (#16643) Hitalo Souza 2022-12-11 11:54:28 -03:00
  • ad24c22250 time: add more UTC/local time conversion functions, make Time.format_rfc3339 more stable Delyan Angelov 2022-12-11 13:32:40 +02:00
  • 73e886eafe checker: fix generic fn returning result (#16646) yuyi 2022-12-11 18:34:58 +08:00
  • 94098eef79 time: use UTC time in Time.format_rfc3339, make test more robust Delyan Angelov 2022-12-11 10:36:29 +02:00
  • 2ecb892985 time: add Time.format_rfc3339() method Delyan Angelov 2022-12-11 10:23:05 +02:00
  • 3ea9e3aba9 github: make Environment field in feature request match bug report (#16645) JalonSolov 2022-12-11 02:06:37 -05:00
  • e8c0b098b0 x.json2: add encode_pretty/1 (#16634) Hitalo Souza 2022-12-10 15:44:23 -03:00
  • 4b2699fddd cgen: fix copying of a fixed array parameter to a function (fix #16640) Delyan Angelov 2022-12-10 20:06:51 +02:00
  • 30b39bebde x.json2: refactor json tests (#16638) Hitalo Souza 2022-12-10 13:44:20 -03:00
  • 44a539f186 github: change bug template Envionment field to textarea (#16641) JalonSolov 2022-12-10 11:39:22 -05:00
  • 799af2adad native: support simple multi return (#16628) lemon 2022-12-10 23:26:43 +09:00
  • 42a9eaac0e regex: make match_string() receiver immutable Alexander Medvednikov 2022-12-10 13:03:31 +03:00
  • 7c4f45a375 docs: change <> to [] in docs.md part2 (#16633) Keito Tobichi 2022-12-10 18:36:59 +09:00
  • ad5290677c docs: change <> to [] in docs.md (#16632) Keito Tobichi 2022-12-10 17:47:03 +09:00
  • 7c02274754 v.pkgconfig: support PKG_CONFIG_PATH_DEFAULTS for overriding the default search path list too (enable easier -m32 with a custom tcc cross compiler) Delyan Angelov 2022-12-10 00:50:24 +02:00
  • 1ba1f99b9c orm: declare missing functions to handle literal types (#16627) Felipe Pena 2022-12-09 15:34:34 -03:00
  • b6c2aab092 json2: support encoding of optional struct fields (#16521) Hitalo Souza 2022-12-09 13:08:24 -03:00
  • ba8e61ebf3 cgen: fix return typeof[T]() in generic functions (#16626) Felipe Pena 2022-12-09 12:24:47 -03:00
  • 6c0f22416f cgen: fix if cond with result or optional in infix expr (#16625) yuyi 2022-12-09 18:01:14 +08:00
  • 68fb4e9fe5 cgen: fixevaluation order for match expressions inside boolean ones (fix #16554) (#16616) yuyi 2022-12-09 17:56:38 +08:00
  • eb88f7e255 builtin: fix bug with string.split_into_lines, when lines have extra CR's at their end (#16620) Carter 2022-12-09 01:15:50 -06:00
  • 7091010a53 arrays: add map_of_counts/1, map_of_indexes/1 as well as index_of_first/2, index_of_last/2 utilities (#16618) Delyan Angelov 2022-12-09 00:37:07 +02:00
  • f365771499 cgen: fix nested struct generation for globals for gcc (#16614) Felipe Pena 2022-12-08 16:38:01 -03:00
  • d62fc777c9 ci: add a 'Build AdventOfCode' step in the v-apps-compile job weekly.2022.49 Delyan Angelov 2022-12-08 11:15:07 +02:00
  • 32c80c53b3 cgen: fix generic functions returning none or error values with generic result types (#16613) 谢克 2022-12-08 17:08:39 +08:00
  • 2261606b56 checker: disallow Bar{...foo} when Bar needs more fields, than what foo has (#16609) Felipe Pena 2022-12-07 11:56:07 -03:00
  • 458e68e196 orm,sqlite,mysql,pg: cleanup import v.ast, using typeof[Type]() Delyan Angelov 2022-12-07 12:26:41 +02:00
  • 4eb81d2f05 checker: improve error messages of missing generic type names (#16610) yuyi 2022-12-07 17:29:18 +08:00
  • 48a7de643e all: support typeof[ T ]().idx and typeof[ T ]().name, where T can be any type, including ![]&string (#16513) Delyan Angelov 2022-12-07 11:26:27 +02:00
  • bb705c01d2 parser: add proper error msg for := used in const decl (#16607) Swastik Baranwal 2022-12-07 01:14:33 +05:30
  • 921416d821 parser: fix parsing generic types using '[]' in anon fn decl (#16605) yuyi 2022-12-07 00:15:59 +08:00
  • cf015e5073 checker: add clearer errors for break/continue used within a $for loop (#16600) Felipe Pena 2022-12-06 12:27:59 -03:00
  • ada8643ac5 checker: disallow using builtin type names for const names (#16599) Swastik Baranwal 2022-12-06 19:14:25 +05:30
  • 5fc7b6d3d6 tools: add tests for vcomplete (#16587) Larpon 2022-12-06 12:02:32 +01:00
  • e35f5f290e cgen: fix string of map with generic struct value (#16595) yuyi 2022-12-06 18:38:05 +08:00
  • a96e2e7093 parser: fix parsing embedded generic interface using '[]' (#16603) yuyi 2022-12-06 18:37:36 +08:00
  • 46bb62955b cgen: fix generic array init with fields (#16601) yuyi 2022-12-06 15:33:26 +08:00
  • edfaa76b3e checker: fix panic caused by compile-time code within or block (#16602) Felipe Pena 2022-12-06 04:26:04 -03:00
  • 94dc3c1c36 ci: fix the platform image for gg-regressions to ubuntu-20.04 (github is migrating ubuntu-latest to 22.04) Delyan Angelov 2022-12-06 09:13:02 +02:00
  • 70fed41660 ci: override VTMP to /tmp for the jobs gg-regressions and doom-regressions Delyan Angelov 2022-12-05 17:06:19 +02:00
  • 5288c613ef json2: decode refactor/fix (#16588) Hitalo Souza 2022-12-05 11:58:44 -03:00
  • 50110d4c19 all: replace generic '<>' with '[]' in .vv files (#16593) yuyi 2022-12-05 22:32:15 +08:00
  • 7e9e2ff459 cgen: fix if expr with multiple array call (fix #16583) (#16589) yuyi 2022-12-05 18:07:39 +08:00
  • 59c979c8d2 checker: check generic interface type specifing type names (fix #16576) (#16591) yuyi 2022-12-05 16:05:32 +08:00
  • 349ce08a11 tools: fix vcompletion for single-file directories (#16586) Larpon 2022-12-05 08:15:43 +01:00
  • ce06c2818d checker: add disallow none operations and range (#16584) Swastik Baranwal 2022-12-05 12:20:36 +05:30
  • ffc73bf643 builder: fix v builder error (#16590) yuyi 2022-12-05 14:48:45 +08:00
  • d8d75ee67e v.builder: fix v -os wasm32_emscripten examples/2048 on windows Delyan Angelov 2022-12-04 17:49:33 +02:00
  • f5d0ba318e testing: support new events in the output modules of v test: .cmd_begin sent right before a _test.v execution, and .cmd_end sent right after a _test.v execution Delyan Angelov 2022-12-03 19:41:22 +02:00
  • 5acd855525 term: add format_esc/1 (#16574) RGBCube 2022-12-03 15:01:39 +03:00
  • bf0c8a0d96 sync: fix compilation of V on m1 with tcc Delyan Angelov 2022-12-02 23:17:46 +02:00
  • d09c8c914b testing: refactor the v test implementation to make supporting different output modes easier Delyan Angelov 2022-12-02 13:45:33 +02:00
  • e419faf746 all: fix dependant->dependent typos, cleanup comments Delyan Angelov 2022-12-02 12:51:00 +02:00
  • 675c362f57 v.util: cleanup util.path_styled_for_error_messages/1 Delyan Angelov 2022-12-02 11:41:00 +02:00
  • c77344e0a2 checker: add a return *x suggestion, to the error fn ... expects you to return a non reference type ..., but you are returning ... instead Delyan Angelov 2022-12-02 10:21:19 +02:00