[clang] [clang-format] Add BinPackBinaryOperations configuration (PR #95013)

Owen Pan via cfe-commits cfe-commits at lists.llvm.org
Wed Jul 10 00:39:47 PDT 2024


================
@@ -3153,6 +3153,15 @@ class ExpressionParser {
       parse(Precedence + 1);
 
       int CurrentPrecedence = getCurrentPrecedence();
+      if (!Style.BinPackBinaryOperations &&
+          (CurrentPrecedence > prec::Conditional) &&
+          (CurrentPrecedence < prec::PointerToMember)) {
----------------
owenca wrote:

Remove redundant parens.

https://github.com/llvm/llvm-project/pull/95013


More information about the cfe-commits mailing list