aboutsummaryrefslogtreecommitdiff
path: root/src/check_expr.cpp
Commit message (Collapse)AuthorAgeFilesLines
* Add `-did-you-mean-limit:N`Jeroen van Rijn2 days1-0/+6
| | | | | | | | | | | | | | | | | | | | | | | ``` -did-you-mean-limit:<integer> Sets the maximum number of suggestions the compiler provides. Must be an integer >0. If not set, the default limit is 10. ``` e.g. with a limit of 5 ``` W:/Scratch/main.odin(44:7) Error: Undeclared name 'B1' for type 'E' e = .B1 ^^ Suggestion: Did you mean? A23 A02 A19 A20 A21 ... and 25 more ... ```
* Remove else check for untyped to typedgingerBill2026-01-291-2/+4
|
* Add `struct #simple` to force a struct to use simple comparison if all of ↵gingerBill2026-01-291-2/+4
| | | | the fields "nearly simply comparable".
* Fix constant indexing within a call that doesn't existgingerBill2026-01-261-0/+5
|
* Use `context.assertion_failure_proc` with type assertions when the `context` ↵gingerBill2026-01-261-2/+14
| | | | is available, otherwise use a trivial trap.
* Merge pull request #6159 from Barinzaya/fix-const-bitset-containsJeroen van Rijn2026-01-241-4/+8
|\ | | | | Fix `in`/`not_in` on constant `bit_set`s
| * Fixed some issues with `in` and `not_in` on constant `bit_set`s.Barinzaya2026-01-231-4/+8
| | | | | | | | | | | | | | | | | | This addresses two issues: - With a `bit_set` having no underlying type and a non-zero lower bound, `in` and `not_in` were returning incorrect results when done at compile-time. - With a `bit_set` of more than 128 bits, `in` always returns false on values that fall within the upper 64 bits.
* | Fix #6126Jeroen van Rijn2026-01-241-2/+2
|/ | | | `ExactValue_Compound` wasn't handled properly.
* Minor rearrange of `check_is_operand_compound_lit_constant` for future ↵gingerBill2026-01-221-7/+14
| | | | optimization prep
* Merge pull request #6119 from slowhei/mastergingerBill2026-01-161-1/+5
|\ | | | | Fix assertion error when imported proc groups are passed as proc arguments
| * Fix assertion error when imported proc groups are passed as proc argumentsTohei Ichikawa2026-01-101-1/+5
| |
* | Add `#must_tail` and `"preserve/none"` calling conventiongingerBill2026-01-151-5/+8
| |
* | Add `#must_tail` (similar syntax to `#force_inline`gingerBill2026-01-151-3/+27
| |
* | Merge branch 'master' of https://github.com/odin-lang/OdingingerBill2026-01-111-17/+6
|\ \
| * | Fix regression in #6118ske2026-01-101-1/+1
| |/
| * Fix constant conversion checks (#6104)ske2026-01-071-17/+6
| |
* | Fix `#type` not being handled as in normal expressionsgingerBill2026-01-111-0/+9
|/
* Fix auto objc_msgSend incorrectly treating certain class methods as instance ↵Harold Brenes2025-12-291-8/+3
| | | | methods.
* Do naive compound literal comparison for $ parameters to parapoly proceduresgingerBill2025-12-151-0/+19
|
* Remove debug stringgingerBill2025-12-151-4/+0
|
* Propagate array arithmetic fixgingerBill2025-12-151-1/+4
|
* Present constant array arithmetic error correctlygingerBill2025-12-151-1/+5
|
* Fix #6003gingerBill2025-12-091-5/+3
|
* Improve error positioning for `#all_or_none`gingerBill2025-11-061-2/+8
|
* Add `#all_or_none`gingerBill2025-11-051-0/+45
|
* Improve error handling for #5506gingerBill2025-11-021-2/+48
|
* Fix #5506gingerBill2025-11-021-0/+14
|
* Add short-circuit for `check_cast_internal`gingerBill2025-10-101-2/+9
|
* Fix #5778gingerBill2025-10-101-9/+16
|
* Merge pull request #5739 from Creativty/mastergingerBill2025-10-071-2/+0
|\ | | | | Fix proc group named operands issue #4971
| * Fix proc group named operands issue #4971xenobas2025-10-011-2/+0
| |
* | Merge pull request #5757 from ↵gingerBill2025-10-071-1/+0
|\ \ | | | | | | | | | | | | Creativty/fix_out_of_place_default_params_exclusion Fix #5734, Default params exclusion counting in proc groups issue
| * | Fix non infix params with default value exclusion countingxenobas2025-10-051-1/+0
| | |
* | | Merge pull request #5727 from harold-b/hb.intrinsics.objc_supergingerBill2025-10-051-0/+73
|\ \ \ | |/ / |/| | Add intrinsics.objc_super and Automatically emit objc_msgSend calls
| * | Automatically emit objc_msgSend calls when calling imported or implemented ↵Harold Brenes2025-09-291-0/+73
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Objective-C methods - Add intrinsics.objc_super() - Emit objc_msgSendSuper2 calls when an objc method call is combined with objc_super(self) - Fix objc_block return value ABI for large struct returns - Fix objc_implement method wrappers bad ABI for large struct returns and indirect args - Simplify parameter forwarding for objc_imlpement methods - Add intrinsics.objc_instancetype to mimi Objective-C instancetype* returns This facilitates returning the correct type on subclasses when calling mehtods such as `alloc`, `init`, `retain`, etc. - Refactor Objective-C class implementations generation so that hierarchies are properly initialized - Better codegen for context passing with ivar-based autocontext - Allow @superclass on imported objc-c objects - Better codegen for block forwarding invoker, arguments are forwarded directly
* | | Remove a debug printf that caused regressionYhya Ibrahim2025-10-051-5/+0
| |/ |/|
* | Disallow dynamic-literals withint procedure scopes where `context` is not ↵gingerBill2025-09-301-2/+9
|/ | | | defined
* Add `-para-poly-diagnostics`gingerBill2025-09-291-0/+1
|
* Disallow constant access `x.y` on `struct #raw_union`gingerBill2025-09-291-2/+6
|
* Rudimentary support for some constant `struct #raw_union`gingerBill2025-09-291-1/+1
|
* Add more `check_is_operand_compound_lit_constant` usesgingerBill2025-09-281-4/+16
|
* Fix constant `union{proc()}`gingerBill2025-09-281-0/+15
|
* Allow for constant `[]typeid`gingerBill2025-09-281-12/+15
|
* Correct union type checking for constantsgingerBill2025-09-281-101/+107
|
* Begin to support constant array of unionsgingerBill2025-09-281-20/+8
|
* First step towards constant unionsgingerBill2025-09-281-1/+1
|
* Merge pull request #5689 from slowhei/mastergingerBill2025-09-261-0/+4
|\ | | | | Improve type inferencing of literals when calling proc groups
| * Merge remote-tracking branch 'upstream/master'Tohei Ichikawa2025-09-241-5/+31
| |\
| * | Remove an outdated TODOTohei Ichikawa2025-09-161-2/+0
| | |
| * | Improve type inferencing of literals when calling proc groupsTohei Ichikawa2025-09-151-0/+6
| | |