aboutsummaryrefslogtreecommitdiff
path: root/src/checker.cpp
Commit message (Collapse)AuthorAgeFilesLines
* Add `-custom-attribute`gingerBill2024-06-281-2/+3
|
* Fix #3803gingerBill2024-06-281-0/+1
|
* Remove `@(warning)` and `#warning(...)`gingerBill2024-06-251-14/+0
|
* Merge pull request #3137 from laytan/show-defineablegingerBill2024-06-201-0/+2
|\ | | | | Add flags to show/export defineable values and warn if a -define is unused in the project
| * -show-defineables and -export-defineablesLaytan Laats2024-06-061-0/+2
| |
* | Forbid private test casesFeoramund2024-06-181-0/+8
| |
* | Add `intrinsics.procedure_of`gingerBill2024-06-101-0/+4
| | | | | | | | | | | | | | | | ```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 ```
* | Use `get_final_microarchitecture()` for `ODIN_MICROARCH_STRING`Feoramund2024-06-101-1/+3
| |
* | Add compilation-related constantsFeoramund2024-06-101-0/+25
| | | | | | | | | | | | | | | | | | | | | | `ODIN_VERSION_HASH` is the `git` SHA hash of the commit the Odin compiler was built with. `ODIN_MICROARCH_STRING` is the string passed to `-microarch` when the program was built. `ODIN_OPTIMIZATION_MODE` is an enum value of which optimization mode was used to build the program.
* | Remove unnecessary Wait_Signal checksgingerBill2024-06-071-4/+0
| |
* | Try to fix a possible race condition with polymorphic record parametersgingerBill2024-06-061-0/+4
|/
* Add `@(rodata)`gingerBill2024-06-061-0/+6
|
* Remove `-test-name` in favor of test runner optionFeoramund2024-06-021-29/+0
| | | | | | `-define:ODIN_TEST_NAMES=...` is capable of selecting test by package and name or name only, with the ability to access packages included by `-all-packages`.
* Add experimental target `orca_wasm32`gingerBill2024-05-301-0/+1
|
* Add `@(link_suffix=<string>)`gingerBill2024-05-301-0/+46
|
* Delay checking foreign import paths until after global scope is checkedgingerBill2024-05-281-80/+88
|
* Begin moving `foreign import` import paths to be evaluated in the semantic ↵gingerBill2024-05-271-1/+38
| | | | phase rather than parsing.
* Merge pull request #3570 from jasonKercher/linux-arm32gingerBill2024-05-201-0/+4
|\ | | | | Get the compiler to build and work on arm32 Linux
| * arm32 now compiles and runs demojasonkercher2024-05-101-0/+4
| |
* | Reimplement `-build-mode:static`/`-build-mode:lib`gingerBill2024-05-161-0/+1
| |
* | Merged with masterAndreas T Jonsson2024-05-021-10/+21
|\|
| * Allow `@(init)` procs to be `@(disabled)`Feoramund2024-04-281-0/+5
| |
| * Add extra assertsgingerBill2024-04-281-0/+2
| |
| * Correct map usagegingerBill2024-04-261-1/+1
| |
| * Implement dumb `PtrMap`gingerBill2024-04-261-3/+2
| |
| * Implement dumb `StringMap`gingerBill2024-04-261-4/+3
| |
| * Minor clean upgingerBill2024-04-261-6/+10
| |
| * Minor changesgingerBill2024-04-261-0/+2
| |
* | Merge branch 'master' into netbsdAndreas T Jonsson2024-04-251-4/+9
|\|
| * Add `-no-type-assert` and `ODIN_NO_TYPE_ASSERT`gingerBill2024-04-181-0/+1
| |
| * Add `ODIN_NO_BOUNDS_CHECK`gingerBill2024-04-181-0/+1
| |
| * Remove `?`dev-2024-04agingerBill2024-04-111-1/+1
| |
| * Add @(static) checkgingerBill2024-04-111-2/+2
| |
| * Change stack overflow check to >256 KiBgingerBill2024-04-111-2/+2
| |
| * Add `-vet-unused-variables` and ``-vet-unused-imports` (`-vet-unused` is both)gingerBill2024-04-111-1/+4
| |
| * Fix #3412gingerBill2024-04-111-1/+1
| |
* | Initial commit of NetBSD portAndreas T Jonsson2024-04-161-0/+1
|/
* Merge pull request #3366 from laytan/fix-vet-scope-buggingerBill2024-04-031-1/+1
|\ | | | | fix vet scope bug skipping some scopes
| * fix vet scope bug skipping some scopesLaytan Laats2024-04-021-1/+1
| | | | | | | | Fixes #3146
* | fix -vet warning for stack overflows not showing upLaytan Laats2024-04-031-11/+9
|/ | | | | Due to the placement of this code, the warning would only ever be added if the variable was also either unused or shadowed.
* Fix #3341gingerBill2024-03-271-3/+3
|
* Merge pull request #3283 from laytan/darwin-new-wait-on-address-apigingerBill2024-03-271-0/+9
|\ | | | | darwin: use new wait on address API if possible
| * add `ODIN_` prefix to the new constantLaytan Laats2024-03-181-1/+1
| |
| * darwin: use new wait on address API if possibleLaytan Laats2024-03-151-0/+9
| |
* | Merge pull request #3335 from rick-masters/fix_incomplete_struct_typegingerBill2024-03-261-0/+2
|\ \ | | | | | | Don't add type info for incomplete structs.
| * | Don't add type info for incomplete structs.rick-masters2024-03-261-0/+2
| | |
* | | Add extra sanity check for `nullptr`gingerBill2024-03-261-1/+3
|/ /
* | Fix another #soa race condition buggingerBill2024-03-261-0/+31
| |
* | Merge pull request #3329 from ↵gingerBill2024-03-251-1/+10
|\ \ | | | | | | | | | | | | laytan/fix-darwin_amd64-f16-emulation-on-older-microarches darwin: fix amd64 f16 emulation
| * | darwin: fix amd64 f16 emulationLaytan Laats2024-03-251-1/+10
| | | | | | | | | | | | Fixes #3222