github-actions[bot] wrote:

<!--LLVM CODE FORMAT COMMENT: {clang-format}-->


:warning: C/C++ code formatter, clang-format found issues in your code. 
:warning:

<details>
<summary>
You can test this locally with the following command:
</summary>

``````````bash
git-clang-format --diff origin/main HEAD --extensions h,c -- 
clang/include/clang/StaticAnalyzer/Core/PathSensitive/SMTConv.h 
clang/test/Analysis/z3-unarysymexpr.c
``````````

:warning:
The reproduction instructions above might return results for more than one PR
in a stack if you are using a stacked PR workflow. You can limit the results by
changing `origin/main` to the base branch/commit you want to compare against.
:warning:

</details>

<details>
<summary>
View the diff from clang-format here.
</summary>

``````````diff
diff --git a/clang/include/clang/StaticAnalyzer/Core/PathSensitive/SMTConv.h 
b/clang/include/clang/StaticAnalyzer/Core/PathSensitive/SMTConv.h
index cbd41ebed..7f25223d2 100644
--- a/clang/include/clang/StaticAnalyzer/Core/PathSensitive/SMTConv.h
+++ b/clang/include/clang/StaticAnalyzer/Core/PathSensitive/SMTConv.h
@@ -460,12 +460,12 @@ public:
               dyn_cast<BinarySymExpr>(USE->getOperand())) {
         if (USE->getOpcode() == UO_Minus &&
             BinaryOperator::isComparisonOp(BSE->getOpcode()))
-            // The comparison operator yields a boolean value in the Z3
-            // language and applying the unary minus operator on a boolean
-            // crashes Z3. However, the unary minus does nothing in this
-            // context (a number is truthy if and only if its negative is
-            // truthy), so let's just ignore the unary minus.
-            // TODO: Replace this with a more general solution.
+          // The comparison operator yields a boolean value in the Z3
+          // language and applying the unary minus operator on a boolean
+          // crashes Z3. However, the unary minus does nothing in this
+          // context (a number is truthy if and only if its negative is
+          // truthy), so let's just ignore the unary minus.
+          // TODO: Replace this with a more general solution.
           return OperandExp;
       }
 

``````````

</details>


https://github.com/llvm/llvm-project/pull/158276
_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to