[libc-commits] [PATCH] D147817: [libc] Remove unnecessary header dependency

Caslyn Tonelli via Phabricator via libc-commits libc-commits at lists.llvm.org
Fri Apr 7 15:32:09 PDT 2023


Caslyn created this revision.
Herald added subscribers: libc-commits, ecnelises, tschuett.
Herald added projects: libc-project, All.
Caslyn requested review of this revision.

Remove unused "string_utils.h" from strchrnul implementation.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D147817

Files:
  libc/src/string/CMakeLists.txt
  libc/src/string/strchrnul.cpp


Index: libc/src/string/strchrnul.cpp
===================================================================
--- libc/src/string/strchrnul.cpp
+++ libc/src/string/strchrnul.cpp
@@ -7,7 +7,6 @@
 //===----------------------------------------------------------------------===//
 
 #include "src/string/strchrnul.h"
-#include "src/string/string_utils.h"
 
 #include "src/__support/common.h"
 
Index: libc/src/string/CMakeLists.txt
===================================================================
--- libc/src/string/CMakeLists.txt
+++ libc/src/string/CMakeLists.txt
@@ -113,8 +113,6 @@
     strchrnul.cpp
   HDRS
     strchrnul.h
-  DEPENDS
-    .string_utils
 )
 
 add_entrypoint_object(


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D147817.511808.patch
Type: text/x-patch
Size: 684 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/libc-commits/attachments/20230407/649dfea5/attachment.bin>


More information about the libc-commits mailing list