[clang] [clang][driver] Add \<executable\>/../include/c++/v1 to include path on Darwin (PR #70817)
via cfe-commits
cfe-commits at lists.llvm.org
Fri Nov 10 02:18:08 PST 2023
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 49fd28d9601dde429436655ec74234e895c60b89 31b7482ffabda61c005a4cd90a07bcfec65c232e -- clang/lib/Driver/ToolChains/Darwin.cpp
``````````
</details>
<details>
<summary>
View the diff from clang-format here.
</summary>
``````````diff
diff --git a/clang/lib/Driver/ToolChains/Darwin.cpp b/clang/lib/Driver/ToolChains/Darwin.cpp
index d89b6d60f185..fa10400d8922 100644
--- a/clang/lib/Driver/ToolChains/Darwin.cpp
+++ b/clang/lib/Driver/ToolChains/Darwin.cpp
@@ -2472,7 +2472,8 @@ void DarwinClang::AddClangCXXStdlibIncludeArgs(
case ToolChain::CST_Libcxx: {
// On Darwin, libc++ can be installed in one of the following places:
// 1. Alongside the compiler in <install>/include/c++/v1
- // 2. Alongside the compiler in <clang-executable-location>/../include/c++/v1
+ // 2. Alongside the compiler in
+ // <clang-executable-location>/../include/c++/v1
// 3. In a SDK (or a custom sysroot) in <sysroot>/usr/include/c++/v1
//
// The precedence of paths is as listed above, i.e. we take the first path
``````````
</details>
https://github.com/llvm/llvm-project/pull/70817
More information about the cfe-commits
mailing list