1
0
Fork 0
mirror of https://github.com/ton-blockchain/ton synced 2025-03-09 15:40:10 +00:00
ton/crypto/func
Aleksandr Kirsanov 79721d230e
[FunC] Require parenthesis in tricky bitwise precedence cases
Example: "flags & 0xFF != 0" is equivalent to "flags & 1",
most likely it's unexpected.
Example: "a << 2 + 1" (equal to "a << 3", probably unexpected).

The only way to suppress this error for the programmer
is to use parenthesis.
2024-06-22 01:49:27 +03:00
..
auto-tests [FunC] Require parenthesis in tricky bitwise precedence cases 2024-06-22 01:49:27 +03:00
abscode.cpp [FunC] Forbid impure operations inside pure functions 2024-06-14 15:22:58 +03:00
analyzer.cpp [FunC] Forbid impure operations inside pure functions 2024-06-14 15:22:58 +03:00
asmops.cpp [FunC] Auto-inline functions-wrappers T f(...args) { return anotherF(...args); } 2024-06-14 15:22:57 +03:00
builtins.cpp [FunC] Fix a bug with << operator to zero value 2024-06-21 15:40:39 +03:00
codegen.cpp [FunC] Auto-inline functions-wrappers T f(...args) { return anotherF(...args); } 2024-06-14 15:22:57 +03:00
func-main.cpp [FunC] Use td::OptionParser in func-main.cpp 2024-06-14 15:22:58 +03:00
func.cpp [FunC] Deprecate pragma compute-asm-ltr 2024-06-14 15:22:58 +03:00
func.h [FunC] Require parenthesis in tricky bitwise precedence cases 2024-06-22 01:49:27 +03:00
gen-abscode.cpp [FunC] Refactor allow-post-modification, stop producing disabled Op::_Let 2024-06-14 15:22:58 +03:00
keywords.cpp [FunC] Deprecate method_id specifier, introduce get keyword 2024-06-14 15:22:59 +03:00
optimize.cpp FunC: enable asserts and fix try/catch stack corruption (#699) 2023-05-15 15:31:42 +03:00
parse-func.cpp [FunC] Require parenthesis in tricky bitwise precedence cases 2024-06-22 01:49:27 +03:00
stack-transform.cpp FunC: enable asserts and fix try/catch stack corruption (#699) 2023-05-15 15:31:42 +03:00
unify-types.cpp [FunC] Auto-inline functions-wrappers T f(...args) { return anotherF(...args); } 2024-06-14 15:22:57 +03:00