[Lldb-commits] [lld] [llvm] [libcxx] [compiler-rt] [lldb] [lld-macho] Find objects in library search path (PR #78628)

via lldb-commits lldb-commits at lists.llvm.org
Fri Jan 19 08:40:55 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 5c150e7eeba9db13cc65b329b3c3537b613ae61d e5c118067bd049da924010b26fe420267567eade -- lld/MachO/Driver.cpp
``````````

</details>

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

``````````diff
diff --git a/lld/MachO/Driver.cpp b/lld/MachO/Driver.cpp
index 97937d5107..9985e1d805 100644
--- a/lld/MachO/Driver.cpp
+++ b/lld/MachO/Driver.cpp
@@ -90,7 +90,8 @@ static std::optional<StringRef> findLibrary(StringRef name) {
     return entry->second;
 
   auto doFind = [&] {
-    // Special case for Csu support files that are required for Mac OS X 10.7 and older (crt1.o)
+    // Special case for Csu support files that are required for Mac OS X 10.7
+    // and older (crt1.o)
     if (name.ends_with(".o"))
       return findPathCombination(name, config->librarySearchPaths, {""});
     if (config->searchDylibsFirst) {

``````````

</details>


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


More information about the lldb-commits mailing list