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 c,cpp,h --
clang/test/CodeGen/call-graph-section-templates.cpp
clang/test/CodeGen/call-graph-section-virtual-methods.cpp
clang/test/CodeGen/call-graph-section.c
clang/test/CodeGen/call-graph-section.cpp
clang/test/Driver/call-graph-section.c clang/lib/CodeGen/BackendUtil.cpp
clang/lib/CodeGen/CGCall.cpp clang/lib/CodeGen/CodeGenModule.cpp
clang/lib/CodeGen/CodeGenModule.h clang/lib/Driver/ToolChains/Clang.cpp
clang/lib/Driver/ToolChains/CommonArgs.cpp
``````````
: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/CodeGen/CodeGenModule.cpp
b/clang/lib/CodeGen/CodeGenModule.cpp
index 1e03e0b06..fdba3dd2f 100644
--- a/clang/lib/CodeGen/CodeGenModule.cpp
+++ b/clang/lib/CodeGen/CodeGenModule.cpp
@@ -3080,7 +3080,7 @@ void
CodeGenModule::createFunctionTypeMetadataForIcall(const FunctionDecl *FD,
// Add the generalized identifier if not added already.
if (!hasExistingGeneralizedTypeMD(F)) {
QualType GenPtrFnType = GeneralizeFunctionType(getContext(), FD->getType(),
- /*GeneralizePointers=*/true);
+
/*GeneralizePointers=*/true);
F->addTypeMetadata(0, CreateMetadataIdentifierGeneralized(GenPtrFnType));
}
``````````
</details>
https://github.com/llvm/llvm-project/pull/161598
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits