[llvm] [libsycl] USM Aligned allocation functions (PR #213468)
Dmitry Rogozhkin via llvm-commits
llvm-commits at lists.llvm.org
Fri Aug 21 09:55:12 PDT 2026
================
@@ -0,0 +1,185 @@
+#include <mock/helpers.hpp>
+
+#include <sycl/__impl/device.hpp>
+#include <sycl/__impl/queue.hpp>
+#include <sycl/__impl/usm_functions.hpp>
+
+#include <detail/device_impl.hpp>
+#include <detail/queue_impl.hpp>
+
+#include <cstddef>
+#include <gmock/gmock.h>
+#include <gtest/gtest.h>
+
+using namespace sycl;
----------------
dvrogozh wrote:
That might be my preference, but I highly dislike `using namespace` helpers. These obfuscate definitions giving a headache to understand where symbols are coming from. I would strongly prefer to use fully qualified `sycl::queue` instead of just `queue`. For `::testing` stuff it might be ok, but, please, consider doing otherwise for `sycl`.
https://github.com/llvm/llvm-project/pull/213468
More information about the llvm-commits
mailing list