Skip to content

Commit 33fc0ba

Browse files
committed
format code
1 parent 7b5a0e0 commit 33fc0ba

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

source/slang/slang-emit-c-like.cpp

+6-6
Original file line numberDiff line numberDiff line change
@@ -708,7 +708,7 @@ void CLikeSourceEmitter::emitLivenessImpl(IRInst* inst)
708708

709709
static bool isBitLogicalOrRelationalOrEquality(EPrecedence prec)
710710
{
711-
switch(prec)
711+
switch (prec)
712712
{
713713
case EPrecedence::kEPrecedence_And_Left:
714714
case EPrecedence::kEPrecedence_And_Right:
@@ -745,12 +745,12 @@ bool CLikeSourceEmitter::maybeEmitParens(EmitOpInfo& outerPrec, const EmitOpInfo
745745
// of the operations. We emit parentheses to avoid the warnings.
746746
//
747747

748-
if (isBitLogicalOrRelationalOrEquality(prec.leftPrecedence) &&
748+
if (isBitLogicalOrRelationalOrEquality(prec.leftPrecedence) &&
749749
(outerPrec.leftPrecedence > kEPrecedence_Assign_Left))
750-
needParens = true;
751-
if (isBitLogicalOrRelationalOrEquality(outerPrec.leftPrecedence) ||
752-
isBitLogicalOrRelationalOrEquality(outerPrec.rightPrecedence))
753-
needParens = true;
750+
needParens = true;
751+
if (isBitLogicalOrRelationalOrEquality(outerPrec.leftPrecedence) ||
752+
isBitLogicalOrRelationalOrEquality(outerPrec.rightPrecedence))
753+
needParens = true;
754754

755755
if (needParens)
756756
{

0 commit comments

Comments
 (0)