From 2803dba9801f8bd1b1f6b9b0f6d4361d5d0634e3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kamil=20=C5=9Aliwak?= Date: Thu, 5 Aug 2021 17:14:16 +0200 Subject: [PATCH] Add pragmas and SPDX comments to command-line tests to get cleaner error output --- .../combined_json_generated_sources/err | 5 --- .../combined_json_generated_sources/input.sol | 2 ++ test/cmdlineTests/dup_opt_peephole/err | 5 --- test/cmdlineTests/dup_opt_peephole/input.sol | 3 ++ test/cmdlineTests/dup_opt_peephole/output | 18 +++++----- .../keccak_optimization_low_runs/exit | 1 - test/cmdlineTests/message_format_utf8/err | 35 ++++++++----------- .../message_format_utf8/input.sol | 3 ++ .../model_checker_engine_none/err | 5 --- .../model_checker_engine_none/input.sol | 12 +++---- .../model_checker_targets_balance_chc/err | 2 -- .../input.sol | 8 +++-- .../err | 2 -- .../input.sol | 8 +++-- .../err | 2 -- .../input.sol | 8 +++-- .../model_checker_targets_pop_empty_bmc/err | 2 -- .../input.sol | 8 +++-- test/cmdlineTests/stdin/err | 5 --- test/cmdlineTests/stdin/stdin | 3 ++ test/cmdlineTests/too_long_line/err | 10 ++---- test/cmdlineTests/too_long_line/input.sol | 3 ++ .../too_long_line_both_sides_short/err | 10 ++---- .../too_long_line_both_sides_short/input.sol | 3 ++ test/cmdlineTests/too_long_line_edge_in/err | 10 ++---- .../too_long_line_edge_in/input.sol | 3 ++ test/cmdlineTests/too_long_line_edge_out/err | 10 ++---- .../too_long_line_edge_out/input.sol | 3 ++ .../cmdlineTests/too_long_line_left_short/err | 10 ++---- .../too_long_line_left_short/input.sol | 3 ++ test/cmdlineTests/too_long_line_multiline/err | 10 ++---- .../too_long_line_multiline/input.sol | 3 ++ .../too_long_line_right_short/err | 10 ++---- .../too_long_line_right_short/input.sol | 3 ++ 34 files changed, 95 insertions(+), 133 deletions(-) delete mode 100644 test/cmdlineTests/combined_json_generated_sources/err delete mode 100644 test/cmdlineTests/dup_opt_peephole/err delete mode 100644 test/cmdlineTests/keccak_optimization_low_runs/exit delete mode 100644 test/cmdlineTests/model_checker_engine_none/err delete mode 100644 test/cmdlineTests/model_checker_targets_balance_chc/err delete mode 100644 test/cmdlineTests/model_checker_targets_constant_condition_chc/err delete mode 100644 test/cmdlineTests/model_checker_targets_out_of_bounds_bmc/err delete mode 100644 test/cmdlineTests/model_checker_targets_pop_empty_bmc/err delete mode 100644 test/cmdlineTests/stdin/err diff --git a/test/cmdlineTests/combined_json_generated_sources/err b/test/cmdlineTests/combined_json_generated_sources/err deleted file mode 100644 index c6113508b..000000000 --- a/test/cmdlineTests/combined_json_generated_sources/err +++ /dev/null @@ -1,5 +0,0 @@ -Warning: SPDX license identifier not provided in source file. Before publishing, consider adding a comment containing "SPDX-License-Identifier: " to each source file. Use "SPDX-License-Identifier: UNLICENSED" for non-open-source code. Please see https://spdx.org for more information. ---> combined_json_generated_sources/input.sol - -Warning: Source file does not specify required compiler version! ---> combined_json_generated_sources/input.sol diff --git a/test/cmdlineTests/combined_json_generated_sources/input.sol b/test/cmdlineTests/combined_json_generated_sources/input.sol index b08878fb1..b99390dee 100644 --- a/test/cmdlineTests/combined_json_generated_sources/input.sol +++ b/test/cmdlineTests/combined_json_generated_sources/input.sol @@ -1,3 +1,5 @@ +// SPDX-License-Identifier: GPL-3.0 +pragma solidity >=0.0; pragma abicoder v2; contract C { diff --git a/test/cmdlineTests/dup_opt_peephole/err b/test/cmdlineTests/dup_opt_peephole/err deleted file mode 100644 index cfaa88dcf..000000000 --- a/test/cmdlineTests/dup_opt_peephole/err +++ /dev/null @@ -1,5 +0,0 @@ -Warning: SPDX license identifier not provided in source file. Before publishing, consider adding a comment containing "SPDX-License-Identifier: " to each source file. Use "SPDX-License-Identifier: UNLICENSED" for non-open-source code. Please see https://spdx.org for more information. ---> dup_opt_peephole/input.sol - -Warning: Source file does not specify required compiler version! ---> dup_opt_peephole/input.sol diff --git a/test/cmdlineTests/dup_opt_peephole/input.sol b/test/cmdlineTests/dup_opt_peephole/input.sol index 1474a8f44..c8752d4a1 100644 --- a/test/cmdlineTests/dup_opt_peephole/input.sol +++ b/test/cmdlineTests/dup_opt_peephole/input.sol @@ -1,3 +1,6 @@ +// SPDX-License-Identifier: GPL-3.0 +pragma solidity >=0.0; + contract C { fallback() external { assembly { diff --git a/test/cmdlineTests/dup_opt_peephole/output b/test/cmdlineTests/dup_opt_peephole/output index fec862428..593d330f8 100644 --- a/test/cmdlineTests/dup_opt_peephole/output +++ b/test/cmdlineTests/dup_opt_peephole/output @@ -1,7 +1,7 @@ ======= dup_opt_peephole/input.sol:C ======= EVM assembly: - /* "dup_opt_peephole/input.sol":0:111 contract C {... */ + /* "dup_opt_peephole/input.sol":60:171 contract C {... */ mstore(0x40, 0x80) callvalue dup1 @@ -23,7 +23,7 @@ tag_1: stop sub_0: assembly { - /* "dup_opt_peephole/input.sol":0:111 contract C {... */ + /* "dup_opt_peephole/input.sol":60:171 contract C {... */ mstore(0x40, 0x80) callvalue dup1 @@ -35,19 +35,19 @@ sub_0: assembly { revert tag_3: pop - /* "dup_opt_peephole/input.sol":74:75 0 */ + /* "dup_opt_peephole/input.sol":134:135 0 */ 0x00 - /* "dup_opt_peephole/input.sol":61:76 calldataload(0) */ + /* "dup_opt_peephole/input.sol":121:136 calldataload(0) */ calldataload - /* "dup_opt_peephole/input.sol":100:101 x */ + /* "dup_opt_peephole/input.sol":160:161 x */ dup1 - /* "dup_opt_peephole/input.sol":97:98 0 */ + /* "dup_opt_peephole/input.sol":157:158 0 */ 0x00 - /* "dup_opt_peephole/input.sol":90:102 sstore(0, x) */ + /* "dup_opt_peephole/input.sol":150:162 sstore(0, x) */ sstore - /* "dup_opt_peephole/input.sol":47:106 {... */ + /* "dup_opt_peephole/input.sol":107:166 {... */ pop - /* "dup_opt_peephole/input.sol":0:111 contract C {... */ + /* "dup_opt_peephole/input.sol":60:171 contract C {... */ stop auxdata: diff --git a/test/cmdlineTests/keccak_optimization_low_runs/exit b/test/cmdlineTests/keccak_optimization_low_runs/exit deleted file mode 100644 index 573541ac9..000000000 --- a/test/cmdlineTests/keccak_optimization_low_runs/exit +++ /dev/null @@ -1 +0,0 @@ -0 diff --git a/test/cmdlineTests/message_format_utf8/err b/test/cmdlineTests/message_format_utf8/err index e14ed61e9..58d45127c 100644 --- a/test/cmdlineTests/message_format_utf8/err +++ b/test/cmdlineTests/message_format_utf8/err @@ -1,36 +1,29 @@ -Warning: SPDX license identifier not provided in source file. Before publishing, consider adding a comment containing "SPDX-License-Identifier: " to each source file. Use "SPDX-License-Identifier: UNLICENSED" for non-open-source code. Please see https://spdx.org for more information. ---> message_format_utf8/input.sol - -Warning: Source file does not specify required compiler version! ---> message_format_utf8/input.sol - Warning: Statement has no effect. - --> message_format_utf8/input.sol:2:51: + --> message_format_utf8/input.sol:5:51: | -2 | /* ©©©©ᄅ©©©©© 2017 */ constructor () { unicode"©©©©ᄅ©©©©©" ; } +5 | /* ©©©©ᄅ©©©©© 2017 */ constructor () { unicode"©©©©ᄅ©©©©©" ; } | ^^^^^^^^^^^^^^^^^^^ Warning: Statement has no effect. - --> message_format_utf8/input.sol:6:25: + --> message_format_utf8/input.sol:9:25: | -6 | unicode"S = π × r²"; +9 | unicode"S = π × r²"; | ^^^^^^^^^^^^^^^^^^^ Warning: Statement has no effect. - --> message_format_utf8/input.sol:7:39: - | -7 | /* ₀₁₂₃₄⁵⁶⁷⁸⁹ */ unicode"∑ 1/n! ≈ 2.7"; // tabs in-between - | ^^^^^^^^^^^^^^^^^^^^^ + --> message_format_utf8/input.sol:10:39: + | +10 | /* ₀₁₂₃₄⁵⁶⁷⁸⁹ */ unicode"∑ 1/n! ≈ 2.7"; // tabs in-between + | ^^^^^^^^^^^^^^^^^^^^^ Warning: Statement has no effect. - --> message_format_utf8/input.sol:8:30: - | -8 | /* Ŀŏŗėɯ ïƥŝʉɱ */ unicode"μὴ χεῖρον βέλτιστον"; // tabs in-between and inside - | ^^^^^^^^^^ ^^^^^^ ^^^^^^^^^^ + --> message_format_utf8/input.sol:11:30: + | +11 | /* Ŀŏŗėɯ ïƥŝʉɱ */ unicode"μὴ χεῖρον βέλτιστον"; // tabs in-between and inside + | ^^^^^^^^^^ ^^^^^^ ^^^^^^^^^^ Warning: Function state mutability can be restricted to pure - --> message_format_utf8/input.sol:12:2: + --> message_format_utf8/input.sol:15:2: | -12 | function selector() public returns(uint) { // starts with tab +15 | function selector() public returns(uint) { // starts with tab | ^ (Relevant source part starts here and spans across multiple lines). - diff --git a/test/cmdlineTests/message_format_utf8/input.sol b/test/cmdlineTests/message_format_utf8/input.sol index faf18f139..d16aa8753 100644 --- a/test/cmdlineTests/message_format_utf8/input.sol +++ b/test/cmdlineTests/message_format_utf8/input.sol @@ -1,3 +1,6 @@ +// SPDX-License-Identifier: GPL-3.0 +pragma solidity >=0.0; + contract Foo { /* ©©©©ᄅ©©©©© 2017 */ constructor () { unicode"©©©©ᄅ©©©©©" ; } diff --git a/test/cmdlineTests/model_checker_engine_none/err b/test/cmdlineTests/model_checker_engine_none/err deleted file mode 100644 index 5b30ff59a..000000000 --- a/test/cmdlineTests/model_checker_engine_none/err +++ /dev/null @@ -1,5 +0,0 @@ -Warning: SPDX license identifier not provided in source file. Before publishing, consider adding a comment containing "SPDX-License-Identifier: " to each source file. Use "SPDX-License-Identifier: UNLICENSED" for non-open-source code. Please see https://spdx.org for more information. ---> model_checker_engine_none/input.sol - -Warning: Source file does not specify required compiler version! ---> model_checker_engine_none/input.sol diff --git a/test/cmdlineTests/model_checker_engine_none/input.sol b/test/cmdlineTests/model_checker_engine_none/input.sol index f1fb96386..6f361b952 100644 --- a/test/cmdlineTests/model_checker_engine_none/input.sol +++ b/test/cmdlineTests/model_checker_engine_none/input.sol @@ -1,8 +1,8 @@ -// Removed to yield a warning, otherwise CI test fails with the expectation -// "no output requested" -//pragma solidity >=0.0; +// SPDX-License-Identifier: GPL-3.0 +pragma solidity >=0.0; + contract test { - function f(uint x) public pure { + function f(uint x) public pure { assert(x > 0); - } -} \ No newline at end of file + } +} diff --git a/test/cmdlineTests/model_checker_targets_balance_chc/err b/test/cmdlineTests/model_checker_targets_balance_chc/err deleted file mode 100644 index e92707d91..000000000 --- a/test/cmdlineTests/model_checker_targets_balance_chc/err +++ /dev/null @@ -1,2 +0,0 @@ -Warning: SPDX license identifier not provided in source file. Before publishing, consider adding a comment containing "SPDX-License-Identifier: " to each source file. Use "SPDX-License-Identifier: UNLICENSED" for non-open-source code. Please see https://spdx.org for more information. ---> model_checker_targets_balance_chc/input.sol diff --git a/test/cmdlineTests/model_checker_targets_balance_chc/input.sol b/test/cmdlineTests/model_checker_targets_balance_chc/input.sol index 8ec052a21..4b521b3de 100644 --- a/test/cmdlineTests/model_checker_targets_balance_chc/input.sol +++ b/test/cmdlineTests/model_checker_targets_balance_chc/input.sol @@ -1,7 +1,9 @@ +// SPDX-License-Identifier: GPL-3.0 pragma solidity >=0.0; + contract test { uint[] arr; - function f(address payable a, uint x) public { + function f(address payable a, uint x) public { require(x >= 0); --x; x + type(uint).max; @@ -10,5 +12,5 @@ contract test { assert(x > 0); arr.pop(); arr[x]; - } -} \ No newline at end of file + } +} diff --git a/test/cmdlineTests/model_checker_targets_constant_condition_chc/err b/test/cmdlineTests/model_checker_targets_constant_condition_chc/err deleted file mode 100644 index b6290c6bd..000000000 --- a/test/cmdlineTests/model_checker_targets_constant_condition_chc/err +++ /dev/null @@ -1,2 +0,0 @@ -Warning: SPDX license identifier not provided in source file. Before publishing, consider adding a comment containing "SPDX-License-Identifier: " to each source file. Use "SPDX-License-Identifier: UNLICENSED" for non-open-source code. Please see https://spdx.org for more information. ---> model_checker_targets_constant_condition_chc/input.sol diff --git a/test/cmdlineTests/model_checker_targets_constant_condition_chc/input.sol b/test/cmdlineTests/model_checker_targets_constant_condition_chc/input.sol index 8ec052a21..4b521b3de 100644 --- a/test/cmdlineTests/model_checker_targets_constant_condition_chc/input.sol +++ b/test/cmdlineTests/model_checker_targets_constant_condition_chc/input.sol @@ -1,7 +1,9 @@ +// SPDX-License-Identifier: GPL-3.0 pragma solidity >=0.0; + contract test { uint[] arr; - function f(address payable a, uint x) public { + function f(address payable a, uint x) public { require(x >= 0); --x; x + type(uint).max; @@ -10,5 +12,5 @@ contract test { assert(x > 0); arr.pop(); arr[x]; - } -} \ No newline at end of file + } +} diff --git a/test/cmdlineTests/model_checker_targets_out_of_bounds_bmc/err b/test/cmdlineTests/model_checker_targets_out_of_bounds_bmc/err deleted file mode 100644 index b165198d1..000000000 --- a/test/cmdlineTests/model_checker_targets_out_of_bounds_bmc/err +++ /dev/null @@ -1,2 +0,0 @@ -Warning: SPDX license identifier not provided in source file. Before publishing, consider adding a comment containing "SPDX-License-Identifier: " to each source file. Use "SPDX-License-Identifier: UNLICENSED" for non-open-source code. Please see https://spdx.org for more information. ---> model_checker_targets_out_of_bounds_bmc/input.sol diff --git a/test/cmdlineTests/model_checker_targets_out_of_bounds_bmc/input.sol b/test/cmdlineTests/model_checker_targets_out_of_bounds_bmc/input.sol index 8ec052a21..4b521b3de 100644 --- a/test/cmdlineTests/model_checker_targets_out_of_bounds_bmc/input.sol +++ b/test/cmdlineTests/model_checker_targets_out_of_bounds_bmc/input.sol @@ -1,7 +1,9 @@ +// SPDX-License-Identifier: GPL-3.0 pragma solidity >=0.0; + contract test { uint[] arr; - function f(address payable a, uint x) public { + function f(address payable a, uint x) public { require(x >= 0); --x; x + type(uint).max; @@ -10,5 +12,5 @@ contract test { assert(x > 0); arr.pop(); arr[x]; - } -} \ No newline at end of file + } +} diff --git a/test/cmdlineTests/model_checker_targets_pop_empty_bmc/err b/test/cmdlineTests/model_checker_targets_pop_empty_bmc/err deleted file mode 100644 index 95a4225da..000000000 --- a/test/cmdlineTests/model_checker_targets_pop_empty_bmc/err +++ /dev/null @@ -1,2 +0,0 @@ -Warning: SPDX license identifier not provided in source file. Before publishing, consider adding a comment containing "SPDX-License-Identifier: " to each source file. Use "SPDX-License-Identifier: UNLICENSED" for non-open-source code. Please see https://spdx.org for more information. ---> model_checker_targets_pop_empty_bmc/input.sol diff --git a/test/cmdlineTests/model_checker_targets_pop_empty_bmc/input.sol b/test/cmdlineTests/model_checker_targets_pop_empty_bmc/input.sol index 8ec052a21..4b521b3de 100644 --- a/test/cmdlineTests/model_checker_targets_pop_empty_bmc/input.sol +++ b/test/cmdlineTests/model_checker_targets_pop_empty_bmc/input.sol @@ -1,7 +1,9 @@ +// SPDX-License-Identifier: GPL-3.0 pragma solidity >=0.0; + contract test { uint[] arr; - function f(address payable a, uint x) public { + function f(address payable a, uint x) public { require(x >= 0); --x; x + type(uint).max; @@ -10,5 +12,5 @@ contract test { assert(x > 0); arr.pop(); arr[x]; - } -} \ No newline at end of file + } +} diff --git a/test/cmdlineTests/stdin/err b/test/cmdlineTests/stdin/err deleted file mode 100644 index c5254f827..000000000 --- a/test/cmdlineTests/stdin/err +++ /dev/null @@ -1,5 +0,0 @@ -Warning: SPDX license identifier not provided in source file. Before publishing, consider adding a comment containing "SPDX-License-Identifier: " to each source file. Use "SPDX-License-Identifier: UNLICENSED" for non-open-source code. Please see https://spdx.org for more information. ---> - -Warning: Source file does not specify required compiler version! ---> diff --git a/test/cmdlineTests/stdin/stdin b/test/cmdlineTests/stdin/stdin index 2dde0d209..f123f6c8b 100644 --- a/test/cmdlineTests/stdin/stdin +++ b/test/cmdlineTests/stdin/stdin @@ -1 +1,4 @@ +// SPDX-License-Identifier: GPL-3.0 +pragma solidity >=0.0; + contract C {} diff --git a/test/cmdlineTests/too_long_line/err b/test/cmdlineTests/too_long_line/err index 802cac3cb..25620bd4c 100644 --- a/test/cmdlineTests/too_long_line/err +++ b/test/cmdlineTests/too_long_line/err @@ -1,11 +1,5 @@ -Warning: SPDX license identifier not provided in source file. Before publishing, consider adding a comment containing "SPDX-License-Identifier: " to each source file. Use "SPDX-License-Identifier: UNLICENSED" for non-open-source code. Please see https://spdx.org for more information. ---> too_long_line/input.sol - -Warning: Source file does not specify required compiler version! ---> too_long_line/input.sol - Error: Identifier not found or not unique. - --> too_long_line/input.sol:2:164: + --> too_long_line/input.sol:5:164: | -2 | ... ffffffffffffffffffffffffffffffffff(announcementType Type, string Announcement, string ... +5 | ... ffffffffffffffffffffffffffffffffff(announcementType Type, string Announcement, string ... | ^^^^^^^^^^^^^^^^ diff --git a/test/cmdlineTests/too_long_line/input.sol b/test/cmdlineTests/too_long_line/input.sol index 7df1057a9..c4be6acd9 100644 --- a/test/cmdlineTests/too_long_line/input.sol +++ b/test/cmdlineTests/too_long_line/input.sol @@ -1,3 +1,6 @@ +// SPDX-License-Identifier: GPL-3.0 +pragma solidity >=0.0; + contract C { function ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff(announcementType Type, string Announcement, string Link, bool Oppositable, string _str, uint256 _uint, address _addr) onlyOwner external { } diff --git a/test/cmdlineTests/too_long_line_both_sides_short/err b/test/cmdlineTests/too_long_line_both_sides_short/err index 131fab209..5992d6ea9 100644 --- a/test/cmdlineTests/too_long_line_both_sides_short/err +++ b/test/cmdlineTests/too_long_line_both_sides_short/err @@ -1,11 +1,5 @@ -Warning: SPDX license identifier not provided in source file. Before publishing, consider adding a comment containing "SPDX-License-Identifier: " to each source file. Use "SPDX-License-Identifier: UNLICENSED" for non-open-source code. Please see https://spdx.org for more information. ---> too_long_line_both_sides_short/input.sol - -Warning: Source file does not specify required compiler version! ---> too_long_line_both_sides_short/input.sol - Error: Identifier not found or not unique. - --> too_long_line_both_sides_short/input.sol:2:15: + --> too_long_line_both_sides_short/input.sol:5:15: | -2 | function f(announcementTypeXXXXXXXXXXXXXXXXXXX ... XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX Type, +5 | function f(announcementTypeXXXXXXXXXXXXXXXXXXX ... XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX Type, | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ diff --git a/test/cmdlineTests/too_long_line_both_sides_short/input.sol b/test/cmdlineTests/too_long_line_both_sides_short/input.sol index 062f02925..255a175cd 100644 --- a/test/cmdlineTests/too_long_line_both_sides_short/input.sol +++ b/test/cmdlineTests/too_long_line_both_sides_short/input.sol @@ -1,3 +1,6 @@ +// SPDX-License-Identifier: GPL-3.0 +pragma solidity >=0.0; + contract C { function f(announcementTypeXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX Type, string Announcement, string Link, bool Oppositable, string _str, uint256 _uint, address _addr) onlyOwner external { diff --git a/test/cmdlineTests/too_long_line_edge_in/err b/test/cmdlineTests/too_long_line_edge_in/err index 83cd670e1..1d96ea4cd 100644 --- a/test/cmdlineTests/too_long_line_edge_in/err +++ b/test/cmdlineTests/too_long_line_edge_in/err @@ -1,11 +1,5 @@ -Warning: SPDX license identifier not provided in source file. Before publishing, consider adding a comment containing "SPDX-License-Identifier: " to each source file. Use "SPDX-License-Identifier: UNLICENSED" for non-open-source code. Please see https://spdx.org for more information. ---> too_long_line_edge_in/input.sol - -Warning: Source file does not specify required compiler version! ---> too_long_line_edge_in/input.sol - Error: Identifier not found or not unique. - --> too_long_line_edge_in/input.sol:2:36: + --> too_long_line_edge_in/input.sol:5:36: | -2 | function ffffffffffffffffffffff(announcementTypeTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTT Ty, string A) onlyOwner external { +5 | function ffffffffffffffffffffff(announcementTypeTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTT Ty, string A) onlyOwner external { | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ diff --git a/test/cmdlineTests/too_long_line_edge_in/input.sol b/test/cmdlineTests/too_long_line_edge_in/input.sol index 6f181c832..1ab67a981 100644 --- a/test/cmdlineTests/too_long_line_edge_in/input.sol +++ b/test/cmdlineTests/too_long_line_edge_in/input.sol @@ -1,3 +1,6 @@ +// SPDX-License-Identifier: GPL-3.0 +pragma solidity >=0.0; + contract C { function ffffffffffffffffffffff(announcementTypeTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTT Ty, string A) onlyOwner external { } diff --git a/test/cmdlineTests/too_long_line_edge_out/err b/test/cmdlineTests/too_long_line_edge_out/err index 7d3b54f21..3b3b4ee49 100644 --- a/test/cmdlineTests/too_long_line_edge_out/err +++ b/test/cmdlineTests/too_long_line_edge_out/err @@ -1,11 +1,5 @@ -Warning: SPDX license identifier not provided in source file. Before publishing, consider adding a comment containing "SPDX-License-Identifier: " to each source file. Use "SPDX-License-Identifier: UNLICENSED" for non-open-source code. Please see https://spdx.org for more information. ---> too_long_line_edge_out/input.sol - -Warning: Source file does not specify required compiler version! ---> too_long_line_edge_out/input.sol - Error: Identifier not found or not unique. - --> too_long_line_edge_out/input.sol:2:37: + --> too_long_line_edge_out/input.sol:5:37: | -2 | ... function fffffffffffffffffffffff(announcementTypeTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTT Typ, string A) onlyOwner external ... +5 | ... function fffffffffffffffffffffff(announcementTypeTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTT Typ, string A) onlyOwner external ... | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ diff --git a/test/cmdlineTests/too_long_line_edge_out/input.sol b/test/cmdlineTests/too_long_line_edge_out/input.sol index 29d3cee60..e364a0dac 100644 --- a/test/cmdlineTests/too_long_line_edge_out/input.sol +++ b/test/cmdlineTests/too_long_line_edge_out/input.sol @@ -1,3 +1,6 @@ +// SPDX-License-Identifier: GPL-3.0 +pragma solidity >=0.0; + contract C { function fffffffffffffffffffffff(announcementTypeTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTT Typ, string A) onlyOwner external { } diff --git a/test/cmdlineTests/too_long_line_left_short/err b/test/cmdlineTests/too_long_line_left_short/err index 0f8c70e5a..4f2359739 100644 --- a/test/cmdlineTests/too_long_line_left_short/err +++ b/test/cmdlineTests/too_long_line_left_short/err @@ -1,11 +1,5 @@ -Warning: SPDX license identifier not provided in source file. Before publishing, consider adding a comment containing "SPDX-License-Identifier: " to each source file. Use "SPDX-License-Identifier: UNLICENSED" for non-open-source code. Please see https://spdx.org for more information. ---> too_long_line_left_short/input.sol - -Warning: Source file does not specify required compiler version! ---> too_long_line_left_short/input.sol - Error: Identifier not found or not unique. - --> too_long_line_left_short/input.sol:2:15: + --> too_long_line_left_short/input.sol:5:15: | -2 | function f(announcementType Type, string Announcement, string ... +5 | function f(announcementType Type, string Announcement, string ... | ^^^^^^^^^^^^^^^^ diff --git a/test/cmdlineTests/too_long_line_left_short/input.sol b/test/cmdlineTests/too_long_line_left_short/input.sol index 2accfcce6..6c53fdb46 100644 --- a/test/cmdlineTests/too_long_line_left_short/input.sol +++ b/test/cmdlineTests/too_long_line_left_short/input.sol @@ -1,3 +1,6 @@ +// SPDX-License-Identifier: GPL-3.0 +pragma solidity >=0.0; + contract C { function f(announcementType Type, string Announcement, string Link, bool Oppositable, string _str, uint256 _uint, address _addr) onlyOwner external { } diff --git a/test/cmdlineTests/too_long_line_multiline/err b/test/cmdlineTests/too_long_line_multiline/err index 6f5dcb71c..4523938c6 100644 --- a/test/cmdlineTests/too_long_line_multiline/err +++ b/test/cmdlineTests/too_long_line_multiline/err @@ -1,11 +1,5 @@ -Warning: SPDX license identifier not provided in source file. Before publishing, consider adding a comment containing "SPDX-License-Identifier: " to each source file. Use "SPDX-License-Identifier: UNLICENSED" for non-open-source code. Please see https://spdx.org for more information. ---> too_long_line_multiline/input.sol - Error: No visibility specified. Did you intend to add "public"? - --> too_long_line_multiline/input.sol:2:5: + --> too_long_line_multiline/input.sol:5:5: | -2 | function f() returns (bytes1 _b, by ... _b7, bytes22 _b22, bytes32 _b32) { +5 | function f() returns (bytes1 _b, by ... _b7, bytes22 _b22, bytes32 _b32) { | ^ (Relevant source part starts here and spans across multiple lines). - -Warning: Source file does not specify required compiler version! ---> too_long_line_multiline/input.sol diff --git a/test/cmdlineTests/too_long_line_multiline/input.sol b/test/cmdlineTests/too_long_line_multiline/input.sol index 107c6964b..585d87318 100644 --- a/test/cmdlineTests/too_long_line_multiline/input.sol +++ b/test/cmdlineTests/too_long_line_multiline/input.sol @@ -1,3 +1,6 @@ +// SPDX-License-Identifier: GPL-3.0 +pragma solidity >=0.0; + contract C { function f() returns (bytes1 _b, bytes2 _b2, bytes3 _b3, bytes memory _blit, bytes5 _b5, bytes6 _b6, string memory _str, bytes7 _b7, bytes22 _b22, bytes32 _b32) { _b = 0x12; diff --git a/test/cmdlineTests/too_long_line_right_short/err b/test/cmdlineTests/too_long_line_right_short/err index 6837dd8ab..7aa26ff07 100644 --- a/test/cmdlineTests/too_long_line_right_short/err +++ b/test/cmdlineTests/too_long_line_right_short/err @@ -1,11 +1,5 @@ -Warning: SPDX license identifier not provided in source file. Before publishing, consider adding a comment containing "SPDX-License-Identifier: " to each source file. Use "SPDX-License-Identifier: UNLICENSED" for non-open-source code. Please see https://spdx.org for more information. ---> too_long_line_right_short/input.sol - -Warning: Source file does not specify required compiler version! ---> too_long_line_right_short/input.sol - Error: Identifier not found or not unique. - --> too_long_line_right_short/input.sol:2:164: + --> too_long_line_right_short/input.sol:5:164: | -2 | ... ffffffffffffffffffffffffffffffffff(announcementType Type, +5 | ... ffffffffffffffffffffffffffffffffff(announcementType Type, | ^^^^^^^^^^^^^^^^ diff --git a/test/cmdlineTests/too_long_line_right_short/input.sol b/test/cmdlineTests/too_long_line_right_short/input.sol index 936b39613..8bf6a887a 100644 --- a/test/cmdlineTests/too_long_line_right_short/input.sol +++ b/test/cmdlineTests/too_long_line_right_short/input.sol @@ -1,3 +1,6 @@ +// SPDX-License-Identifier: GPL-3.0 +pragma solidity >=0.0; + contract C { function ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff(announcementType Type, string Announcement, string Link, bool Oppositable, string _str, uint256 _uint, address _addr) onlyOwner external {