Files
clang-p2996/libc/test/UnitTest/CmakeFilePath.cpp
Michael Jones d94fe97280 [libc][bazel] add file printf targets and support
This patch adds targets for printf and fprintf to the bazel build.
Additionally, it adds support for the build system to specify where
files should be written for testing purposes. This was necessary to
enable the fprintf test under bazel.

Reviewed By: sivachandra

Differential Revision: https://reviews.llvm.org/D147008
2023-04-26 14:30:48 -07:00

21 lines
637 B
C++

//===-- Implementation of the file path generator for cmake ---------------===//
//
// 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
//
//===----------------------------------------------------------------------===//
#include "LibcTest.h"
#include "src/__support/CPP/string.h"
#include "src/__support/c_string.h"
namespace __llvm_libc::testing {
CString libc_make_test_file_path_func(const char *file_name) {
return cpp::string(file_name);
}
} // namespace __llvm_libc::testing