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 h,cpp --
clang/tools/clang-fuzzer/handle-llvm/handle_llvm.cpp
llvm/include/llvm/CodeGen/CommandFlags.h llvm/lib/CodeGen/CommandFlags.cpp
llvm/tools/llc/llc.cpp llvm/tools/llvm-opt-fuzzer/llvm-opt-fuzzer.cpp
llvm/tools/opt/optdriver.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/llvm/lib/CodeGen/CommandFlags.cpp
b/llvm/lib/CodeGen/CommandFlags.cpp
index 2f215c9f0..403fd49c5 100644
--- a/llvm/lib/CodeGen/CommandFlags.cpp
+++ b/llvm/lib/CodeGen/CommandFlags.cpp
@@ -648,8 +648,8 @@ codegen::InitTargetOptionsFromCodeGenFlags(const Triple
&TheTriple) {
std::string codegen::getCPUStr() {
std::string MCPU = getMCPU();
- // If user asked for the 'native' CPU, autodetect here. If auto-detection
fails,
- // this will set the CPU to an empty string which tells the target to
+ // If user asked for the 'native' CPU, autodetect here. If auto-detection
+ // fails, this will set the CPU to an empty string which tells the target to
// pick a basic default.
if (MCPU == "native")
return std::string(sys::getHostCPUName());
``````````
</details>
https://github.com/llvm/llvm-project/pull/186998
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits