Commit Graph

22459 Commits

Author SHA1 Message Date
Kamil Śliwak
800088e38b
Merge pull request #13128 from CJ42/docs/assembly-memory-safe
docs: specify memory-safe is available since 0.8.13 for inline assembly
2022-07-14 21:58:45 +02:00
CJ42
ac5c26bbe9 docs: specifiy memory-safe in inline assembly is available since 0.8.13 2022-07-14 21:14:53 +02:00
chriseth
f5f77a0833
Merge pull request #13276 from ethereum/resolvingFlags
Settings struct for name resolution.
2022-07-14 18:21:24 +02:00
chriseth
e2675002ca Settings struct for name resolution. 2022-07-14 17:22:17 +02:00
Christian Parpart
454603e170
Merge pull request #13273 from ethereum/lsp-ci-trace
lsp.py: Pass trace option during initialization already.
2022-07-13 20:13:31 +02:00
chriseth
8cb12877bb
Merge pull request #13261 from ethereum/onlyAnalyzeMemoryIfNeeded
Only analyze memory in DataFlowAnalyzer if it is needed in the optimizer step.
2022-07-13 17:59:59 +02:00
chriseth
d30fef0ff2
Merge pull request #13272 from maxisch/patch-1
Modular Contracts typo fix
2022-07-13 17:59:25 +02:00
Christian Parpart
ed039abb97
Merge pull request #13274 from ethereum/lsp-fix-include-path
lsp: Fixes initialization phase if `include-paths` was not set at all then also no error should be generated.
2022-07-13 17:13:58 +02:00
Christian Parpart
5aeb80ec3c lsp.py: Pass trace option during initialization already. 2022-07-13 16:41:30 +02:00
Christian Parpart
eb5a33273e lsp: Fixes initialization phase if include-paths was not set at all, then also no error should be generated. 2022-07-13 16:29:33 +02:00
Christian Parpart
f686294374
Merge pull request #12994 from ethereum/lsp-include-path
LSP to resolve custom include paths (e.g. Hardhat)
2022-07-13 14:41:41 +02:00
maxisch
5567e30196
Modular Contracts typo fix 2022-07-13 09:02:29 -03:00
Christian Parpart
d89008da0a lsp: Adding test for custom include paths. 2022-07-13 13:57:04 +02:00
Christian Parpart
31227e442e lsp: Adds support for include paths and have {projectUri}/node_modules added by default.
- Factor out FileRepository's path resolving into own public function.
- Fixes sourceUnitNameToUri() path resolving in relation to include paths being used.
- Adding an solAssert().
- adds nother test for include-paths (bad include)
- Fixes a case on Windows there an ill-formed URI was generated.
- Dropping unnecessary if-branch when translating from sourceUnitName to URI.
2022-07-12 15:25:33 +02:00
Christian Parpart
d003400cb0
Merge pull request #13263 from ethereum/fix/lsp-checker-to-not-bail-on-missing-response
lsp: Fixes lsp.py to not bail out when no response is expected.
2022-07-12 15:16:26 +02:00
Christian Parpart
5918955615 lsp: Fixes lsp.py to not bail out when no response is expected.
This is required for another PR to support sending notifications as part of the I/O being documented as comments.
2022-07-12 14:35:14 +02:00
chriseth
c12d151834 Only analyze memory in DataFlowAnalyzer if it is needed in the optimizer step. 2022-07-11 15:51:25 +02:00
Mathias L. Baumann
e7c5f04464
Merge pull request #12681 from devtooligan/tweak/update-max-line-length
tweak: update maximum line length
2022-07-11 12:57:53 +02:00
Richie
db2b066d40
tweak: update maximum line length 2022-07-08 11:41:51 -07:00
Mathias L. Baumann
8d6b20f763
Merge pull request #13103 from ethereum/lsp-rename
Lsp rename feature
2022-07-08 15:01:37 +02:00
Damian Wechman
5d90dd1982
Merge pull request #13255 from vdusart/patch-1
[Docs] Fix operator docs to use an actually convertible type when describing how common type is chosen
2022-07-08 13:55:49 +02:00
Marenz
16b64f3aee LSP rename 2022-07-08 11:52:45 +02:00
vdusart
f012a77980
Fix mistake 2022-07-07 13:48:20 +02:00
vdusart
eb6b1291b7
Fix type error
Fix type error according to #13144
2022-07-07 13:41:33 +02:00
matheusaaguiar
b6f11b3392
Merge pull request #13244 from ethereum/remove-code-snippets-from-error-import-ast-mode
Removed wrong code snippets from error messages when in import-ast mode.
2022-07-06 16:25:43 -03:00
Matheus Aguiar
a73bf9136c Remove "garbage" code snippet from error message when in import-ast mode. 2022-07-06 13:43:29 -03:00
Mathias L. Baumann
b2ac0dada4
Merge pull request #13210 from timweri/display_human_readable_type_name_in_conversion
Display human readable type name in error messages
2022-07-06 17:31:53 +02:00
Duc Thanh Nguyen
e0ba7ef0d3 Rename _short in toString to _withoutDataLocation 2022-07-06 10:49:58 -04:00
Duc Thanh Nguyen
0a14368315 Display human readable type name in conversion error message 2022-07-06 10:49:51 -04:00
Mathias L. Baumann
b02f64818b
Merge pull request #13096 from victorknox/develop
Moved Keywords section from 'Cheatsheet' to 'Units and Globally Available Variables'
2022-07-06 15:30:36 +02:00
Mathias L. Baumann
45f5616b12
Merge pull request #12679 from devtooligan/tweak/expand-collide-definition
tweak: expand definition of suggested collision naming convention
2022-07-06 15:04:40 +02:00
Kamil Śliwak
4c85cb880e
Merge pull request #13238 from ethereum/improve-stack-too-deep-message
Improved stack too deep message when compiled without --optimize
2022-07-06 12:43:36 +02:00
Kamil Śliwak
3bc68139fd
Merge pull request #13250 from timweri/update_rangev3_to_0.12.0
Update rangev3 to 0.12.0
2022-07-06 12:38:55 +02:00
Duc Thanh Nguyen
2215b6d44b Update rangev3 to 0.12.0 2022-07-05 15:55:12 -04:00
Mathias L. Baumann
c8aed8c150
Merge pull request #13205 from ethereum/fix-stack-overflow-importing-large-AST-json-file
Fix segmentation fault when  importing large AST from json file
2022-07-05 18:56:38 +02:00
Matheus Aguiar
290bd4fd2d Added a flag to record when a source is reconstructed from JSON so garbage code snippets are not printed after source location. 2022-07-05 11:41:24 -03:00
Kamil Śliwak
a53f15f45f
Merge pull request #13240 from derekg/test-fix
Fix C++ compilation errors on 32-bit Raspbian due to `unsigned` -> `int` conversion
2022-07-04 22:08:06 +02:00
Mathias L. Baumann
d4e2c2cc89
Merge pull request #13185 from ethereum/functionCall_locations
Add location for parameter names in FunctionCall ASTNode
2022-07-04 16:40:45 +02:00
Derek Gottfrid
3f62ab069c fix test w/ signed issues 2022-07-03 16:33:22 -04:00
hrkrshnn
0b2a670a94 Improved stack too deep message when compiled without --optimize 2022-07-03 14:03:00 +02:00
matheusaaguiar
5de5120497
Merge pull request #13105 from CJ42/docs/address-conversion
docs: add notice about `address` conversion prior to 0.8.0
2022-07-01 10:26:38 -03:00
CJ42
e4d3425ad9 docs: add uint160 type in address conversion section
docs: add notice for uint conversion before 0.8.0

docs: edit sentence structure + remove 'result in `address payable`'

docs: add keyword 'explicitly' to be more specific for `address payable`

docs: edit notice uint to address conversion change since 0.8.0

Co-authored-by: Kamil Śliwak <cameel2@gmail.com>
2022-07-01 09:43:24 -03:00
Mathias L. Baumann
48669b4bec
Merge pull request #13219 from ethereum/whiskers
Add whiskers test for weird case
2022-06-30 17:45:54 +02:00
Mathias L. Baumann
4e721273ed
Merge pull request #13220 from fulldecent/patch-26
Update naming of Mainnet
2022-06-30 17:41:29 +02:00
Alex Beregszaszi
cae1571aa7 Add whiskers test for weird case 2022-06-30 17:00:23 +02:00
William Entriken
2a957413d0 Update naming of Mainnet 2022-06-30 16:47:11 +02:00
Mathias L. Baumann
05496064fe
Merge pull request #13189 from ethereum/fix-externalTests-script
Enabled external tests to use relative paths to solc binary.
2022-06-29 19:46:00 +02:00
Mathias L. Baumann
b988d3ed37
Merge pull request #13184 from ethereum/memberAccess_locations
Add location for member in MemberAccess ASTNode
2022-06-29 19:25:57 +02:00
Matheus Aguiar
5b8a9509fc Enable each external script to work with solc binary relative path. 2022-06-29 13:55:21 -03:00
Mathias L. Baumann
2e334c30ae
Merge pull request #13229 from ethereum/temp-fix-ext
Fix external test ens
2022-06-29 18:54:26 +02:00