Summary:
Now that tests live in separate top-level directory, keeping the
implementations of individual functions in a directory of their own is
not meaningful. Hence, this change moves them into the higher level
string directory.
NFC intended.
Reviewers: MaskRay
Subscribers: mgorny, tschuett, libc-commits
Tags: #libc-project
Differential Revision: https://reviews.llvm.org/D72295
-add_subdirectory(strcpy)
-add_subdirectory(strcat)
+add_entrypoint_object(
+ strcat
+ SRCS
+ strcat.cpp
+ HDRS
+ strcat.h
+ DEPENDS
+ strcpy
+ string_h
+)
+
+add_entrypoint_object(
+ strcpy
+ SRCS
+ strcpy.cpp
+ HDRS
+ strcpy.h
+ DEPENDS
+ string_h
+)
//
//===----------------------------------------------------------------------===//
-#include "src/string/strcat/strcat.h"
+#include "src/string/strcat.h"
#include "src/__support/common.h"
-#include "src/string/strcpy/strcpy.h"
+#include "src/string/strcpy.h"
namespace __llvm_libc {
+++ /dev/null
-add_entrypoint_object(
- strcat
- SRCS
- strcat.cpp
- HDRS
- strcat.h
- DEPENDS
- strcpy
- string_h
-)
//
//===----------------------------------------------------------------------===//
-#include "src/string/strcpy/strcpy.h"
+#include "src/string/strcpy.h"
#include "src/__support/common.h"
+++ /dev/null
-add_entrypoint_object(
- strcpy
- SRCS
- strcpy.cpp
- HDRS
- strcpy.h
- DEPENDS
- string_h
-)
#include <string>
-#include "src/string/strcat/strcat.h"
+#include "src/string/strcat.h"
#include "gtest/gtest.h"
TEST(StrCatTest, EmptyDest) {
#include <string>
-#include "src/string/strcpy/strcpy.h"
+#include "src/string/strcpy.h"
#include "gtest/gtest.h"
TEST(StrCpyTest, EmptyDest) {