[clang] [llvm] [workflows] Split pr-code-format into two parts to make it more secure (PR #78216)

via cfe-commits cfe-commits at lists.llvm.org
Fri Jan 19 22:30:42 PST 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 66786a79d6f622012879e94a92838449bf175a71 2ccc8284d479ddb8b4f8c5cce4a630b67616f269 -- clang/lib/Driver/ToolChain.cpp clang/test/CodeGen/dwarf-version.c clang/test/Driver/cl-options.c clang/test/Driver/clang-g-opts.c clang/test/Driver/ve-toolchain.c clang/test/Driver/ve-toolchain.cpp
``````````

</details>

<details>
<summary>
View the diff from clang-format here.
</summary>

``````````diff
diff --git a/clang/lib/Driver/ToolChain.cpp b/clang/lib/Driver/ToolChain.cpp
index 56c7d0e8db..0250ecdd54 100644
--- a/clang/lib/Driver/ToolChain.cpp
+++ b/clang/lib/Driver/ToolChain.cpp
@@ -427,9 +427,7 @@ ToolChain::getDefaultUnwindTableLevel(const ArgList &Args) const {
   return UnwindTableLevel::None;
 }
 
-unsigned ToolChain::GetDefaultDwarfVersion() const {
-  return 4;
-}
+unsigned ToolChain::GetDefaultDwarfVersion() const { return 4; }
 
 Tool *ToolChain::getClang() const {
   if (!Clang)

``````````

</details>


https://github.com/llvm/llvm-project/pull/78216


More information about the cfe-commits mailing list