[clang-tools-extra] [clang-tidy][NFC] Use universal utility mock in testcases [1/N] (PR #185431)
Baranov Victor via cfe-commits
cfe-commits at lists.llvm.org
Mon Mar 9 09:01:14 PDT 2026
================
@@ -1,20 +1,8 @@
// RUN: %check_clang_tidy -std=c++14-or-later %s cppcoreguidelines-missing-std-forward %t -- \
-// RUN: -config="{CheckOptions: {cppcoreguidelines-missing-std-forward.ForwardFunction: custom_forward}}" -- -fno-delayed-template-parsing
+// RUN: -config="{CheckOptions: {cppcoreguidelines-missing-std-forward.ForwardFunction: custom_forward}}" -- -isystem %clang_tidy_headers -fno-delayed-template-parsing
// NOLINTBEGIN
-namespace std {
-
-template <typename T> struct remove_reference { using type = T; };
-template <typename T> struct remove_reference<T&> { using type = T; };
-template <typename T> struct remove_reference<T&&> { using type = T; };
-
-template <typename T> using remove_reference_t = typename remove_reference<T>::type;
-
-template <typename T> constexpr T &&forward(remove_reference_t<T> &t) noexcept;
-template <typename T> constexpr T &&forward(remove_reference_t<T> &&t) noexcept;
-template <typename T> constexpr remove_reference_t<T> &&move(T &&x);
-
-} // namespace std
+#include <utility>
// NOLINTEND
----------------
vbvictor wrote:
Ditto
https://github.com/llvm/llvm-project/pull/185431
More information about the cfe-commits
mailing list