blob: 938bb3f710509d0a25543e7b1e09cf496f78d6fb [file] [edit]
//===----------------------------------------------------------------------===//
//
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
// See https://llvm.org/LICENSE.txt for license information.
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
//
//===----------------------------------------------------------------------===//
///
/// \file
/// Declaration of the test file path helper macro and function.
///
//===----------------------------------------------------------------------===//
#ifndef LLVM_LIBC_TEST_UNITTEST_TESTFILEPATH_H
#define LLVM_LIBC_TEST_UNITTEST_TESTFILEPATH_H
#include "src/__support/c_string.h"
#include "src/__support/macros/config.h"
// This is defined as a simple macro in Test.h so that it exists for platforms
// that don't use our test infrastructure. It's redefined here to call the
// build-system-specific helper function below.
#undef libc_make_test_file_path
// This is defined as a macro here to avoid namespace issues.
#define libc_make_test_file_path(file_name) \
(LIBC_NAMESPACE::testing::libc_make_test_file_path_func(file_name))
namespace LIBC_NAMESPACE_DECL {
namespace testing {
CString libc_make_test_file_path_func(const char *file_name);
} // namespace testing
} // namespace LIBC_NAMESPACE_DECL
#endif // LLVM_LIBC_TEST_UNITTEST_TESTFILEPATH_H