Commit Graph

16672 Commits

Author SHA1 Message Date
Daniel Kirchner
1b4bbdc5ff
Merge pull request #8573 from ethereum/add-move-specific-warnings
[build-system] Add -Wpessimizing-move & -Wredundant-move warnings.
2020-04-03 16:58:26 +02:00
Leonardo
07ffc041db
Merge pull request #8582 from ethereum/chriseth-patch-1
Changelog entry for immutable variables.
2020-04-03 12:24:44 +02:00
Daniel Kirchner
d68c526eaa Disallow external function pointers as immutables. 2020-04-03 11:56:51 +02:00
Daniel Kirchner
00acaadd10
Merge pull request #8584 from random-internet-cat/annotation-constructors
Delete copy/move on annotation polymorphic bases to improve safety
2020-04-03 10:56:38 +02:00
Jason Cobb
7f5857a146
Delete copy/move on annotation polymorphic bases 2020-04-02 22:33:21 -04: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
chriseth
4816484964
Merge pull request #8580 from ethereum/publicImmutables
Accessors for immutable variables.
2020-04-02 19:50:56 +02:00
chriseth
d7a39c86ce Accessors for immutable variables. 2020-04-02 19:09:54 +02:00
chriseth
bdcfd71f34 Skip verification for external access. 2020-04-02 18:40:43 +02:00
chriseth
216fca5b70
Merge pull request #8578 from ethereum/interface-function-modifier-error
Added error for interface functions that have modifiers; test case
2020-04-02 18:05:32 +02:00
chriseth
0d3303e4af
Changelog entry for immutable variables. 2020-04-02 17:46:29 +02:00
hrkrshnn
ef2bef9ddc Added error for interface function with modifiers; test case 2020-04-02 20:30:43 +05:30
chriseth
ed1000dde7
Merge pull request #8462 from ethereum/allocate_memory_zero_function
[Yul codegen] Zero initialize memory arrays
2020-04-02 16:18:59 +02:00
Leonardo Alt
39ff0deb05 Zero initialize memory arrays 2020-04-02 15:55:18 +02: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
chriseth
8d28089abc
Merge pull request #8475 from ethereum/immutable-functioncallgraph
implement ImmutableValidator class
2020-04-02 14:14:53 +02:00
chriseth
4f635cab91
Merge pull request #8576 from ethereum/add-changelog-storage-pointer
Added changelog
2020-04-02 14:14:11 +02:00
hrkrshnn
cb66274827 Added changelog 2020-04-02 17:41:44 +05:30
Mathias Baumann
ac7b31e559 Validate immutable variables 2020-04-02 13:52:27 +02:00
Mathias Baumann
9a8ca6ca33 Always return this for EventDefinition::resolveVirtual
Instead of asserting.
2020-04-02 13:52:27 +02:00
chriseth
a2b427dc0b
Merge pull request #8567 from ethereum/storage-pointer-checker
Removed redundant storage declaration check; test coverages
2020-04-02 13:46:51 +02:00
hrkrshnn
8e6567e399 New folder localStorageVariable for new testcases; added two new tests 2020-04-02 16:34:45 +05:30
hrkrshnn
aec0ae8ec1 Extended test-coverage for storage declaration 2020-04-02 15:45:04 +05:30
chriseth
3224785381
Merge pull request #8569 from aarlt/clang-tidy-apply-modernize-use-nullptr
clang-tidy: Apply modernize-use-nullptr.
2020-04-02 10:38:54 +02:00
chriseth
c8f0629e94
Merge pull request #8574 from ethereum/immutableAssignAtDecl
Properly handle assignments of immutables at declaration.
2020-04-02 10:38:16 +02:00
hrkrshnn
79387b2ada Removed redundant declaration check; changed relevant test cases 2020-04-02 12:27:38 +05:30
Daniel Kirchner
77ea896b68 Properly handle assignments of immutables at declaration. 2020-04-02 08:35:22 +02:00
Alexander Arlt
616fd8df1e Apply modernize-use-nullptr. 2020-04-01 12:46:19 -05:00
chriseth
82f57f0465
Merge pull request #8565 from ethereum/memoryCreationOverflowBug
Memory creation overflow bug.
2020-04-01 19:04:14 +02:00
chriseth
fbda975fe4
Merge pull request #8566 from mijovic/testDocsPragma
[docs] Renaming CI job for documentation pragma version check
2020-04-01 19:01:33 +02:00
Daniel Kirchner
06d184712c Add buglist entry. 2020-04-01 19:01:32 +02:00
Djordje Mijovic
d343143be7 [docs] Renaming CI job for documentation pragma version check 2020-04-01 18:34:20 +02:00
Daniel Kirchner
fe9f8d520c Restrict size for dynamic memory array creation. 2020-04-01 17:25:09 +02:00
chriseth
fb7f51ffca
Merge pull request #8563 from ethereum/fixInternalDispatch
Fix call to internalDispatch.
2020-04-01 12:35:43 +02:00
chriseth
2853cba3e5 Fix call to internalDispatch. 2020-04-01 12:13:32 +02:00
chriseth
7ce867ac60
Merge pull request #8510 from ethereum/immutableDocs
Documentation and grammar for immutables.
2020-04-01 11:49:07 +02:00
chriseth
9c4a02db0f Documentation for immutables. 2020-04-01 11:37:11 +02:00
chriseth
c11d5b8d1b
Merge pull request #8553 from aarlt/inline_asm_function_access
Disallow function access in inline assembly
2020-04-01 11:05:30 +02:00
Alexander Arlt
3e649eb8e1 Disallow access to functions from inline assembly. 2020-04-01 10:34:55 +02:00
chriseth
3f26f7fb7e
Merge pull request #8548 from mijovic/testDocsPragma
Enabling pragma with > in minimum version check
2020-04-01 00:31:15 +02:00
Djordje Mijovic
64ae889dd7 Enabling pragma with > in minimum version check 2020-03-31 23:50:24 +02:00
chriseth
b83d82ab75
Merge pull request #8550 from a3d4/fix-8450-typechecker-compiler-error
Fix  a couple of internal compiler errors when assigning nested tuples
2020-03-31 22:21:58 +02:00
a3d4
c002cae691 Fix #8450. Prevented internal compiler errors when assigning nested tuples. 2020-03-31 03:25:26 +02:00
chriseth
e0c2b4bb9c
Merge pull request #8534 from mijovic/sol2YulConstructorParams
[Sol2Yul] Adding support for constructor with parameters
2020-03-30 20:41:00 +02:00
chriseth
ff35bf69de
Merge pull request #8539 from random-internet-cat/population-op-plus
Convert operator+(Population, Population) into a hidden friend
2020-03-30 16:22:57 +02:00
chriseth
469316f823
Merge pull request #8549 from ethereum/remove-grammar-txt
Removing grammar.txt in favor of Solidity.g4 (ANTLR based grammar)
2020-03-30 15:37:38 +02:00
Christian Parpart
9cc967eb3a Removing grammar.txt in favor of Solidity.g4 (ANTLR based grammar) 2020-03-30 11:35:34 +02:00
Djordje Mijovic
89d5ecdd24 [Sol2Yul] Adding support for constructor with parameters 2020-03-27 01:19:11 +01:00
Jason Cobb
c184844932
Remove forward declaration of class Population 2020-03-26 18:57:43 -04:00