[clang] [llvm] Mac release fix (PR #163026)

via cfe-commits cfe-commits at lists.llvm.org
Tue Oct 14 11:45:43 PDT 2025


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 -- clang/lib/Driver/ToolChain.cpp clang/lib/Driver/ToolChains/Darwin.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/ToolChain.cpp b/clang/lib/Driver/ToolChain.cpp
index ac5ec0d1b..b8ea938d1 100644
--- a/clang/lib/Driver/ToolChain.cpp
+++ b/clang/lib/Driver/ToolChain.cpp
@@ -959,7 +959,7 @@ ToolChain::getTargetSubDirPath(StringRef BaseDir) const {
       [&](const llvm::Triple &Triple) -> std::optional<std::string> {
     SmallString<128> P(BaseDir);
     llvm::sys::path::append(P, Triple.str());
-  dbgs() << "getTargetSubDirPath: " << P << "\n";
+    dbgs() << "getTargetSubDirPath: " << P << "\n";
     if (getVFS().exists(P))
       return std::string(P);
     return {};
@@ -1035,7 +1035,7 @@ std::optional<std::string> ToolChain::getRuntimePath() const {
 std::optional<std::string> ToolChain::getStdlibPath() const {
   SmallString<128> P(D.Dir);
   if (Triple.isOSDarwin())
-  dbgs() << "getStdlibPath(): " << P << "\n";
+    dbgs() << "getStdlibPath(): " << P << "\n";
   llvm::sys::path::append(P, "..", "lib");
   // Darwin does not use per-target runtime directory.
   if (Triple.isOSDarwin())
@@ -1560,7 +1560,7 @@ void ToolChain::AddCXXStdlibLibArgs(const ArgList &Args,
 void ToolChain::AddFilePathLibArgs(const ArgList &Args,
                                    ArgStringList &CmdArgs) const {
   for (const auto &LibPath : getFilePaths()) {
-	  llvm::dbgs() << "LibPath: " << LibPath << "\n";
+    llvm::dbgs() << "LibPath: " << LibPath << "\n";
     if(LibPath.length() > 0)
       CmdArgs.push_back(Args.MakeArgString(StringRef("-L") + LibPath));
   }

``````````

</details>


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


More information about the cfe-commits mailing list