mirror of
https://github.com/ddidderr/wuffs.git
synced 2026-11-26 09:01:35 +01:00
Remove parenthesesPolicy, part 3 of N
This commit is contained in:
1 parent
0870643c77
commit
8071a2096c
3 files changed
+66
-76
No files matched your search
@@ -127,17 +127,7 @@ const (
|
||||
replaceCallSuspendibles = replacementPolicy(true)
|
||||
)
|
||||
|
||||
// parenthesesPolicy controls whether to print the outer parentheses in an
|
||||
// expression like "(x + y)". An "if" or "while" will print their own
|
||||
// parentheses for "if (expr)" because they need to be able to say "if (x)".
|
||||
// But a double-parenthesized expression like "if ((x == y))" is a clang
|
||||
// warning (-Wparentheses-equality) and we like to compile with -Wall -Werror.
|
||||
type parenthesesPolicy bool
|
||||
|
||||
const (
|
||||
parenthesesMandatory = parenthesesPolicy(false)
|
||||
parenthesesOptional = parenthesesPolicy(true)
|
||||
)
|
||||
const parenthesesMandatory = true
|
||||
|
||||
type visibility uint32
|
||||
|
||||
|
||||
Reference in new issue
Block a user