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/lib/Driver/ToolChains/FreeBSD.cpp clang/lib/Driver/ToolChains/FreeBSD.h 
clang/test/Driver/freebsd.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/Driver/ToolChains/FreeBSD.cpp 
b/clang/lib/Driver/ToolChains/FreeBSD.cpp
index 0d0142bdd..391ca6fea 100644
--- a/clang/lib/Driver/ToolChains/FreeBSD.cpp
+++ b/clang/lib/Driver/ToolChains/FreeBSD.cpp
@@ -518,13 +518,13 @@ std::string FreeBSD::getCompilerRT(const 
llvm::opt::ArgList &Args,
   if (Component == "builtins") {
     std::string DetectedPath =
         ToolChain::getCompilerRT(Args, Component, Type, IsFortran);
-       if (getVFS().exists(DetectedPath))
-               return DetectedPath;
+    if (getVFS().exists(DetectedPath))
+      return DetectedPath;
     SmallString<128> Path(getDriver().SysRoot);
     llvm::sys::path::append(Path, "/usr/lib/libgcc.a");
     if (getVFS().exists(Path))
       return std::string(Path);
-       return DetectedPath;
+    return DetectedPath;
   }
   return ToolChain::getCompilerRT(Args, Component, Type, IsFortran);
 }

``````````

</details>


https://github.com/llvm/llvm-project/pull/181972
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to