Commit Graph
47 Commits
Author SHA1 Message Date
Alexander Arlt 52b9a92ff8 Update existing tests. 2020-05-13 18:16:59 +02:00
Alexander Arlt a9f4d14010 [Sol - Yul] Add support for send(..) & transfer(..) 2020-05-01 08:32:51 -05:00
Alexander Arlt 151e637336 [Sol - Yul] Add some built-in functions.
- simplifications for GasLeft, Selfdestruct and BlockHash.
- add support for addmod & mulmod.
2020-04-30 14:10:09 -05:00
Alexander Arlt d0bed50260 [ci] add chk_shellscripts 2020-04-27 07:55:59 -05:00
Alexander Arlt 66edaf43f4 [Sol - Yul] Add support for built-in logN(). 2020-04-25 11:10:28 -05:00
Alexander Arlt 2fa26f4e92 [Sol - Yul] Add support for built-in selfdestruct(..). 2020-04-24 17:03:41 -05:00
Alexander Arlt 55eda85a30 docs/cheatsheet.rst: Add `type(I).interfaceId` description. 2020-04-24 08:09:45 -05:00
Alexander Arlt aafa4583df [Sol - Yul] Add support for built-in gasleft(). 2020-04-23 17:14:03 -05:00
Alexander Arlt 3754a86ab2 Add support for interfaceID. 2020-04-16 12:17:40 -05:00
Alexander Arlt aac7a1e434 Apply modernize-pass-by-value. 2020-04-14 10:32:13 -05:00
Alexander Arlt 50776133b5 Fix ownership, part two. 2020-04-08 11:04:44 -05:00
Alexander Arlt 6cf830742d Fix ownership. 2020-04-07 15:39:18 -05:00
Alexander Arlt d8671d9c14 Add script to determine percentage of tests compilable via Yul. 2020-04-04 18:04:54 -05:00
Alexander Arlt cae6e7769f Apply modernize-use-override. 2020-04-02 18:00:44 -05:00
Alexander Arlt 90bb1d8a7c Apply modernize-use-emplace. 2020-04-02 17:35:48 -05:00
Alexander Arlt a7e1ef6a50 [build-system] Add -Wpessimizing-move & -Wredundant-move warnings.
-Wpessimizing-move warns when a call to std::move would prevent copy elision
if the argument was not wrapped in a call.  This happens when moving a local
variable in a return statement when the variable is the same type as the
return type or using a move to create a new object from a temporary object.

-Wredundant-move warns when an implicit move would already be made, so the
std::move call is not needed, such as when moving a local variable in a return
that is different from the return type.
2020-04-02 08:36:47 -05:00
Alexander Arlt 616fd8df1e Apply modernize-use-nullptr. 2020-04-01 12:46:19 -05:00
Alexander Arlt 3e649eb8e1 Disallow access to functions from inline assembly. 2020-04-01 10:34:55 +02:00
Alexander Arlt 67e9776418 Extract 45 tests from SolidityEndToEndTest.cpp 2020-03-26 17:39:12 +01:00
Alexander Arlt df8e762bf9 Add tools: create_traces.sh, remove-testcases.py & verify-testcases.py 2020-03-18 11:56:43 -05:00
Alexander Arlt 23d00b5ca3 Extracted 292 tests from SolidityEndToEndTest.cpp 2020-03-18 11:56:43 -05:00
Alexander Arlt 9d67edb163 Add --show-metadata to enable metadata output. 2020-03-12 13:39:29 -05:00
Alexander Arlt d0eeca8014 Fix CompilerStack::loadMissingSources()
- FatalError Exception was not caught
- fixes #8102
2020-02-12 11:22:11 -05:00
Alexander Arlt 0ae3053618 Add support for reading standard-json from file.
Currently `--standard-json` only supports reading input from stdin,
reading input from a specified file may simplify debugging.
2020-02-05 17:34:24 -05:00
Alexander Arlt 160983141f [circleci] Add t_osx_soltest. 2019-11-08 14:44:54 -05:00
Alexander Arlt ce0cef7cbc Output which functions are not implemented 2019-11-08 14:06:57 -05:00
Alexander Arlt f3f652e290 Update TypeChecker.cpp 2019-11-01 14:54:47 -05:00
Alexander Arlt 569422d2c2 Add Changelog entry. 2019-11-01 14:54:47 -05:00
Alexander Arlt c908c16acd Remove InternalCompilerError on abstract contract instantiation. 2019-11-01 14:54:47 -05:00
Alexander Arlt cd3ad73b5a Update tests. 2019-11-01 14:54:47 -05:00
Alexander Arlt 793b906e05 Update docs/contracts/abstract-contracts.rst. 2019-11-01 14:54:47 -05:00
Alexander Arlt 6573638340 Update docs/grammar.txt 2019-11-01 14:54:47 -05:00
Alexander Arlt e87924a96e Update soltest related tests. 2019-11-01 14:54:47 -05:00
Alexander Arlt 54c5e604e5 Add new tests. 2019-11-01 14:54:47 -05:00
Alexander Arlt 62950a9234 Support for abstract contracts. 2019-11-01 14:54:47 -05:00
Alexander Arlt 47fae911f9 Add UseTab: ForIndentation 2019-09-13 12:40:51 -05:00
Alexander Arlt f76d4d5919 Fix: natspec annotations on constructors
- natspec annotations on constructore where ignored.
2018-08-08 21:53:35 +02:00
Alexander Arlt 89f790c3ab Mark jsoncpp-headers as system headers 2018-05-15 15:14:59 +02:00
Alexander Arlt 4aed41d9b6 cmake/EthCompilerSettings.cmake: increase stacksize for apple clang
- normally 16MB is enough to run all tests, but it will exceed the stack, if -DSANITIZE=address is used.
2018-05-15 15:11:38 +02:00
Alexander Arlt f94b793472 Add virtual destructors on base classes. 2018-05-02 13:29:16 +02:00
Alexander Arlt 3ec667f59b Add virtual destructor in LValue class. 2018-04-24 23:39:25 +02:00
Alexander Arlt a49dac8057 Install & use cmake provided by scripts/install_cmake.sh for emscripten 2018-04-23 11:10:39 +01:00
Alexander Arlt 0b49fd3493 CMake: Update jsoncpp to v1.8.4 2018-04-23 11:10:39 +01:00
Alexander Arlt 70fcf1a8e0 CMake: remove direct jsoncpp dependency in libevmasm 2018-04-20 20:37:26 +01:00
Alexander Arlt 0f29ac4e56 Add new JSON API for better abstraction and for supporting strict JSON parsing 2018-02-20 21:58:26 +01:00
Alexander Arlt 1d4547ab03 Minor improvement: check sources
- returns error, if "sources" is an array, an empty object or not defined
- Added new test-cases in test/libsolidity/StandardCompiler.cpp
2018-02-16 18:44:46 +01:00
Alexander Arlt d9c51f9ca1 Set stack-size to 16MB for darwin clang.
By default Apple's clang defines a stack size of 8MB, some tests require
more.
2018-02-05 22:15:05 +01:00