Commit Graph
22823 Commits
Author SHA1 Message Date
wechman 577a5bb7a4 Additional asserts in ASTJsonImporter::createUsingForDirective 2022-09-28 13:09:30 +02:00
wechman 6724455b16 Merge type errors 8112 and 7617. 2022-09-28 13:09:30 +02:00
wechman d730e92dde Rename Type::userDefinedOperator to Type::operatorDefinition 2022-09-28 13:09:30 +02:00
wechman 7983167732 Code adjustment after review 2022-09-28 13:09:30 +02:00
wechman af1cd16d1f Update names in FunctionCallGraps 2022-09-28 13:09:30 +02:00
wechman 9ce1ded86f Updates after code review 2022-09-28 13:09:29 +02:00
wechman 23bea46d04 Operator bound to function pointer test case 2022-09-28 13:09:16 +02:00
wechman ea5309a9e6 Update error message of 4907_error 2022-09-28 13:09:16 +02:00
wechman cdbc06419f Updates after code review 2022-09-28 13:09:16 +02:00
wechman 7b81a65bc6 Fixes after rebase 2022-09-28 13:09:16 +02:00
wechman d414469014 Semantic tests update after review 2022-09-28 13:09:16 +02:00
wechman 8bb8373436 Fix the using directive implicit conversion error message. 2022-09-28 13:09:16 +02:00
wechman 257b2f2d0e Add ASTJSON custom operator test 2022-09-28 13:09:16 +02:00
wechman 5fdd9cf591 Update UsingForDirective::functionsAndOperators to not expose ranges-v3 2022-09-28 13:09:15 +02:00
wechman dcce3fa89b "Operator has not been user-defined." is displayed only is operator can be user-defined 2022-09-28 13:09:15 +02:00
wechman 5942912bf1 Update ViewPureChecker tests for user type operator with view modifier 2022-09-28 13:09:15 +02:00
wechman 1a8564545e Minor fixes after code review 2022-09-28 13:09:15 +02:00
wechman c507d24a78 OperationAnnotation::userDefinedFunction can be set only once 2022-09-28 13:09:13 +02:00
wechman 59c8ec0e65 Operators SHL, SAR, Exp and Not can be bound as a user type operators 2022-09-28 13:08:32 +02:00
wechman 27249cfa52 Update 2271 and 5653 error messages to mention the errors are related to the binary operator. 2022-09-28 13:08:32 +02:00
wechman 697d279165 Rename unctionType::bound() to unctionType::boundToType() 2022-09-28 13:08:32 +02:00
wechman c5640fb125 Unify vocabulary related to the feature. 2022-09-28 13:08:32 +02:00
wechman 6d710920c5 CFGNode stores function definition 2022-09-28 13:08:30 +02:00
wechman 5572d3aed8 Adjustments after review 2022-09-28 13:07:59 +02:00
wechman 3bc52acbd1 Update documentation of using-for directive 2022-09-28 13:07:59 +02:00
wechman eefb107e4d Update "using for" directive type checking 2022-09-28 13:07:59 +02:00
wechman acf4557c41 Rename overridable to overridableOperators 2022-09-28 13:07:59 +02:00
wechman b7d5d6bfaf Additional tests for using for directive 2022-09-28 13:07:59 +02:00
wechman 6ebefdd1f8 Add test for external call inside operator function 2022-09-28 13:07:59 +02:00
wechman 9badef916e Additional tests for user type operators 2022-09-28 13:07:59 +02:00
wechman f6543f772d Test for binding user type operator to error 2022-09-28 13:07:59 +02:00
wechman 1218b207ef Add test cases for user type operators with global using for directive 2022-09-28 13:07:59 +02:00
wechman bd758a5e35 Call user defined type operator by member function 2022-09-28 13:07:59 +02:00
wechman 516e92ee96 Add test for operator overloaded by data location 2022-09-28 13:07:59 +02:00
wechman 616988da15 Test case for user operator bind a bound free function 2022-09-28 13:07:59 +02:00
wechman b5f61285b7 Test cases for bindng operators to builtin functions 2022-09-28 13:07:59 +02:00
wechman e0c688d55d Add user operator tests for builtin types 2022-09-28 13:07:58 +02:00
wechman 6feb8aea73 Rework error handlig of user type operators 2022-09-28 13:07:58 +02:00
wechman 4fac7b54b3 Additional tests for user operators with calldata and storage parameters 2022-09-28 13:07:58 +02:00
wechman b860561814 Simplify Type::userDefinedOperator function 2022-09-28 13:07:58 +02:00
wechman e3f5c4c1b5 An extra assert for no operator for libraries in ASTJsonExporter::visit 2022-09-28 13:07:58 +02:00
wechman c89eecf52b Update tests after code review 2022-09-28 13:07:58 +02:00
wechman c61d5b457e Update UsingForDirective docstring 2022-09-28 13:07:58 +02:00
wechman 9e1ba093d5 Minor changes after code review 2022-09-28 13:07:58 +02:00
wechman 70255f8776 Revert "Update OperationAnnotation to use SetOnce for userDefinedFunction"
This reverts commit 29707c7b9a4884f0a5a8ada47cce4859401c8d53.
2022-09-28 13:07:57 +02:00
wechman d124f83b88 Update OperationAnnotation to use SetOnce for userDefinedFunction 2022-09-28 13:07:12 +02:00
wechman 6fcd717ab4 More descriptive error message in TypeChecker::visit(UnaryOperation) 2022-09-28 13:06:25 +02:00
wechman e001f8346b Update message of TypeError 5172 2022-09-28 13:06:25 +02:00
wechman c6ad99c3b1 Add FunctionCallGraph unit tests for user defined operators 2022-09-28 13:06:25 +02:00
wechman fee6b5f96c Type::userDefinedOperator takes return parameters into account 2022-09-28 13:06:25 +02:00