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,c,h --
clang/include/clang/CodeGen/CGFunctionInfo.h
clang/include/clang/CodeGen/CodeGenABITypes.h clang/lib/CodeGen/ABIInfo.h
clang/lib/CodeGen/CGCUDARuntime.cpp clang/lib/CodeGen/CGCall.cpp
clang/lib/CodeGen/CGClass.cpp clang/lib/CodeGen/CGDeclCXX.cpp
clang/lib/CodeGen/CGExpr.cpp clang/lib/CodeGen/CGExprCXX.cpp
clang/lib/CodeGen/CGExprComplex.cpp clang/lib/CodeGen/CGHLSLRuntime.cpp
clang/lib/CodeGen/CGObjCRuntime.cpp clang/lib/CodeGen/CGVTables.cpp
clang/lib/CodeGen/CodeGenABITypes.cpp clang/lib/CodeGen/CodeGenFunction.cpp
clang/lib/CodeGen/CodeGenFunction.h clang/lib/CodeGen/CodeGenTypes.h
clang/lib/CodeGen/ItaniumCXXABI.cpp clang/lib/CodeGen/MicrosoftCXXABI.cpp
clang/lib/CodeGen/Targets/X86.cpp clang/test/CodeGen/sysv_abi.c
clang/unittests/CodeGen/CodeGenExternalTest.cpp
clang/unittests/CodeGen/TestCompiler.h --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/include/clang/CodeGen/CGFunctionInfo.h
b/clang/include/clang/CodeGen/CGFunctionInfo.h
index 713b52a4c..e66eec737 100644
--- a/clang/include/clang/CodeGen/CGFunctionInfo.h
+++ b/clang/include/clang/CodeGen/CGFunctionInfo.h
@@ -19,8 +19,8 @@
#include "clang/AST/CharUnits.h"
#include "clang/AST/Decl.h"
#include "clang/AST/Type.h"
-#include "llvm/IR/DerivedTypes.h"
#include "llvm/ADT/FoldingSet.h"
+#include "llvm/IR/DerivedTypes.h"
#include "llvm/Support/TrailingObjects.h"
#include <cassert>
diff --git a/clang/lib/CodeGen/CGExpr.cpp b/clang/lib/CodeGen/CGExpr.cpp
index dd42e9550..54d4e8487 100644
--- a/clang/lib/CodeGen/CGExpr.cpp
+++ b/clang/lib/CodeGen/CGExpr.cpp
@@ -7140,8 +7140,8 @@ RValue CodeGenFunction::EmitCall(QualType CalleeType,
EmitCallArgs(Args, dyn_cast<FunctionProtoType>(FnType), Arguments,
E->getDirectCallee(), /*ParamsToSkip=*/0, Order);
- const CGFunctionInfo &FnInfo = CGM.getTypes().arrangeFreeFunctionCall(
- Args, FnType, /*ChainCall=*/Chain);
+ const CGFunctionInfo &FnInfo =
+ CGM.getTypes().arrangeFreeFunctionCall(Args, FnType,
/*ChainCall=*/Chain);
if (ResolvedFnInfo)
*ResolvedFnInfo = &FnInfo;
diff --git a/clang/lib/CodeGen/CGObjCRuntime.cpp
b/clang/lib/CodeGen/CGObjCRuntime.cpp
index 2b8bd170b..9d430ab6b 100644
--- a/clang/lib/CodeGen/CGObjCRuntime.cpp
+++ b/clang/lib/CodeGen/CGObjCRuntime.cpp
@@ -370,7 +370,7 @@ CGObjCRuntime::getMessageSendInfo(const ObjCMethodDecl
*method,
CGM.getTypes().arrangeObjCMessageSendSignature(method, callArgs[0].Ty);
const CGFunctionInfo &signatureForCall =
- CGM.getTypes().arrangeCall(signature, callArgs);
+ CGM.getTypes().arrangeCall(signature, callArgs);
return MessageSendInfo(signatureForCall, signatureType);
}
diff --git a/clang/lib/CodeGen/CGVTables.cpp b/clang/lib/CodeGen/CGVTables.cpp
index 9e4218646..383d3862c 100644
--- a/clang/lib/CodeGen/CGVTables.cpp
+++ b/clang/lib/CodeGen/CGVTables.cpp
@@ -386,7 +386,8 @@ void
CodeGenFunction::EmitCallAndReturnForThunk(llvm::FunctionCallee Callee,
CallArgs, FPT, RequiredArgs::forPrototypePlus(FPT, 1), PrefixArgs);
assert(CallFnInfo.getRegParm() == CurFnInfo->getRegParm() &&
CallFnInfo.isNoReturn() == CurFnInfo->isNoReturn() &&
- CallFnInfo.getCallingConvention() ==
CurFnInfo->getCallingConvention());
+ CallFnInfo.getCallingConvention() ==
+ CurFnInfo->getCallingConvention());
assert(isa<CXXDestructorDecl>(MD) || // ignore dtor return types
similar(CallFnInfo.getReturnInfo(), CallFnInfo.getReturnType(),
CurFnInfo->getReturnInfo(), CurFnInfo->getReturnType()));
diff --git a/clang/lib/CodeGen/CodeGenTypes.h b/clang/lib/CodeGen/CodeGenTypes.h
index 9de7e0a83..d3914f519 100644
--- a/clang/lib/CodeGen/CodeGenTypes.h
+++ b/clang/lib/CodeGen/CodeGenTypes.h
@@ -240,9 +240,9 @@ public:
const CGFunctionInfo &arrangeObjCMethodDeclaration(const ObjCMethodDecl *MD);
const CGFunctionInfo &arrangeObjCMessageSendSignature(const ObjCMethodDecl
*MD,
QualType receiverType);
- const CGFunctionInfo &arrangeUnprototypedObjCMessageSend(
- QualType returnType,
- const CallArgList &args);
+ const CGFunctionInfo &
+ arrangeUnprototypedObjCMessageSend(QualType returnType,
+ const CallArgList &args);
/// Block invocation functions are C functions with an implicit parameter.
const CGFunctionInfo &arrangeBlockFunctionDeclaration(
diff --git a/clang/unittests/CodeGen/CodeGenExternalTest.cpp
b/clang/unittests/CodeGen/CodeGenExternalTest.cpp
index 8824451cc..93a7cdd58 100644
--- a/clang/unittests/CodeGen/CodeGenExternalTest.cpp
+++ b/clang/unittests/CodeGen/CodeGenExternalTest.cpp
@@ -58,9 +58,7 @@ struct MyASTConsumer : public ASTConsumer {
std::vector<Decl*> toplevel_decls;
MyASTConsumer(std::unique_ptr<CodeGenerator> Builder_in)
- : ASTConsumer(), Builder(std::move(Builder_in))
- {
- }
+ : ASTConsumer(), Builder(std::move(Builder_in)) {}
~MyASTConsumer() { }
@@ -289,8 +287,8 @@ TEST(CodeGenExternalTest, CodeGenExternalTest) {
LO.CPlusPlus = 1;
LO.CPlusPlus11 = 1;
TestCompiler Compiler(LO);
- auto CustomASTConsumer
- = std::make_unique<MyASTConsumer>(std::move(Compiler.CG));
+ auto CustomASTConsumer =
+ std::make_unique<MyASTConsumer>(std::move(Compiler.CG));
Compiler.init(TestProgram, std::move(CustomASTConsumer));
``````````
</details>
https://github.com/llvm/llvm-project/pull/210303
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits