[clang] [clang][Sema] Re-use existing BinaryOperator if possible (PR #90625)
via cfe-commits
cfe-commits at lists.llvm.org
Tue Apr 30 09:56:12 PDT 2024
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 97069a86193a617a9e4cf742a29db6116b2bf449 24eb4db70e296d6454bac4c84a5bbc47e638876f -- clang/lib/Sema/SemaExpr.cpp clang/test/CXX/drs/dr7xx.cpp
``````````
</details>
<details>
<summary>
View the diff from clang-format here.
</summary>
``````````diff
diff --git a/clang/lib/Sema/SemaExpr.cpp b/clang/lib/Sema/SemaExpr.cpp
index 27733cd857..5588128b30 100644
--- a/clang/lib/Sema/SemaExpr.cpp
+++ b/clang/lib/Sema/SemaExpr.cpp
@@ -19708,7 +19708,7 @@ static ExprResult rebuildPotentialResultsAsNonOdrUsed(Sema &S, Expr *E,
if (!Sub.isUsable())
return Sub;
BO->setLHS(Sub.get());
- // -- If e is a comma expression, ...
+ // -- If e is a comma expression, ...
} else if (BO->getOpcode() == BO_Comma) {
ExprResult Sub = Rebuild(RHS);
if (!Sub.isUsable())
``````````
</details>
https://github.com/llvm/llvm-project/pull/90625
More information about the cfe-commits
mailing list