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

Commit Graph

  • d40a502981 checker: minor cleanup in fn_call() (#13873) yuyi 2022-03-31 02:05:17 +08:00
  • 61f078664c ci: entirely delete the Code CI / arm64-ubuntu-tcc Cirrus job, since it does not honor trigger_type: manual, but simply timeouts after severah hours, showing fake positives in the github CI Delyan Angelov 2022-03-30 16:00:01 +03:00
  • 7ef7188f4b math.big: add bit_len, optimize gcd, add documentation (#13872) Subhomoy Haldar 2022-03-30 18:22:09 +05:30
  • 8121a8ada0 ci,cgen: comment out including stdbool.h for now Delyan Angelov 2022-03-30 13:49:55 +03:00
  • 566735b298 cgen: add nil to c_reserved (it is a macro defined in MacTypes.h on macos) Delyan Angelov 2022-03-30 13:32:56 +03:00
  • 093994655c v.builder: fix iOS compilation from non-macOS, allow -cc to override the default cross compiler (#13866) Cameron Katri 2022-03-30 03:26:13 -04:00
  • 3e69d3813b v.builder: fix linker flags for systems with Procursus (#13865) Cameron Katri 2022-03-30 03:15:52 -04:00
  • cc637e5ee8 checker: make the misssing shared/mut modifer in fn and method calls error clearer Delyan Angelov 2022-03-29 23:51:02 +03:00
  • 55d9464890 checker: fix error for marking as referenced (#13859) yuyi 2022-03-30 06:33:10 +08:00
  • 42a67831bf parser: fix printing slice of multiline raw string (#13856) yuyi 2022-03-29 23:06:11 +08:00
  • c71770d9c5 checker: fix error for array of anon fn call (#13858) yuyi 2022-03-29 23:04:30 +08:00
  • 04cc037955 ci: fix -cstrict compilation of term.ui tests Delyan Angelov 2022-03-29 18:03:05 +03:00
  • 7ee93c8a20 docs: show the full information for deprecated functions Delyan Angelov 2022-03-29 15:17:55 +03:00
  • fd34ebd84e checker: check the count of generics in fn arguments (#13855) yuyi 2022-03-29 15:04:19 +08:00
  • 4f551d76c0 term.ui: fix conflicting C struct declarations when compiling programs, importing term.ui before term, on windows Delyan Angelov 2022-03-29 09:26:14 +03:00
  • 509367b293 cgen: minor cleanup in expr_is_multi_return_call() (#13846) weekly.2022.13 yuyi 2022-03-29 01:38:23 +08:00
  • 476f19c090 vdoc: tweak keyword, attribute and light theme CSS (#13853) Nick Treleaven 2022-03-28 18:38:00 +01:00
  • dd1a8cbadc parser: check error for struct field type using 'mut' (#13847) yuyi 2022-03-28 23:13:38 +08:00
  • 62553dcc2e cgen: fix crash for casting bool to int (fix #13825) (#13844) yuyi 2022-03-28 17:20:47 +08:00
  • c7a92425f0 doc: tweak built-in functions section & move dump section here (#13841) Nick Treleaven 2022-03-27 16:05:44 +01:00
  • afdf8f50e7 doc: move enum methods to enum section from sum types (#13843) Nick Treleaven 2022-03-27 15:46:20 +01:00
  • 3a4bb09de2 doc: improve Arrays section (#13842) Nick Treleaven 2022-03-27 15:45:00 +01:00
  • f75ce9dd82 rand: move functions from rand.util to the main module (#13840) Subhomoy Haldar 2022-03-27 20:08:59 +05:30
  • 875ad1f6ea ast: minor cleanup in ast.v (#13839) yuyi 2022-03-27 21:21:40 +08:00
  • d748529337 doc: add links to notable array related subheadings (#13838) Nick Treleaven 2022-03-27 12:29:20 +01:00
  • 02f72c8230 builtin: improve docs for array methods that take an it expression, like .map, .filter etc (#13836) Nick Treleaven 2022-03-27 12:28:15 +01:00
  • dc9fd2bd7e doc: tweak array methods section (#13837) Nick Treleaven 2022-03-27 12:26:23 +01:00
  • a07d066e8f tools: cleanup all temporary files on successfull v check-md . Delyan Angelov 2022-03-27 10:24:10 +03:00
  • 0e496a8de2 tests: add an autofree regression test before return value ownership changes Delyan Angelov 2022-03-27 09:50:37 +03:00
  • bea0d500d0 parser: ignore upper letter case restriction for fn C.xyz declarations Delyan Angelov 2022-03-26 21:20:28 +02:00
  • fcb57312b9 parser: error if parameter name starts with a capital (#13827) Nick Treleaven 2022-03-26 17:56:34 +00:00
  • 8c396356bb context: make the examples in the vlib/context/README.md immediately runnable Delyan Angelov 2022-03-26 13:25:45 +02:00
  • 7f28d91190 ci: fix again -usecache regression on macos Delyan Angelov 2022-03-26 09:47:44 +02:00
  • 0248349e7c cgen: global/const fixes Alexander Medvednikov 2022-03-25 23:32:50 +03:00
  • ea4410cdb5 builtin: document the rune.length_in_bytes method (#13826) Nick Treleaven 2022-03-25 18:09:39 +00:00
  • 347db755c8 tests: sort the test files before further processing in valgrind_test.v Delyan Angelov 2022-03-25 09:41:29 +02:00
  • ddc2c49365 cgen: autofree out of scope variables in reverse order of their creation Delyan Angelov 2022-03-25 08:42:54 +02:00
  • d6c40865f9 strings: cleanup unsafe casts in some of strings.Builder ops (#13819) Delyan Angelov 2022-03-25 00:07:15 +02:00
  • 5b492e26dd builtin: support a.flags.set(.noslices | .noshrink), use it in the particles example (#13818) Delyan Angelov 2022-03-24 23:37:13 +02:00
  • a4ab3c1f14 checker: disallow mut_ptr = &immutable_var (#13814) Nick Treleaven 2022-03-24 18:43:25 +00:00
  • 9bbb52e9cc checker: add a check for dump(c), where typeof(c) == "char" Delyan Angelov 2022-03-23 21:44:25 +02:00
  • 78d9975798 ast, cgen: restore Type.str() and fix error for it (#13815) yuyi 2022-03-24 17:45:06 +08:00
  • 1566f7f766 checker: minor cleanup in check_types.v (#13816) yuyi 2022-03-24 14:59:05 +08:00
  • 5b668dba2b sync: document sync.thread_id() Delyan Angelov 2022-03-23 19:48:13 +02:00
  • ce576d01c4 sync: add sync.thread_id() u64 { (#13810) Delyan Angelov 2022-03-23 18:19:14 +02:00
  • 2e963e36ac rand: add pub fn shuffle<T>(mut a []T) { function + tests (#13811) Nick Treleaven 2022-03-23 13:31:26 +00:00
  • 35cd8112a5 ast, checker, cgen: fix error for printing alias that has str method (#13809) yuyi 2022-03-23 17:52:48 +08:00
  • 8b072aa962 checker: check if generic values have the same types (#13718) Vincenzo Palazzo 2022-03-23 08:13:10 +01:00
  • dff39bac78 cgen: fix error for defining global anonymous functions (#13808) yuyi 2022-03-23 14:09:15 +08:00
  • e3dca82f9c strconv: minor cleanup in f64_to_str_lnd1() (#13804) yuyi 2022-03-23 02:15:59 +08:00
  • 0337882240 checker: check redefine global 'main' function (#13803) yuyi 2022-03-22 23:39:12 +08:00
  • 894080b844 ci: update sdl ci to compile shader example (#13805) Larpon 2022-03-22 16:36:23 +01:00
  • 82120d02a8 tools: fix typo in vbug.v (#13802) Ikko Ashimine 2022-03-22 22:47:03 +09:00
  • a9837ba95d cgen: minor cleanup in go_expr() (#13801) yuyi 2022-03-22 18:07:46 +08:00
  • 56f5ed4789 strconv: fix error for string interpolation of float format (#13800) yuyi 2022-03-22 18:00:18 +08:00
  • afbccf79f7 builtin: don't memdup element for array.pop (depends on how cgen works) (#13789) Nick Treleaven 2022-03-21 21:34:35 +00:00
  • f66d2f5d43 cgen: simplify in index_of_array() and add test (#13792) yuyi 2022-03-22 04:03:45 +08:00
  • 381cf4b61d ci: bump retries to 3, for flaky vlib/v/tests/go_array_wait_test.v Delyan Angelov 2022-03-21 21:46:49 +02:00
  • c0437afbcd cgen: fix error for casting int to interface (#13790) yuyi 2022-03-22 03:18:11 +08:00
  • 9ad64b0bd8 vweb: support -d trace_request and -d trace_response Delyan Angelov 2022-03-21 19:48:47 +02:00
  • 178afd006b examples: avoid flash of unstyled content in the vweb_assets example Delyan Angelov 2022-03-21 19:13:53 +02:00
  • 3bae489e35 examples: make the vweb_assets.v example more robust (always change work folder to the folder of the executable). Document the vweb.Context.handle_static behaviour. Delyan Angelov 2022-03-21 19:05:18 +02:00
  • f2e0ab5912 docs: add formatting example for "[${10.0000:.2f}]" Delyan Angelov 2022-03-21 14:42:18 +02:00
  • 5815ab8d00 cgen: minor cleanup in index.v (#13788) weekly.2022.12 yuyi 2022-03-21 19:10:10 +08:00
  • 81bb1ea71f tests: cleanup go_anon_fn_variable_call_test.v (#13786) yuyi 2022-03-21 19:04:43 +08:00
  • f5036629ca cgen: add true and false to C reserved words (#13781) El Koulali András 2022-03-21 10:00:30 +01:00
  • d9cca53bd0 checker: check error for index of optional (#13785) yuyi 2022-03-21 16:17:57 +08:00
  • 21e9b1deb0 ci: fix -usecache failure on macos Delyan Angelov 2022-03-21 08:52:25 +02:00
  • 80c94ea73e cgen: fix c2v consts in .o files Alexander Medvednikov 2022-03-21 04:56:15 +03:00
  • c4b424717c cgen: fix error for map get anon fn value (#13782) yuyi 2022-03-21 06:20:55 +08:00
  • aaf87e04a2 tools: make the mini greeting text in the REPL more informative Delyan Angelov 2022-03-20 23:22:46 +02:00
  • 7216b5df11 tools: force showing V errors in color in interactive REPLs Delyan Angelov 2022-03-20 23:04:20 +02:00
  • caa0e25939 cgen: fix struct type dependency sorting, when struct field types, are aliases to struct types from other modules (#13779) Delyan Angelov 2022-03-20 20:23:48 +02:00
  • 71edaa071a builtin: use malloc, instead of calloc in array.ensure_cap/1 Delyan Angelov 2022-03-20 15:02:15 +02:00
  • 0a78847782 checker: check error for unknown type in anon fn field of struct (#13778) yuyi 2022-03-20 19:28:35 +08:00
  • 8c3687aa10 checker: check error for struct field init with nobody anon fn (#13777) yuyi 2022-03-20 19:04:31 +08:00
  • 8ab0bcb6aa Revert "builtin: improve performance for common array ops, based on VTune analysis" Delyan Angelov 2022-03-20 12:57:27 +02:00
  • 57db261538 builtin: improve performance for common array ops, based on VTune analysis Delyan Angelov 2022-03-20 12:41:54 +02:00
  • 3e40cd5baa ast, checker, cgen: fix error for go anon fn variable call (#13776) yuyi 2022-03-20 13:45:23 +08:00
  • c05634ebd1 ci: fix sanitize job failures after 02b889d Delyan Angelov 2022-03-19 21:43:42 +02:00
  • 02b889dac3 cgen: generate smaller switch statements for sumtypes/enums with else{} Delyan Angelov 2022-03-19 20:55:32 +02:00
  • eb7c9cec3d parser: short circuit if conditions in Parser.name_expr Delyan Angelov 2022-03-19 20:31:03 +02:00
  • 4dd68d3965 ast: small cleanup of using simple string interpolation in a string builder .write_string/1 parameter Delyan Angelov 2022-03-19 17:25:53 +02:00
  • 0cc63107ff cgen: fix duplicate auto generation of free methods, add test Delyan Angelov 2022-03-19 01:01:08 +02:00
  • ee6b23c2a7 toml: use toml.parse_text and toml.parse_file in the tests Delyan Angelov 2022-03-18 23:32:06 +02:00
  • 5237d1d446 cgen: fix error for empty interface (#13764) yuyi 2022-03-19 04:41:06 +08:00
  • 156efec278 toml: deprecate input.auto_config() and toml.parse() (#13770) Larpon 2022-03-18 21:33:51 +01:00
  • 3e41be1ff4 checker: minor cleanup in check_or_last_stmt() (#13763) yuyi 2022-03-19 04:27:53 +08:00
  • 1734e72638 v.vmod: make the v.mod parser more robust, show line numbers in errors, add tests Delyan Angelov 2022-03-18 21:50:34 +02:00
  • 5f79fa8a30 checker: handle invalid smartcast with if/match none ident or selector (fix #12317) (#13762) yuyi 2022-03-18 22:50:54 +08:00
  • f903ef24e8 cgen: simplify slicing fixed array (#13767) Nick Treleaven 2022-03-18 14:50:30 +00:00
  • bb2ddb98a3 parser: check if guard condition (#13765) yuyi 2022-03-18 22:49:20 +08:00
  • 54b0a2aa62 toml: fix toml.scanner.new_simple/1 to *always* create a scanner, based on text, not a file path Delyan Angelov 2022-03-18 16:14:44 +02:00
  • 0ca87ad09f parser: fix small performance regression after 1d83ab6b (by avoiding needless interpolation in hot paths) Delyan Angelov 2022-03-18 12:52:03 +02:00
  • 236bcda549 tools: speedup v fmt -verify when there are no file differences, avoiding diff.color_compare_files Delyan Angelov 2022-03-18 12:15:55 +02:00
  • 817bedec5d checker: show available sumtype variants in match branches on typos Delyan Angelov 2022-03-18 11:29:36 +02:00
  • 00563a130d cgen: fix double evaluation of rvalue array expression in slice (#13737) Nick Treleaven 2022-03-18 09:43:15 +00:00
  • d87b5d40b6 docs: add installation-issues discussion in README (#13761) ylluminate 2022-03-18 05:32:56 -04:00
  • 8a2d3f6470 strings: add a Builder.ensure_cap() method (#13755) Hunam 2022-03-18 09:36:53 +01:00
  • 136f39a2d4 cgen: cleanup in if_expr() (#13754) yuyi 2022-03-17 07:09:49 +08:00