Commit Graph

1193 Commits

Author SHA1 Message Date
Kamil Śliwak
a75ebc5e15 FunctionCallGraph: operator<< for printing nodes in an unambiguous way 2021-02-11 19:44:39 +01:00
Kamil Śliwak
bd57019821 FunctionCallGraph: Detect events 2021-02-11 19:44:39 +01:00
Kamil Śliwak
3150066eef [FIXUP] Add edges to dispatch only for function that call other functions, not ones that just access them 2021-02-11 19:44:39 +01:00
Kamil Śliwak
bdd35badb8 [FIXUP] Minor refactor 2021-02-11 19:44:39 +01:00
Kamil Śliwak
467a8b318b [FIXUP] Remove special case for missing m_currentNode in processCall() and use processCall() instead of visitCallable() 2021-02-11 19:44:39 +01:00
Kamil Śliwak
11bda6f0e7 [FIXUP] Don't add public getters to the graph 2021-02-11 19:44:39 +01:00
Kamil Śliwak
7411742dad [FIXUP] Don't skip edges to functions that have already been visited 2021-02-11 19:44:39 +01:00
Kamil Śliwak
20933f5f13 [FIXUP] Modifier invocations should always be treated as direct calls 2021-02-11 19:44:39 +01:00
Kamil Śliwak
0cf76ea3cd [FIXUP] Reset m_currentNode at the end of the constructor 2021-02-11 19:44:39 +01:00
Kamil Śliwak
85719c9858 [FIXUP] Use ranges-v3 2021-02-11 19:44:39 +01:00
Kamil Śliwak
f7f6b876d5 [FIXUP] Fix line wrapping in FunctionCallGraph docstring 2021-02-11 19:44:39 +01:00
Kamil Śliwak
40aa96fc9c [FIXUP] Fix comment: RuntimeDispatch -> InternalDispatch 2021-02-11 19:44:39 +01:00
Kamil Śliwak
809f9d9496 [FIXUP] Remove std:: prefix where it's not necessary 2021-02-11 19:44:39 +01:00
Mathias Baumann
23ca9c4324 fixup! Impleme 2021-02-11 19:13:01 +01:00
Mathias Baumann
3838a3a29f fixup! Imp 2021-02-11 19:13:01 +01:00
Mathias Baumann
1bfc766139 Adjustments after rebase 2021-02-11 19:13:01 +01:00
Mathias Baumann
d6ab70c27d fixup! Implement 2021-02-11 19:13:00 +01:00
Mathias Baumann
c977c0cfd0 Implement a Function Call Graph 2021-02-11 16:53:01 +01:00
Mathias Baumann
3a8a74cbc7 OverrideSpecifier: Check for null before dereferencing 2021-02-04 13:17:28 +01:00
hrkrshnn
ec57c791ef Fix infinite loop when accessing circular constants from inline assembly. 2021-01-26 09:22:05 +01:00
Mathias Baumann
07a1d230cd Fix missing error when accessing unintialized variables. 2021-01-25 14:44:15 +01:00
chriseth
6eea2f5c08
Merge pull request #9959 from a3d4/fix-ice-struct-with-mapping-assignment
Fix ICE caused by const structs with mappings
2021-01-13 15:19:02 +01:00
a3d4
35a25b107f Fix ICE caused by const structs with mappings 2021-01-12 18:39:54 +01:00
chriseth
24aded266e Dereference. 2021-01-12 14:28:27 +01:00
chriseth
7487a7d927 Use drop_exactly. 2021-01-12 14:01:10 +01:00
chriseth
b9de0c6155 Use zip. 2021-01-11 20:54:28 +01:00
chriseth
b965446182 Catch panic. 2020-12-22 11:08:44 +01:00
Alex Beregszaszi
b14a6a10cc Report meaningful error if parsing a version pragma failed 2020-12-18 11:50:37 +00:00
hrkrshnn
f30c7cbac8 All explicit address conversions return a non-payable address 2020-12-14 18:41:27 +01:00
hrkrshnn
e1a95cfd42 Disallow conversions from literals to payable address
To get a payable address, one has to go through address. For example, `payable(address(0))`.
2020-12-14 16:55:48 +01:00
chriseth
e1e1337aca Move functions into anonymous namespace. 2020-12-14 14:18:03 +01:00
chriseth
561280a5cc Merge remote-tracking branch 'origin/develop' into breaking 2020-12-14 11:33:40 +01:00
Alex Beregszaszi
7b347b9ec2 Introduce address(...).code 2020-12-11 03:00:30 +00:00
Alex Beregszaszi
fa37e69c25 Improved error messages when converting to/from builtin functions 2020-12-10 22:38:15 +00:00
Alex Beregszaszi
bd641a5206 Enable more C++ compiler warnings 2020-12-10 21:03:58 +00:00
Alex Beregszaszi
7cd05bf603 Introduce block.chainid 2020-12-10 17:07:54 +00:00
chriseth
482bda6887 Merge remote-tracking branch 'origin/develop' into breaking 2020-12-10 12:15:52 +01:00
Mathias Baumann
37cc795034 Fix segfault for empty @return tags in modifiers 2020-12-10 11:54:40 +01:00
chriseth
3f748bbb94
Merge pull request #10336 from ethereum/enablecoderv2bydefault
[BREAKING] Enable ABI coder v2 by default.
2020-12-09 18:05:07 +01:00
chriseth
870fd24723
Merge pull request #9888 from ethereum/account-hash
Support address().codehash
2020-12-09 17:40:56 +01:00
Alex Beregszaszi
ad6739d0f6 Support address().codehash 2020-12-09 14:58:27 +00:00
chriseth
251f2a4d93 Fix bug in constant evaluator. 2020-12-09 15:50:53 +01:00
chriseth
d525a8bccb Enable ABI coder v2 by default. 2020-12-09 15:25:15 +01:00
chriseth
806453aca9 Merge remote-tracking branch 'origin/develop' into breaking 2020-12-08 21:00:09 +01:00
Alex Beregszaszi
7e88ba8da0 Enable the -Wconversion warning 2020-12-08 16:45:24 +00:00
Djordje Mijovic
acb93f3a97 Disallowing usage of msg.data in receive() function. 2020-12-08 11:49:20 +01:00
chriseth
a3c5d37d02 Merge remote-tracking branch 'origin/develop' into breaking 2020-12-07 17:13:48 +01:00
chriseth
254119d146
Merge pull request #10506 from ethereum/superInLibs
Make super unavailable in libraries.
2020-12-07 14:36:42 +01:00
chriseth
b86c91d1a3 Make super unavailable in libraries. 2020-12-07 13:59:50 +01:00
Alex Beregszaszi
1e2bfbd6b2 Enable the -Wextra-semi warning 2020-12-04 17:21:19 +01:00