[all-commits] [llvm/llvm-project] 431ea2: [libc] move bcmp, bzero, bcopy, index, rindex, str...

Nick Desaulniers via All-commits all-commits at lists.llvm.org
Tue Dec 10 08:59:08 PST 2024


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 431ea2d076f8a5ca35b2c293dd5d62f5ce083f45
      https://github.com/llvm/llvm-project/commit/431ea2d076f8a5ca35b2c293dd5d62f5ce083f45
  Author: Nick Desaulniers <nickdesaulniers at users.noreply.github.com>
  Date:   2024-12-10 (Tue, 10 Dec 2024)

  Changed paths:
    M libc/benchmarks/CMakeLists.txt
    M libc/cmake/modules/LLVMLibCObjectRules.cmake
    M libc/cmake/modules/LLVMLibCTestRules.cmake
    M libc/config/baremetal/arm/entrypoints.txt
    M libc/config/baremetal/riscv/entrypoints.txt
    M libc/config/darwin/arm/entrypoints.txt
    M libc/config/darwin/x86_64/entrypoints.txt
    M libc/config/gpu/entrypoints.txt
    M libc/config/linux/aarch64/entrypoints.txt
    M libc/config/linux/arm/entrypoints.txt
    M libc/config/linux/riscv/entrypoints.txt
    M libc/config/linux/x86_64/entrypoints.txt
    M libc/config/windows/entrypoints.txt
    M libc/fuzzing/string/CMakeLists.txt
    M libc/fuzzing/string/bcmp_fuzz.cpp
    M libc/hdr/func/free.h
    M libc/hdr/func/malloc.h
    M libc/hdr/func/realloc.h
    M libc/src/CMakeLists.txt
    M libc/src/string/CMakeLists.txt
    R libc/src/string/bcmp.cpp
    R libc/src/string/bcmp.h
    R libc/src/string/bcopy.cpp
    R libc/src/string/bcopy.h
    R libc/src/string/bzero.cpp
    R libc/src/string/bzero.h
    R libc/src/string/index.cpp
    R libc/src/string/index.h
    R libc/src/string/rindex.cpp
    R libc/src/string/rindex.h
    R libc/src/string/strcasecmp.cpp
    R libc/src/string/strcasecmp.h
    R libc/src/string/strncasecmp.cpp
    R libc/src/string/strncasecmp.h
    A libc/src/strings/CMakeLists.txt
    A libc/src/strings/bcmp.cpp
    A libc/src/strings/bcmp.h
    A libc/src/strings/bcopy.cpp
    A libc/src/strings/bcopy.h
    A libc/src/strings/bzero.cpp
    A libc/src/strings/bzero.h
    A libc/src/strings/index.cpp
    A libc/src/strings/index.h
    A libc/src/strings/rindex.cpp
    A libc/src/strings/rindex.h
    A libc/src/strings/strcasecmp.cpp
    A libc/src/strings/strcasecmp.h
    A libc/src/strings/strncasecmp.cpp
    A libc/src/strings/strncasecmp.h
    M libc/test/src/CMakeLists.txt
    M libc/test/src/string/CMakeLists.txt
    R libc/test/src/string/bcmp_test.cpp
    R libc/test/src/string/bcopy_test.cpp
    R libc/test/src/string/bzero_test.cpp
    R libc/test/src/string/index_test.cpp
    R libc/test/src/string/rindex_test.cpp
    R libc/test/src/string/strcasecmp_test.cpp
    R libc/test/src/string/strncasecmp_test.cpp
    A libc/test/src/strings/CMakeLists.txt
    A libc/test/src/strings/bcmp_test.cpp
    A libc/test/src/strings/bcopy_test.cpp
    A libc/test/src/strings/bzero_test.cpp
    A libc/test/src/strings/index_test.cpp
    A libc/test/src/strings/rindex_test.cpp
    A libc/test/src/strings/strcasecmp_test.cpp
    A libc/test/src/strings/strncasecmp_test.cpp

  Log Message:
  -----------
  [libc] move bcmp, bzero, bcopy, index, rindex, strcasecmp, strncasecmp to strings.h (#118899)

docgen relies on the convention that we have a file foo.cpp in
libc/src/\<header\>/. Because the above functions weren't in libc/src/strings/
but rather libc/src/string/, docgen could not find that we had implemented
these.

Rather than add special carve outs to docgen, let's fix up our sources for
these 7 functions to stick with the existing conventions the rest of the
codebase follows.

Link: #118860
Fixes: #118875



To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications


More information about the All-commits mailing list