Commit Graph

3887 Commits

Author SHA1 Message Date
Jeroen van Rijn
a1eae6304f Merge pull request #2622 from laytan/detect-unix-colors-support
detect unix color support
2023-07-02 21:34:34 +02:00
Laytan Laats
49058620f0 fix spacing 2023-07-02 21:25:48 +02:00
Laytan Laats
f68a3639b4 use more common detection method and add FORCE_COLOR and NO_COLOR support 2023-07-02 21:11:19 +02:00
Laytan Laats
f4e87c9720 ignore stderr in tput call 2023-07-02 20:20:10 +02:00
Laytan Laats
23bf7973fa detect unix color support 2023-07-02 19:56:46 +02:00
gingerBill
8b8310711e Fix #2594 zero sized union code generation 2023-06-26 17:36:27 +01:00
gingerBill
cdcb64b0d0 Add missing -strict-style check 2023-06-26 17:06:42 +01:00
gingerBill
3c0f1caa41 Fix #2606 2023-06-26 17:03:40 +01:00
gingerBill
8182ba4ee0 Improve internal names for parapoly records 2023-06-26 16:48:43 +01:00
gingerBill
00d60e28c2 Allow switch &v in ... work to be consistent with for &e in ... 2023-06-26 15:41:53 +01:00
gingerBill
ea00619c3b for &e, i in array and for k, &v in map (alternative to passing the iterable by pointer) 2023-06-26 15:20:40 +01:00
gingerBill
c48057081e Fix nullptr entity case 2023-06-21 14:39:23 +01:00
gingerBill
ea76e09ea7 Fix empty varargs 2023-06-21 14:30:39 +01:00
gingerBill
c9fb078c0f Handle #c_vararg 2023-06-21 14:07:14 +01:00
gingerBill
1800030356 Correct deferred procedures 2023-06-21 14:01:46 +01:00
gingerBill
43ba2c6226 Fix constant parameter passing 2023-06-21 12:10:07 +01:00
gingerBill
735181dc0e Remove unnecessary indent 2023-06-21 01:33:37 +01:00
gingerBill
8a890fd3d3 Remove new_and_improved in the name 2023-06-21 01:32:35 +01:00
gingerBill
15e31e47fa Remove in order requirement for named parameters 2023-06-21 01:24:57 +01:00
gingerBill
67ca9166d3 Allow named arguments variadic expansion .. 2023-06-21 01:03:21 +01:00
gingerBill
b2ced834ba Minor code reshuffle 2023-06-21 00:43:51 +01:00
gingerBill
18746c1444 Refactor call argument checking to a single procedure 2023-06-21 00:40:02 +01:00
gingerBill
09f366bec7 Correct purely named argument handling 2023-06-21 00:03:56 +01:00
gingerBill
2a002c3882 Fix scoring for untyped ternary expressions 2023-06-20 22:55:33 +01:00
gingerBill
fb756e3463 Correct procedure group handling 2023-06-20 21:02:57 +01:00
gingerBill
3c5661b51b Allow for positional and named arguments in procedure calls 2023-06-20 20:29:40 +01:00
gingerBill
26e06ba6a6 Correct check_call_arguments_new_and_improved logic 2023-06-20 16:08:26 +01:00
gingerBill
7c57dde255 Start work on parapoly args for new and improved 2023-06-20 13:47:10 +01:00
gingerBill
9ec927b9e9 Try to get make everything work with parapoly 2023-06-20 00:30:29 +01:00
gingerBill
15a0d9f900 Begin to handle split arguments correctly 2023-06-19 23:46:06 +01:00
gingerBill
f26e3c6509 Improve proc group selection with named arguments 2023-06-19 22:26:43 +01:00
gingerBill
6568625dea Fix line error printing for error messages 2023-06-19 22:12:47 +01:00
gingerBill
427f212170 Begin work in procedure calls 2023-06-19 13:56:00 +01:00
gingerBill
2992ca5df1 Basic support for new procedure code (non-polymorphic, non-proc-group) 2023-06-15 01:37:55 +01:00
gingerBill
242d3b3c4d Begin work allowing mixture of named and unnamed 2023-06-14 15:40:52 +01:00
gingerBill
c66ac9725e Separate out logic for checking mixture of named and unnamed parameters 2023-06-14 14:56:33 +01:00
gingerBill
feacc5cd11 Basic enforcement of ordered named arguments/parameters for procedures 2023-06-14 14:03:08 +01:00
gingerBill
3a761395be Add basic optimization for comparisons against the empty string "" 2023-06-14 12:49:33 +01:00
finn
ec32967daa [check-type] fix faulty #no_nil variants error
- when checking the variants of a union type we will skip adding
  the variants if we have an unspecialized polymorphic, hence our
  union_type variants will be empty and have a count of 0

- so when checking if we violate the #no_nil error, if we are in the
  unspecialized polymorphic case and there exists at least one variant
  in the original variants then we should not raise this error

- test checks that we do not raise the error anymore, and that we still
  detect the #no_nil error in the described circumstances
2023-06-13 22:07:01 +02:00
gingerBill
581eebb197 Fix a race condition when produced anonymous procedure literals with -use-separate-modules 2023-06-13 13:14:59 +01:00
gingerBill
296674e18b Rename ODIN_DISALLOW_RTTI to ODIN_NO_RTTI; Remove dead command line flags 2023-06-12 14:53:05 +01:00
gingerBill
52a926dd90 Deprecate -disallow-rtti in favour of -no-rtti 2023-06-12 14:49:00 +01:00
gingerBill
2022a7615a Make all id suffixes use atomics where possible 2023-06-12 14:10:18 +01:00
gingerBill
dca0fae781 Improve lb_generate_anonymous_proc_lit (again) 2023-06-12 13:42:51 +01:00
gingerBill
ede9881458 Keep compilers happy 2023-06-12 12:54:36 +01:00
gingerBill
a7f8c78358 Change how "$anon" mangling works to use an atomic value instead 2023-06-12 12:52:17 +01:00
gingerBill
4c17e2e97e Merge pull request #2552 from jcmoyer/fix-2466
Use compound literal storage for ValueDecl lvals
2023-06-08 12:34:40 +01:00
gingerBill
7dc09ed450 Add ODIN_COMPILE_TIMESTAMP (unix timestamp in nanoseconds) 2023-06-07 15:49:12 +01:00
gingerBill
349641e95f Fix #2572 2023-06-07 13:08:15 +01:00
gingerBill
9941ec85d8 Fix #2578 (check for fallthrough) 2023-06-07 12:18:21 +01:00