Commit Graph

71419 Commits

Author SHA1 Message Date
florian
5add799193 * fix trvinlinenode.second_fma 2025-01-01 18:00:15 +01:00
Sven/Sarah Barth
ceed183e33 * declare Msgs parameter as "const" for better code generation 2025-01-01 16:15:47 +01:00
Sven/Sarah Barth
cffb0a0845 * use StartsStr() instead of a manual copy to check whether the line starts with the message id 2025-01-01 16:13:48 +01:00
Sven/Sarah Barth
2c9bbc932a * the message id might not be at the start of the line, but after a visibility specifier followed by a colon and space 2025-01-01 15:55:04 +01:00
Jonas Maebe
540807c5c8 WPO: don't crash on TP-style objects with only abstract virtual methods 2025-01-01 15:23:06 +01:00
Sven/Sarah Barth
2a6fb32974 * don't use $MINSTACKSIZE and $MAXSTACKSIZE on non-Windows instead of disabling the warning 2024-12-31 21:44:23 +01:00
Sven/Sarah Barth
72a3729ca0 - remove further unnecessary sub classing of a specialization 2024-12-31 18:32:17 +01:00
Sven/Sarah Barth
9627f98f7b * disable notes for the Collections.Generics unit 2024-12-31 18:32:17 +01:00
Sven/Sarah Barth
4f5b708d49 * fix typo in comment 2024-12-31 18:32:17 +01:00
Sven/Sarah Barth
faf085662d - current Lazarus IDEs can handle generic methods, so no need for NoGenericMethods anymore 2024-12-31 18:32:17 +01:00
Sven/Sarah Barth
70c153123b + add tests for the adjusted message handling, especially one that checks that messages inside generics can be silenced correctly 2024-12-31 18:32:17 +01:00
Sven/Sarah Barth
558a7ef1ed * store the current verbosity as part of the settings so that they're stored as part of a generic token stream as well 2024-12-31 18:32:17 +01:00
Sven/Sarah Barth
59be46a6fb * reset the message state only inside flushpendingswitchesstate(), not during $POP itself 2024-12-31 18:32:17 +01:00
Sven/Sarah Barth
b1791af0a3 * also (re)store the pending state when replaying a token stream 2024-12-31 18:32:17 +01:00
Sven/Sarah Barth
3ba27d3160 * ensure that current_settings.pmessage is reset when doing a replay and when loading the current message state from the token stream 2024-12-31 18:32:17 +01:00
Sven/Sarah Barth
5ec9386d27 * ensure that only the newest message state is applied 2024-12-31 18:32:17 +01:00
Sven/Sarah Barth
1388e2af5b * don't use tmessage.setverbosity() to check whether the message is valid as it should only be applied when the switches are flushed, so use the new tmessage.valid() instead 2024-12-31 18:32:17 +01:00
Sven/Sarah Barth
9a2d0e0692 + add method to TMessage to check whether a message is valid 2024-12-31 18:32:16 +01:00
Sven/Sarah Barth
f2d41e680b * when restoring the state after parsing the last token of the token buffer append the message state to the pending state so that they are reapplied at the correct time 2024-12-31 18:32:16 +01:00
Sven/Sarah Barth
c3a6df26ee * apply message state to the pending state so that they are applied at the correct moment 2024-12-31 18:32:16 +01:00
Sven/Sarah Barth
d335ce60dd * ensure that flushpendingswitchesstate had been called before the start of replaying tokens 2024-12-31 18:32:16 +01:00
Sven/Sarah Barth
7fe7e26659 * use dispose() instead of freemem() for consistency with the allocation of pmessagestaterecord 2024-12-31 18:32:16 +01:00
Michaël Van Canneyt
df365a56cf * Use IsYAMLFileName, detect other extensions 2024-12-31 13:51:43 +01:00
Michaël Van Canneyt
abeccabdf1 * Add IsYAMLfileName 2024-12-31 13:46:32 +01:00
Michaël Van Canneyt
2b56b2d725 * Add possibility to scan single document in consecutive calls 2024-12-31 13:39:14 +01:00
Michaël Van Canneyt
417ba4cca8 * Alias support 2024-12-31 13:12:07 +01:00
Michaël Van Canneyt
349003662c * Fix extensions in filenames 2024-12-31 12:47:45 +01:00
Michaël Van Canneyt
e9eb8297bc * Handle case where there is no end-of-document 2024-12-31 12:33:41 +01:00
Michaël Van Canneyt
2f086e1ec2 * Some formatting fixes, make sure string argument is const where possible 2024-12-31 12:33:41 +01:00
Margers
93d855b2ca Remove one of two CPULLVM define macro 2024-12-30 21:25:43 +00:00
Margers
f7cbed1a72 def_system_macro -> undef_system_macro (fix oversight as if then block is equal to else block) 2024-12-30 21:23:30 +00:00
Michaël Van Canneyt
498ff5c56c * Allow to read YAML files. 2024-12-30 19:33:23 +01:00
Michaël Van Canneyt
52d1a5da94 * Add YAML parser & converter to JSON 2024-12-30 18:14:34 +01:00
florian
40f9d006d6 * write basic attributes for riscvXX-linux 2024-12-30 15:56:24 +01:00
florian
a16f2ae35d * tai_eabi_attribute -> tai_attribute so it can be used by other architectures 2024-12-30 15:56:24 +01:00
mattias
80c59d2474 fcl-passrc: parser: forbid anonymous/local types in proc args and result types 2024-12-30 15:00:34 +01:00
mattias
4e5be1337c fcl-passrc: parser: forbid local types as proc args 2024-12-30 11:54:52 +01:00
mattias
459e1901d2 fcl-passrc: fixed forbid anonymous range type as proc arg type 2024-12-30 11:30:18 +01:00
mattias
1748f7d860 fcl-passrc: parse and resolve attributes of method arguments 2024-12-30 11:30:18 +01:00
Sven/Sarah Barth
024d2bfd73 * extended RTTI now includes static properties, so adjust the test to reflect this 2024-12-29 20:07:29 +01:00
Sven/Sarah Barth
4aed151833 * fix compilation on i8086 where depending on the memory type code and data pointers may be different (Note: this does not mean that the code works as the RTTI data generated by the compiler does not seem valid either) 2024-12-29 18:42:15 +01:00
florian
e30ca27914 * RiscV: write also nopic directive 2024-12-29 18:38:27 +01:00
Sven/Sarah Barth
de8d54cfef * reset oo_is_forward object option for external classes after parsing the parent classes 2024-12-29 17:38:30 +01:00
florian
64e87c87bc * apply OptPass1OP to SLT/SLTU as well 2024-12-28 23:38:22 +01:00
Sven/Sarah Barth
3b7d9956ca * fix #40653: don't allow the use of a class during its declaration as parent for a nested class (Delphi compatible)
+ added test
2024-12-27 16:32:06 +01:00
Sven/Sarah Barth
a2826343bb - remove unnecessary subclassing inside TCustomAVLTreeMap<> 2024-12-27 16:32:06 +01:00
Sven/Sarah Barth
dedc018beb * when parsing generic parameter types allow the use of generics that are part of the current specialization stack (this can be the case if a generic is used inside itself as a type parameter for a specialization)
+ added tests
2024-12-27 16:32:06 +01:00
Sven/Sarah Barth
9b63123bf0 + add utility function to check whether a generic belongs to the currently parsed generic even if it's further up in the specialization stack 2024-12-27 16:32:06 +01:00
Sven/Sarah Barth
8f81b213dc * keep track of the current generic def in the specialization state 2024-12-27 16:32:06 +01:00
Sven/Sarah Barth
db83f9c696 * keep track of the current specialization state of the current module 2024-12-27 16:32:06 +01:00