[clang] [clang][Interp] Merge ByteCodeExprGen and ByteCodeStmtGen (PR #83683)
via cfe-commits
cfe-commits at lists.llvm.org
Mon Mar 18 02:48:41 PDT 2024
Timm =?utf-8?q?Bäder?= <tbaeder at redhat.com>,
Timm =?utf-8?q?Bäder?= <tbaeder at redhat.com>
Message-ID:
In-Reply-To: <llvm.org/llvm/llvm-project/pull/83683 at github.com>
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 5143a1241362616840af826d18c067025dae1111 bac423c77cd62604f6bd27d258a91832fc0bc0d2 -- clang/lib/AST/Interp/Context.cpp clang/lib/AST/Interp/EvalEmitter.h clang/lib/AST/Interp/Program.cpp clang/test/AST/Interp/literals.cpp clang/lib/AST/Interp/Compiler.cpp clang/lib/AST/Interp/Compiler.h
``````````
</details>
<details>
<summary>
View the diff from clang-format here.
</summary>
``````````diff
diff --git a/clang/lib/AST/Interp/Compiler.cpp b/clang/lib/AST/Interp/Compiler.cpp
index 60d3d899d2..e04c04cd73 100644
--- a/clang/lib/AST/Interp/Compiler.cpp
+++ b/clang/lib/AST/Interp/Compiler.cpp
@@ -1815,8 +1815,7 @@ bool Compiler<Emitter>::VisitTypeTraitExpr(const TypeTraitExpr *E) {
}
template <class Emitter>
-bool Compiler<Emitter>::VisitArrayTypeTraitExpr(
- const ArrayTypeTraitExpr *E) {
+bool Compiler<Emitter>::VisitArrayTypeTraitExpr(const ArrayTypeTraitExpr *E) {
if (DiscardResult)
return true;
return this->emitConst(E->getValue(), E);
@@ -2290,8 +2289,7 @@ bool Compiler<Emitter>::VisitPseudoObjectExpr(const PseudoObjectExpr *E) {
}
template <class Emitter>
-bool Compiler<Emitter>::VisitPackIndexingExpr(
- const PackIndexingExpr *E) {
+bool Compiler<Emitter>::VisitPackIndexingExpr(const PackIndexingExpr *E) {
return this->delegate(E->getSelectedExpr());
}
@@ -3815,8 +3813,7 @@ bool Compiler<Emitter>::VisitUnaryOperator(const UnaryOperator *E) {
}
template <class Emitter>
-bool Compiler<Emitter>::VisitComplexUnaryOperator(
- const UnaryOperator *E) {
+bool Compiler<Emitter>::VisitComplexUnaryOperator(const UnaryOperator *E) {
const Expr *SubExpr = E->getSubExpr();
assert(SubExpr->getType()->isAnyComplexType());
@@ -4129,9 +4126,8 @@ bool Compiler<Emitter>::emitComplexBoolCast(const Expr *E) {
}
template <class Emitter>
-bool Compiler<Emitter>::emitComplexComparison(const Expr *LHS,
- const Expr *RHS,
- const BinaryOperator *E) {
+bool Compiler<Emitter>::emitComplexComparison(const Expr *LHS, const Expr *RHS,
+ const BinaryOperator *E) {
assert(E->isComparisonOp());
assert(!Initializing);
assert(!DiscardResult);
``````````
</details>
https://github.com/llvm/llvm-project/pull/83683
More information about the cfe-commits
mailing list