[clang] [clang][AIX] set OpenMP include path (PR #88545)

via cfe-commits cfe-commits at lists.llvm.org
Fri Apr 12 10:59:13 PDT 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 01d9528ef989610e968386ea1f270698015d2410 4be38409fa322765c21a94759a78a23700e1a54d -- clang/lib/Driver/ToolChains/AIX.cpp clang/lib/Driver/ToolChains/AIX.h clang/test/Driver/aix-toolchain-include.cpp
``````````

</details>

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

``````````diff
diff --git a/clang/lib/Driver/ToolChains/AIX.cpp b/clang/lib/Driver/ToolChains/AIX.cpp
index f1ad65884d..c1b350893b 100644
--- a/clang/lib/Driver/ToolChains/AIX.cpp
+++ b/clang/lib/Driver/ToolChains/AIX.cpp
@@ -366,12 +366,13 @@ void AIX::AddOpenMPIncludeArgs(const ArgList &DriverArgs,
                                ArgStringList &CC1Args) const {
   // Add OpenMP include paths if -fopenmp is specified.
   if (DriverArgs.hasFlag(options::OPT_fopenmp, options::OPT_fopenmp_EQ,
-                   options::OPT_fno_openmp, false)) {
+                         options::OPT_fno_openmp, false)) {
     SmallString<128> PathOpenMP;
     switch (getDriver().getOpenMPRuntime(DriverArgs)) {
     case Driver::OMPRT_OMP:
       PathOpenMP = GetHeaderSysroot(DriverArgs);
-      llvm::sys::path::append(PathOpenMP, "opt/IBM/openxlCSDK", "include", "openmp");
+      llvm::sys::path::append(PathOpenMP, "opt/IBM/openxlCSDK", "include",
+                              "openmp");
       addSystemInclude(DriverArgs, CC1Args, PathOpenMP.str());
       break;
     case Driver::OMPRT_IOMP5:

``````````

</details>


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


More information about the cfe-commits mailing list