Remove parenthesesPolicy, part 3 of N

This commit is contained in:
Nigel Tao committed 2018-05-14 20:48:31 +10:00
1 parent 0870643c77
commit 8071a2096c
3 files changed
+66 -76

No files matched your search

+1 -11
View File
@@ -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