aboutsummaryrefslogtreecommitdiff
path: root/src/check_stmt.cpp
Commit message (Collapse)AuthorAgeFilesLines
* Fix #4132gingerBill2024-08-241-1/+2
|
* Disallow labelled branches in `defer` - fix #3960gingerBill2024-08-241-0/+8
|
* Fix #3999gingerBill2024-08-181-1/+2
|
* Fix #4005gingerBill2024-08-181-1/+5
|
* Fix #4022gingerBill2024-08-181-1/+1
|
* Fix #4040gingerBill2024-08-181-0/+10
|
* Error if assigning to `rodata` variable with indexDavi2024-08-131-1/+8
|
* Check to see if people are return a slice of a local fixed array from a ↵gingerBill2024-07-221-1/+9
| | | | procedure
* Add NULL check in check_range_stmtJeroen van Rijn2024-07-211-1/+1
| | | | Fixes #3953
* Fix compiler crash when switching on no valueFeoramund2024-07-141-0/+3
|
* Improve warning handling for possible `default:` typogingerBill2024-07-101-0/+6
|
* `-strict-style`: enforce `case` to be in the same column as `switch`gingerBill2024-06-291-0/+14
|
* Add `intrinsics.procedure_of`gingerBill2024-06-101-1/+9
| | | | | | | | ```odin foo :: proc(x: $T) { fmt.println(x) } bar :: intrinsics.procedure_of(foo(int(123))) // parameters are never ran at compile time, similar to `size_of` bar(333) // prints 333 ```
* Add error message on return a constant slice value from a proceduregingerBill2024-06-081-0/+4
|
* Remove empty line preventing a suggestion from happeninggingerBill2024-06-081-2/+0
|
* Allow `@(rodata)` on `@(static)` variablesgingerBill2024-06-061-1/+5
|
* Add `@(rodata)`gingerBill2024-06-061-0/+6
|
* Add `@(link_suffix=<string>)`gingerBill2024-05-301-2/+2
|
* Add shadow suggestiongingerBill2024-05-221-1/+5
|
* Fix `for &v in &fixed_array`gingerBill2024-05-201-1/+2
|
* Fix error reporting for enforce new switch/for syntaxgingerBill2024-05-161-2/+2
|
* Remove the old switch/for semantics entirely and enforce `switch &x in y`gingerBill2024-05-161-28/+2
|
* Fix #3587gingerBill2024-05-141-1/+28
|
* Attempt at fixing #3588gingerBill2024-05-141-0/+2
|
* Fix #3569gingerBill2024-05-131-1/+1
|
* Fix #3578gingerBill2024-05-131-17/+23
|
* Minor clean up of `is_terminating` codegingerBill2024-05-131-8/+19
| | | | This does not fix all known issues with it
* Fix #3522gingerBill2024-05-101-2/+32
|
* Disallow `for x in bitset_or_map` if `x` is a variable that matches the "key"gingerBill2024-04-271-0/+22
|
* Generalize Odin call-based "iterators" to work with more than 2-values: `for ↵gingerBill2024-04-271-14/+21
| | | | | | x, y, z, w in iterate(&it)` It has an artificial limitation of 100 values because if you need for than that, you're doing something wrong.
* Remove warning on clanggingerBill2024-04-121-2/+2
|
* Improve error messages for `switch` and `for` r-values with a suggestiongingerBill2024-04-121-0/+43
|
* Add `nil` checksgingerBill2024-04-111-2/+2
|
* Fix checker crash when `or_return`/`or_break`/`or_continue` used for ↵oskarnp2024-04-061-3/+3
| | | | non-existing proc
* Improve error messages for `A variable declaration must be an identifier`gingerBill2024-04-041-5/+22
|
* Error message when RTTI is disabled when iterating over an `enum` type or a ↵gingerBill2024-04-011-0/+6
| | | | `bit_set` of `enum` with `for in`
* Unify error message logic for ranges over `bit_set`gingerBill2024-04-011-9/+5
|
* Support `for in` with `bit_set`gingerBill2024-04-011-0/+13
|
* Add error block around `error_line` callsgingerBill2024-03-231-0/+5
|
* Ignore wrong typesgingerBill2024-03-231-1/+1
|
* Add some basic escape analysis errors for `return &x`gingerBill2024-03-231-51/+44
|
* Disallow `for x in y.(T)` and `for x in y.?`gingerBill2024-03-211-4/+7
|
* Fix error handling for type switch statementgingerBill2024-03-201-0/+2
|
* Fix #3301gingerBill2024-03-201-0/+2
|
* On `x: [?]T = {...}`, minimize errors by using the `[?]T` expression as a ↵gingerBill2024-03-191-5/+7
| | | | kind of hint
* Fix `for x in y` where `y` is an "optional ok" value, but ignores ↵gingerBill2024-03-181-1/+5
| | | | `#optional_allocator_error` values
* Fix #3282gingerBill2024-03-161-0/+4
|
* Fix #3284gingerBill2024-03-161-0/+6
|
* Add general support for `bit_field`sgingerBill2024-02-221-0/+10
|
* Improve foreign variable fuzzy type checkinggingerBill2024-01-281-1/+1
|