Commit Graph

  • bb4af90799 + store the isGenericInstance in the nimsuggest database, but only when inlay exception hints are turned on * avoid all ideUse, ideDef, etc. commands in suggestSym when isGenericInstance is true Nikolay Nikolov 2024-05-14 18:56:10 +03:00
  • 4aff2cdba2 + added isGenericInstance flag to the nimsuggest database objects Nikolay Nikolov 2024-05-14 18:40:42 +03:00
  • 18132285b4 + also added an isGenericInstance parameter to onUse() for symmetry reasons (although the parameter is currently not used) Nikolay Nikolov 2024-05-14 18:31:21 +03:00
  • 339e55a9b7 * revert changes to tests tgenerics.nim and tv3_generics.nim, as these shouldn't be modified, instead the code needs to be adapted to return the previous value + added parameter isGenericInstance to markUsed * restored the previous calls to markUsed with isGenericInstance false * markUsed with isGenericInstance is ignored for now, but it will be stored in the nimsuggest database later Nikolay Nikolov 2024-05-14 18:21:47 +03:00
  • 515d9edf70 Merge branch 'devel' into nickysn-SirOlaf-generic-sym-suggest Nikolay Nikolov 2024-05-14 17:56:55 +03:00
  • 2f399807cb [Backport 2.0 ] Skips generic owner when mangling instances (#23600) Juan M Gómez 2024-05-14 14:03:26 +01:00
  • 04f3df4c87 fixes testament matrix doesn't work with other backends which left many JS tests untested (#23592) ringabout 2024-05-14 17:33:08 +08:00
  • 81a937ce1f ignore modules when looking up symbol with expected type (#23597) metagn 2024-05-14 12:26:33 +03:00
  • 53424c0036 [Backport 1.6] Skips generic owner when mangling instances (#23599) Juan M Gómez 2024-05-14 10:25:33 +01:00
  • c91b33aaba re-enable tests (#23591) ringabout 2024-05-10 22:17:58 +08:00
  • fcc43fa9c8 Allow to exportc params. (#23396) Juan M Gómez 2024-05-10 09:35:23 +01:00
  • ee59597cd4 Add directory input support to nimpretty (#23590) Mads Hougesen 2024-05-10 10:33:03 +02:00
  • 42486e1b2f unordered enum for better interoperability with C (#23585) ringabout 2024-05-10 16:32:07 +08:00
  • c101490a0c remove bad type inference behavior for enum identifiers (#23588) metagn 2024-05-10 11:30:57 +03:00
  • 1eb9aac2f7 adds Nim-related mimetypes back (#23589) ringabout 2024-05-10 16:30:24 +08:00
  • 2e3777d6f3 Improve strutils.rsplit doc, proc and iterator have oppose result order. (#23570) lit 2024-05-10 16:30:06 +08:00
  • 2995a0318b fixes #23552; Invalid codegen when trying to mannualy delete distinct seq (#23558) ringabout 2024-05-09 04:54:03 +08:00
  • 63398b11f5 Add a note about the sideeffect pragma (#23543) Antonis Geralis 2024-05-08 23:53:29 +03:00
  • d8e1504ed1 Add Complex version of almostEqual function (#23549) Angel Ezquerra 2024-05-08 22:53:01 +02:00
  • 5cecd81a05 fix semFinishOperands for bracket expressions [backport:2.0] (#23571) metagn 2024-05-08 18:35:26 +03:00
  • 09bd9d0b19 fix semFinishOperands for bracket expressions [backport:2.0] (#23571) metagn 2024-05-08 18:35:26 +03:00
  • e6f66e4d13 fixes 12381, HttpClient socket handle leak (#23575) Marius Andra 2024-05-08 17:33:43 +02:00
  • e662043fd1 rework wasMoved, move on the JS backend (#23577) ringabout 2024-05-08 23:11:46 +08:00
  • 1ad4e80060 fixes #22409; don't check style for enumFieldSymChoice in the function (#23580) ringabout 2024-05-08 23:10:48 +08:00
  • 6cc783f7f3 fixes #23442, fix for FileId under Windows (#23444) lit 2024-05-08 23:07:32 +08:00
  • 3b4078a7f8 Skips generic owner when mangling instances (#23563) Juan M Gómez 2024-05-07 22:03:53 +01:00
  • 78d70d5fdf bring telebot back (#23578) ringabout 2024-05-07 19:13:41 +08:00
  • 1ef4d04a1e fixes CI failure (#23566) ringabout 2024-05-04 09:41:14 +08:00
  • 36bf3fa47b fixes #23556; typeinfo.extendSeq generates random values in ORC (#23557) ringabout 2024-05-03 22:29:56 +08:00
  • 526e48b2ed handle the weirdness of the type of the type keyword narimiran 2024-05-03 07:35:06 +02:00
  • a16f126614 add switch, warning, and bind support for new generic injection behavior (#23102) metagn 2023-12-22 10:49:51 +03:00
  • 1f29d5040c remove tensordsl ringabout 2024-05-02 21:06:34 +08:00
  • 19fd8f5ec1 remove deprecated stuffs since v0.18.1 from macros ringabout 2024-05-02 12:33:45 +00:00
  • 8b815cc857 delay resolved procvar check for proc params + acknowledge unresolved statics (#23188) metagn 2024-01-11 09:45:11 +03:00
  • d772186b2d Update unicode.nim: cmpRunesIgnoreCase: fix doc format (#23560) lit 2024-05-02 16:07:19 +08:00
  • d43672833a allow replacing captured syms in macro calls in generics (#23091) metagn 2023-12-18 19:40:30 +03:00
  • 6a63df181f [backport v1.6.x] fixes the discVal register is used after free in vmgen (#22688) (#23553) Nikolay Nikolov 2024-05-01 23:56:16 +03:00
  • 185e06c923 fixes #23419; internal error with void in generic array instantiation (#23550) ringabout 2024-05-01 15:02:43 +08:00
  • d09c3c0f58 fixes #23321; Error: internal error: openArrayLoc: ref array[0..0, int] (#23548) ringabout 2024-04-29 22:58:33 +08:00
  • 47594eb909 fix typo: "As can been seen" to "As can be seen" (#23544) yojiyama7 2024-04-28 19:36:51 +09:00
  • fcb8461efa Fixes an issue where exported types werent being cgen with the exportc pragma (#23369) Juan M Gómez 2024-03-11 12:57:55 +00:00
  • 871cd4b9db fixes refc with non-var destructor; cancel warnings (#23156) ringabout 2024-02-13 15:11:49 +08:00
  • fa78d937dc fixes #22597; avoid side effects for call returning openArray types (#23257) ringabout 2024-01-26 13:06:08 +08:00
  • b302b3102e don't use previous bindings of auto for routine return types (#23207) metagn 2024-01-17 13:59:54 +03:00
  • f682dabf71 fixes #23531; fixes invalid meta type accepted in the object fields (#23532) ringabout 2024-04-26 22:05:03 +08:00
  • 0b0f185bd1 fixes #23536; Stack trace with wrong line number when the proc called inside for loop (#23540) ringabout 2024-04-26 22:02:02 +08:00
  • eb3aa70ffa fixes #22939; fixes #16890; push should but doesn't apply to importc … (#22944) ringabout 2023-11-20 00:53:25 +08:00
  • 407c0cb64a fixes #23522; fixes pre-existing wrong type for iter in liftIterSym (#23538) ringabout 2024-04-26 19:00:25 +08:00
  • 4601bb0255 fixes #23525; an 'emit' pragma cannot be pushed (#23537) ringabout 2024-04-25 00:43:29 +08:00
  • a5c1a6f042 adds another fix for concept in JS (#23535) ringabout 2024-04-24 23:33:58 +08:00
  • cd3cf3a20e fixes #23524; global variables cannot be analysed when injecting move (#23529) ringabout 2024-04-24 18:47:05 +08:00
  • 72a2fe5125 fixes broken nightlies; follow up #22544 (#22585) ringabout 2023-08-29 16:40:19 +08:00
  • e582f1ccb3 Revert "Look up generic parameters when found inside semOverloadedCall, fixin… (#23054)" narimiran 2024-04-23 18:01:24 +02:00
  • 0e1a699937 Revert "Overloads passed to static proc parameters now convert to the desired… (#23063)" narimiran 2024-04-23 18:01:12 +02:00
  • b7b3f87719 Fix std/base64.decode out of bounds read (#23526) bptato 2024-04-22 09:44:33 +02:00
  • 494b5486ba Fix std/base64.decode out of bounds read (#23526) bptato 2024-04-22 09:44:33 +02:00
  • 33817f2c30 Revert "fixes #22923; fixes =dup issues (#23182)" narimiran 2024-04-23 06:57:09 +02:00
  • f44c49c5bd Change unicode lookup tables to have int32 elements to support platforms where sizeof(int) < 4 (#23433) Gianmarco 2024-03-25 10:59:48 +01:00
  • 3dd5e11480 fix: use ErrorColor for hints marked as errors (#23430) Igor Sirotin 2024-03-21 07:26:26 +00:00
  • 716ff93161 fixes #23401; prevents nrvo for cdecl procs (#23409) ringabout 2024-03-16 13:23:15 +08:00
  • 1ac5aa951d propagate efWantStmt in semWhen (#23400) metagn 2024-03-14 13:23:09 +03:00
  • d112874078 fixes #22166; adds sideeffects for close and setFilePos (#23380) ringabout 2024-03-09 18:43:00 +08:00
  • 61da33f31b fixes #22284; fixes #22282; don't override original parameters of inferred lambdas (#23368) ringabout 2024-03-09 18:42:15 +08:00
  • 7e3bac9235 * fix for the debug line info code generation (#23488) Nikolay Nikolov 2024-04-22 14:55:14 +03:00
  • 6cb2dca41d updated compiler DFA docs (#23527) Andreas Rumpf 2024-04-22 13:04:30 +02:00
  • e15aa20059 fixes sink regression for ORC; ref #23354 (#23359) ringabout 2024-03-03 23:03:53 +08:00
  • 8d7b7ff861 fixes #13481; fixes #22708; disable using union objects in VM (#23362) ringabout 2024-03-03 22:56:06 +08:00
  • d389310bb9 strformat: detect format string errors at compile-time (#23356) Jacek Sieka 2024-03-03 15:40:53 +01:00
  • 1ae6deda61 fixes #22723; skips tyUserTypeClasses in injectdestructors (#23341) ringabout 2024-02-24 14:39:56 +08:00
  • 6d38eafda1 fixes #23304; uses snprintf instead of sprintf (#23322) ringabout 2024-02-20 14:28:45 +08:00
  • 845be91df5 assume a module's usage if it contains a passC/passL/compile pragma w… (#23323) heterodoxic 2024-02-19 20:59:14 +01:00
  • 30cf570af9 Fix std/base64.decode out of bounds read (#23526) bptato 2024-04-22 09:44:33 +02:00
  • fa003a00ee fixes regression #22909; don't optimize result init if statements can raise which corrupts the compiler (#23271) ringabout 2024-02-01 23:51:07 +08:00
  • 45f1b19942 clean up goto exceptions; remove the setjmp.h dep (#23259) ringabout 2024-01-27 14:57:07 +08:00
  • 96917755cd fixes #23247; don't destroy openarray since it doesn't own the data (#23254) ringabout 2024-01-26 15:04:16 +08:00
  • 60af04635f fix #23518 - <expr> is crashes nimsuggest (#23523) José Paulo 2024-04-21 16:30:12 -03:00
  • 8a7a776034 fix mime types data (#23226) Bung 2024-01-19 20:11:01 +08:00
  • e33d96ad4e Make std/math classify work without --passc:-fast-math. (#23211) Angel Ezquerra 2024-01-18 21:59:16 +01:00
  • 5a2cd98867 fixes #22218; avoids cursor when copy is disabled (#23209) ringabout 2024-01-19 04:47:13 +08:00
  • a1b310d186 fixes #12334; keeps nkHiddenStdConv for cstring conversions (#23216) ringabout 2024-01-19 04:31:49 +08:00
  • f97c0cced0 error on large integer types as array index range (#23229) metagn 2024-01-18 23:14:27 +03:00
  • 2c964268f8 fixes #23223; prevents insert self-assignment (#23225) ringabout 2024-01-18 21:20:54 +08:00
  • a715aeb716 fixes #23180; fixes #19805; prohibits invalid tuple unpacking code in for loop (#23185) ringabout 2024-01-13 21:09:34 +08:00
  • d57200bc6f fixes #15924; Tuple destructuring is broken with closure iterators (#23205) ringabout 2024-01-13 19:00:55 +08:00
  • fbb9ce4d5c fixes #22923; fixes =dup issues (#23182) ringabout 2024-01-11 18:23:42 +08:00
  • 76735147b3 trigger range check with new type inference on nkIntLit [backport:1.6] (#23179) metagn 2024-01-08 05:44:04 +03:00
  • c2d297cc3c don't transform typed bracket exprs to [] calls in templates (#23175) metagn 2024-01-07 09:48:32 +03:00
  • 4886534ed3 Fixes #23172 (#23173) Ryan McConnell 2024-01-06 05:50:09 +00:00
  • 2ed16bf2d4 fixes #23139; Cannot get repr of range type of enum (#23164) ringabout 2024-01-05 18:07:27 +08:00
  • c3d043e980 fixes #23167; take nkOpenSymChoice into consideration caused by templates [backport] (#23168) ringabout 2024-01-05 15:17:08 +08:00
  • 0cdca3a0cd Recommend hanging indent in NEP1 (#23105) Jacek Sieka 2024-01-03 14:06:39 +01:00
  • 5e22f6ca58 Fix cmpRunesIgnoreCase on system where sizeof(int) < 4. Fixes #23125. (#23138) Gianmarco 2023-12-28 23:41:58 +01:00
  • f8d538f4ad fix spurious indent and newlines in rendering of nkRecList (#23121) metagn 2023-12-24 17:22:10 +03:00
  • 8efdc313a3 Don't crash for invalid toplevel parseStmt/Expr calls (#23089) Jake Leahy 2023-12-20 03:27:24 +11:00
  • 49cc3c5746 Mark macros.error as .noreturn. (#23081) Jake Leahy 2023-12-17 22:29:46 +11:00
  • 865a2f895e Allow parseAll to parse statements separated by semicolons (#23088) Jake Leahy 2023-12-17 19:01:00 +11:00
  • 82e77a13f3 Overloads passed to static proc parameters now convert to the desired… (#23063) Jason Beetham 2023-12-14 09:05:14 -07:00
  • fca71c4bb4 fixes #9381; Fix double evaluation of types in generic objects (#23072) Pylgos 2023-12-14 17:55:04 +09:00
  • 3d4ec68e54 fixes #23060; editDistance wrongly compare the length of rune strings (#23062) ringabout 2023-12-13 17:34:41 +08:00
  • 54bd380011 Look up generic parameters when found inside semOverloadedCall, fixin… (#23054) Jason Beetham 2023-12-12 01:06:13 -07:00