[Openmp-commits] [openmp] [OpenMP] Allow to specify what plugins to look for (PR #74538)

via Openmp-commits openmp-commits at lists.llvm.org
Tue Dec 5 17:13:03 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:

You can test this locally with the following command:

git-clang-format --diff e68c265543722af32821eab2c77565d37079da47 0428f046c554dd7cb5dfaa71ee7c8f587ff0ca9f -- openmp/libomptarget/src/PluginManager.cpp


View the diff from clang-format here.

diff --git a/openmp/libomptarget/src/PluginManager.cpp b/openmp/libomptarget/src/PluginManager.cpp
index 873790e487..44549d6856 100644
--- a/openmp/libomptarget/src/PluginManager.cpp
+++ b/openmp/libomptarget/src/PluginManager.cpp
@@ -22,9 +22,7 @@ using namespace llvm::sys;
 PluginManager *PM;
 // List of all plugins that can support offloading.
-static const char *RTLNames[] = {
+static const char *RTLNames[] = {ENABLED_OFFLOAD_PLUGINS};
 PluginAdaptorTy::PluginAdaptorTy(const std::string &Name) : Name(Name) {
   DP("Attempting to load library '%s'...\n", Name.c_str());




More information about the Openmp-commits mailing list