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 cpp,h --
clang/test/CodeGenCXX/aggregate-default-member-initializers.cpp
clang/test/SemaCXX/aggregate-default-member-initializers.cpp
clang/include/clang/Sema/Sema.h clang/lib/AST/ByteCode/Compiler.cpp
clang/lib/AST/ByteCode/Compiler.h clang/lib/Sema/SemaDeclCXX.cpp
clang/lib/Sema/SemaExpr.cpp clang/lib/Sema/SemaInit.cpp
clang/lib/Sema/TreeTransform.h clang/test/AST/ByteCode/records.cpp
clang/test/AST/ast-dump-default-init.cpp clang/test/AST/ast-dump-recovery.cpp
clang/test/Analysis/lifetime-extended-regions.cpp
clang/test/SemaCXX/cxx2c-placeholder-vars.cpp
clang/unittests/AST/ASTExprTest.cpp --diff_from_common_commit
``````````
: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/lib/Sema/TreeTransform.h b/clang/lib/Sema/TreeTransform.h
index 0e13a20c7..3c52a9739 100644
--- a/clang/lib/Sema/TreeTransform.h
+++ b/clang/lib/Sema/TreeTransform.h
@@ -15244,8 +15244,7 @@
TreeTransform<Derived>::TransformCXXDefaultInitExpr(CXXDefaultInitExpr *E) {
if (E->hasRewrittenInit()) {
// The initializer can refer to `this` and to other members, so it has to
// be transformed in the scope of the field's class.
- Sema::CXXThisScopeRAII ThisScope(SemaRef, Field->getParent(),
- Qualifiers());
+ Sema::CXXThisScopeRAII ThisScope(SemaRef, Field->getParent(),
Qualifiers());
InitRes = getDerived().TransformExpr(E->getRewrittenExpr());
if (InitRes.isInvalid())
return ExprError();
``````````
</details>
https://github.com/llvm/llvm-project/pull/219288
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits