diff --git a/libc/config/linux/errno.h.in b/libc/config/linux/errno.h.in --- a/libc/config/linux/errno.h.in +++ b/libc/config/linux/errno.h.in @@ -1,4 +1,4 @@ -//===---------------- Linux specific errno.h definitions ------------------===// +//===-- Linux specific errno.h definitions --------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. // See https://llvm.org/LICENSE.txt for license information. diff --git a/libc/config/linux/signal.h.in b/libc/config/linux/signal.h.in --- a/libc/config/linux/signal.h.in +++ b/libc/config/linux/signal.h.in @@ -1,4 +1,4 @@ -//===---------------- Linux specific signal.h definitions -----------------===// +//===-- Linux specific signal.h definitions -------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. // See https://llvm.org/LICENSE.txt for license information. diff --git a/libc/config/linux/threads.h.in b/libc/config/linux/threads.h.in --- a/libc/config/linux/threads.h.in +++ b/libc/config/linux/threads.h.in @@ -1,4 +1,4 @@ -//===--------- Linux specific definitions of types from threads.h ---------===// +//===-- Linux specific definitions of types from threads.h ----------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. // See https://llvm.org/LICENSE.txt for license information. diff --git a/libc/fuzzing/string/strcpy_fuzz.cpp b/libc/fuzzing/string/strcpy_fuzz.cpp --- a/libc/fuzzing/string/strcpy_fuzz.cpp +++ b/libc/fuzzing/string/strcpy_fuzz.cpp @@ -1,4 +1,4 @@ -//===--------------------- strcpy_fuzz.cpp --------------------------------===// +//===-- strcpy_fuzz.cpp ---------------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. // See https://llvm.org/LICENSE.txt for license information. diff --git a/libc/include/__llvm-libc-common.h b/libc/include/__llvm-libc-common.h --- a/libc/include/__llvm-libc-common.h +++ b/libc/include/__llvm-libc-common.h @@ -1,4 +1,4 @@ -//===------- Common definitions for LLVM-libc public header files- --------===// +//===-- Common definitions for LLVM-libc public header files --------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. // See https://llvm.org/LICENSE.txt for license information. diff --git a/libc/include/__posix-types.h b/libc/include/__posix-types.h --- a/libc/include/__posix-types.h +++ b/libc/include/__posix-types.h @@ -1,4 +1,4 @@ -//===----------------- Definitions of common POSIX types ------------------===// +//===-- Definitions of common POSIX types ---------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. // See https://llvm.org/LICENSE.txt for license information. diff --git a/libc/include/assert.h.def b/libc/include/assert.h.def --- a/libc/include/assert.h.def +++ b/libc/include/assert.h.def @@ -1,4 +1,4 @@ -//===---------------- C standard library header assert.h ------------------===// +//===-- C standard library header assert.h --------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. // See https://llvm.org/LICENSE.txt for license information. diff --git a/libc/include/ctype.h b/libc/include/ctype.h --- a/libc/include/ctype.h +++ b/libc/include/ctype.h @@ -1,4 +1,4 @@ -//===---------------- C standard library header ctype.h -----------------*-===// +//===-- C standard library header ctype.h ---------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. // See https://llvm.org/LICENSE.txt for license information. diff --git a/libc/include/errno.h.def b/libc/include/errno.h.def --- a/libc/include/errno.h.def +++ b/libc/include/errno.h.def @@ -1,4 +1,4 @@ -//===---------------- C standard library header errno.h ------------------===// +//===-- C standard library header errno.h ---------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. // See https://llvm.org/LICENSE.txt for license information. diff --git a/libc/include/math.h.def b/libc/include/math.h.def --- a/libc/include/math.h.def +++ b/libc/include/math.h.def @@ -1,4 +1,4 @@ -//===----------------- C standard library header math.h -----------------*-===// +//===-- C standard library header math.h ----------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. // See https://llvm.org/LICENSE.txt for license information. diff --git a/libc/include/signal.h.def b/libc/include/signal.h.def --- a/libc/include/signal.h.def +++ b/libc/include/signal.h.def @@ -1,4 +1,4 @@ -//===---------------- C standard library header signal.h ------------------===// +//===-- C standard library header signal.h --------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. // See https://llvm.org/LICENSE.txt for license information. diff --git a/libc/include/stdlib.h.def b/libc/include/stdlib.h.def --- a/libc/include/stdlib.h.def +++ b/libc/include/stdlib.h.def @@ -1,4 +1,4 @@ -//===---------------- C standard library header stdlib.h ------------------===// +//===-- C standard library header stdlib.h --------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. // See https://llvm.org/LICENSE.txt for license information. diff --git a/libc/include/string.h.def b/libc/include/string.h.def --- a/libc/include/string.h.def +++ b/libc/include/string.h.def @@ -1,4 +1,4 @@ -//===---------------- C standard library header string.h ------------------===// +//===-- C standard library header string.h --------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. // See https://llvm.org/LICENSE.txt for license information. diff --git a/libc/include/sys/mman.h.def b/libc/include/sys/mman.h.def --- a/libc/include/sys/mman.h.def +++ b/libc/include/sys/mman.h.def @@ -1,4 +1,4 @@ -//===------------------------- POSIX header mman.h ------------------------===// +//===-- POSIX header mman.h -----------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. // See https://llvm.org/LICENSE.txt for license information. diff --git a/libc/include/sys/syscall.h.def b/libc/include/sys/syscall.h.def --- a/libc/include/sys/syscall.h.def +++ b/libc/include/sys/syscall.h.def @@ -1,4 +1,4 @@ -//===---------------------- Linux like sys/syscall.h ----------------------===// +//===-- Linux like sys/syscall.h ------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. // See https://llvm.org/LICENSE.txt for license information. diff --git a/libc/include/threads.h.def b/libc/include/threads.h.def --- a/libc/include/threads.h.def +++ b/libc/include/threads.h.def @@ -1,4 +1,4 @@ -//===---------------- C standard library header threads.h -----------------===// +//===-- C standard library header threads.h -------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. // See https://llvm.org/LICENSE.txt for license information. diff --git a/libc/loader/linux/x86_64/start.cpp b/libc/loader/linux/x86_64/start.cpp --- a/libc/loader/linux/x86_64/start.cpp +++ b/libc/loader/linux/x86_64/start.cpp @@ -1,4 +1,4 @@ -//===------------------ Implementation of crt for x86_64 ------------------===// +//===-- Implementation of crt for x86_64 ----------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. // See https://llvm.org/LICENSE.txt for license information. diff --git a/libc/src/__support/common.h.def b/libc/src/__support/common.h.def --- a/libc/src/__support/common.h.def +++ b/libc/src/__support/common.h.def @@ -1,4 +1,4 @@ -//===-------------------- Common internal contructs ---------------------*-===// +//===-- Common internal contructs -----------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. // See https://llvm.org/LICENSE.txt for license information. diff --git a/libc/src/assert/__assert_fail.cpp b/libc/src/assert/__assert_fail.cpp --- a/libc/src/assert/__assert_fail.cpp +++ b/libc/src/assert/__assert_fail.cpp @@ -1,4 +1,4 @@ -//===----------------- Implementation of __assert_fail --------------------===// +//===-- Implementation of __assert_fail -----------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. // See https://llvm.org/LICENSE.txt for license information. diff --git a/libc/src/assert/assert.h b/libc/src/assert/assert.h --- a/libc/src/assert/assert.h +++ b/libc/src/assert/assert.h @@ -1,4 +1,4 @@ -//===-------------------- Internal header for assert ----------*- C++ -*---===// +//===-- Internal header for assert ------------------------------*- C++ -*-===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. // See https://llvm.org/LICENSE.txt for license information. diff --git a/libc/src/errno/errno_location.cpp b/libc/src/errno/errno_location.cpp --- a/libc/src/errno/errno_location.cpp +++ b/libc/src/errno/errno_location.cpp @@ -1,4 +1,4 @@ -//===----------------- Implementation of __errno_location -----------------===// +//===-- Implementation of __errno_location --------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. // See https://llvm.org/LICENSE.txt for license information. diff --git a/libc/src/errno/llvmlibc_errno.h b/libc/src/errno/llvmlibc_errno.h --- a/libc/src/errno/llvmlibc_errno.h +++ b/libc/src/errno/llvmlibc_errno.h @@ -1,4 +1,4 @@ -//===------------------ Implementation header for errno -------------------===// +//===-- Implementation header for errno -------------------------*- C++ -*-===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. // See https://llvm.org/LICENSE.txt for license information. diff --git a/libc/src/math/round.h b/libc/src/math/round.h --- a/libc/src/math/round.h +++ b/libc/src/math/round.h @@ -1,4 +1,4 @@ -//===------------------ Implementation header for round -------------------===// +//===-- Implementation header for round -------------------------*- C++ -*-===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. // See https://llvm.org/LICENSE.txt for license information. diff --git a/libc/src/math/round.cpp b/libc/src/math/round.cpp --- a/libc/src/math/round.cpp +++ b/libc/src/math/round.cpp @@ -1,4 +1,4 @@ -//===---------------------- Implementation of round -----------------------===// +//===-- Implementation of round -------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. // See https://llvm.org/LICENSE.txt for license information. diff --git a/libc/src/math/round_redirector.cpp b/libc/src/math/round_redirector.cpp --- a/libc/src/math/round_redirector.cpp +++ b/libc/src/math/round_redirector.cpp @@ -1,4 +1,4 @@ -//===---------------- Implementation of round redirector -----------------===// +//===-- Implementation of round redirector --------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. // See https://llvm.org/LICENSE.txt for license information. diff --git a/libc/src/signal/linux/__restore.cpp b/libc/src/signal/linux/__restore.cpp --- a/libc/src/signal/linux/__restore.cpp +++ b/libc/src/signal/linux/__restore.cpp @@ -1,4 +1,4 @@ -//===----------------- Linux implementation of __restore_rt ---------------===// +//===-- Linux implementation of __restore_rt ------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. // See https://llvm.org/LICENSE.txt for license information. diff --git a/libc/src/signal/linux/raise.cpp b/libc/src/signal/linux/raise.cpp --- a/libc/src/signal/linux/raise.cpp +++ b/libc/src/signal/linux/raise.cpp @@ -1,4 +1,4 @@ -//===------------------ Linux implementation of signal --------------------===// +//===-- Linux implementation of signal ------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. // See https://llvm.org/LICENSE.txt for license information. diff --git a/libc/src/signal/linux/sigaction.cpp b/libc/src/signal/linux/sigaction.cpp --- a/libc/src/signal/linux/sigaction.cpp +++ b/libc/src/signal/linux/sigaction.cpp @@ -1,4 +1,4 @@ -//===----------------- Linux implementation of sigaction ------------------===// +//===-- Linux implementation of sigaction ---------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. // See https://llvm.org/LICENSE.txt for license information. diff --git a/libc/src/signal/linux/sigaddset.cpp b/libc/src/signal/linux/sigaddset.cpp --- a/libc/src/signal/linux/sigaddset.cpp +++ b/libc/src/signal/linux/sigaddset.cpp @@ -1,4 +1,4 @@ -//===----------------- Linux implementation of sigaddset ------------------===// +//===-- Linux implementation of sigaddset ---------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. // See https://llvm.org/LICENSE.txt for license information. diff --git a/libc/src/signal/linux/sigdelset.cpp b/libc/src/signal/linux/sigdelset.cpp --- a/libc/src/signal/linux/sigdelset.cpp +++ b/libc/src/signal/linux/sigdelset.cpp @@ -1,4 +1,4 @@ -//===----------------- Linux implementation of sigdelset ------------------===// +//===-- Linux implementation of sigdelset ---------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. // See https://llvm.org/LICENSE.txt for license information. diff --git a/libc/src/signal/linux/sigemptyset.cpp b/libc/src/signal/linux/sigemptyset.cpp --- a/libc/src/signal/linux/sigemptyset.cpp +++ b/libc/src/signal/linux/sigemptyset.cpp @@ -1,4 +1,4 @@ -//===--------------- Linux implementation of sigemptyset ------------------===// +//===-- Linux implementation of sigemptyset -------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. // See https://llvm.org/LICENSE.txt for license information. diff --git a/libc/src/signal/linux/sigfillset.cpp b/libc/src/signal/linux/sigfillset.cpp --- a/libc/src/signal/linux/sigfillset.cpp +++ b/libc/src/signal/linux/sigfillset.cpp @@ -1,4 +1,4 @@ -//===----------------- Linux implementation of sigfillset -----------------===// +//===-- Linux implementation of sigfillset --------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. // See https://llvm.org/LICENSE.txt for license information. diff --git a/libc/src/signal/linux/signal.h b/libc/src/signal/linux/signal.h --- a/libc/src/signal/linux/signal.h +++ b/libc/src/signal/linux/signal.h @@ -1,4 +1,4 @@ -//===----------------- Internal header for Linux signals ------------------===// +//===-- Internal header for Linux signals -----------------------*- C++ -*-===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. // See https://llvm.org/LICENSE.txt for license information. diff --git a/libc/src/signal/linux/signal.cpp b/libc/src/signal/linux/signal.cpp --- a/libc/src/signal/linux/signal.cpp +++ b/libc/src/signal/linux/signal.cpp @@ -1,4 +1,4 @@ -//===------------------ Linux implementation of signal --------------------===// +//===-- Linux implementation of signal ------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. // See https://llvm.org/LICENSE.txt for license information. diff --git a/libc/src/signal/linux/sigprocmask.cpp b/libc/src/signal/linux/sigprocmask.cpp --- a/libc/src/signal/linux/sigprocmask.cpp +++ b/libc/src/signal/linux/sigprocmask.cpp @@ -1,4 +1,4 @@ -//===--------------- Linux implementation of sigprocmask ------------------===// +//===-- Linux implementation of sigprocmask -------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. // See https://llvm.org/LICENSE.txt for license information. diff --git a/libc/src/signal/raise.h b/libc/src/signal/raise.h --- a/libc/src/signal/raise.h +++ b/libc/src/signal/raise.h @@ -1,4 +1,4 @@ -//===------------- Implementation header for raise function ------ *-C++-* ===// +//===-- Implementation header for raise function ----------------*- C++ -*-===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. // See https://llvm.org/LICENSE.txt for license information. diff --git a/libc/src/signal/sigaction.h b/libc/src/signal/sigaction.h --- a/libc/src/signal/sigaction.h +++ b/libc/src/signal/sigaction.h @@ -1,4 +1,4 @@ -//===------------ Implementation header for sigaction --------*- C++ -*--===// +//===-- Implementation header for sigaction ---------------------*- C++ -*-===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. // See https://llvm.org/LICENSE.txt for license information. diff --git a/libc/src/signal/sigaddset.h b/libc/src/signal/sigaddset.h --- a/libc/src/signal/sigaddset.h +++ b/libc/src/signal/sigaddset.h @@ -1,4 +1,4 @@ -//===------------- Implementation header for sigaddset ---------*- C++ -*--===// +//===-- Implementation header for sigaddset ---------------------*- C++ -*-===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. // See https://llvm.org/LICENSE.txt for license information. diff --git a/libc/src/signal/sigdelset.h b/libc/src/signal/sigdelset.h --- a/libc/src/signal/sigdelset.h +++ b/libc/src/signal/sigdelset.h @@ -1,4 +1,4 @@ -//===------------- Implementation header for sigdelset ---------*- C++ -*--===// +//===-- Implementation header for sigdelset ---------------------*- C++ -*-===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. // See https://llvm.org/LICENSE.txt for license information. diff --git a/libc/src/signal/sigemptyset.h b/libc/src/signal/sigemptyset.h --- a/libc/src/signal/sigemptyset.h +++ b/libc/src/signal/sigemptyset.h @@ -1,4 +1,4 @@ -//===------------ Implementation header for sigemptyset --------*- C++ -*--===// +//===-- Implementation header for sigemptyset -------------------*- C++ -*-===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. // See https://llvm.org/LICENSE.txt for license information. diff --git a/libc/src/signal/sigfillset.h b/libc/src/signal/sigfillset.h --- a/libc/src/signal/sigfillset.h +++ b/libc/src/signal/sigfillset.h @@ -1,4 +1,4 @@ -//===------------- Implementation header for sigfillset --------*- C++ -*--===// +//===-- Implementation header for sigfillset --------------------*- C++ -*-===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. // See https://llvm.org/LICENSE.txt for license information. diff --git a/libc/src/signal/signal.h b/libc/src/signal/signal.h --- a/libc/src/signal/signal.h +++ b/libc/src/signal/signal.h @@ -1,4 +1,4 @@ -//===------------- Implementation header for signal ------------*- C++ -*--===// +//===-- Implementation header for signal ------------------------*- C++ -*-===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. // See https://llvm.org/LICENSE.txt for license information. diff --git a/libc/src/signal/sigprocmask.h b/libc/src/signal/sigprocmask.h --- a/libc/src/signal/sigprocmask.h +++ b/libc/src/signal/sigprocmask.h @@ -1,4 +1,4 @@ -//===------------ Implementation header for sigprocmask --------*- C++ -*--===// +//===-- Implementation header for sigprocmask -------------------*- C++ -*-===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. // See https://llvm.org/LICENSE.txt for license information. diff --git a/libc/src/stdlib/_Exit.h b/libc/src/stdlib/_Exit.h --- a/libc/src/stdlib/_Exit.h +++ b/libc/src/stdlib/_Exit.h @@ -1,4 +1,4 @@ -//===----------------- Implementation header for _Exit ---------*- C++ -*--===// +//===-- Implementation header for _Exit -------------------------*- C++ -*-===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. // See https://llvm.org/LICENSE.txt for license information. diff --git a/libc/src/stdlib/abort.h b/libc/src/stdlib/abort.h --- a/libc/src/stdlib/abort.h +++ b/libc/src/stdlib/abort.h @@ -1,4 +1,4 @@ -//===----------------- Implementation header for abort ---------*- C++ -*--===// +//===-- Implementation header for abort -------------------------*- C++ -*-===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. // See https://llvm.org/LICENSE.txt for license information. diff --git a/libc/src/stdlib/abort.cpp b/libc/src/stdlib/abort.cpp --- a/libc/src/stdlib/abort.cpp +++ b/libc/src/stdlib/abort.cpp @@ -1,4 +1,4 @@ -//===---------------------- Implementation of abort -----------------------===// +//===-- Implementation of abort -------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. // See https://llvm.org/LICENSE.txt for license information. diff --git a/libc/src/string/memcpy.h b/libc/src/string/memcpy.h --- a/libc/src/string/memcpy.h +++ b/libc/src/string/memcpy.h @@ -1,4 +1,4 @@ -//===----------------- Implementation header for memcpy -------------------===// +//===-- Implementation header for memcpy ------------------------*- C++ -*-===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. // See https://llvm.org/LICENSE.txt for license information. diff --git a/libc/src/string/memcpy.cpp b/libc/src/string/memcpy.cpp --- a/libc/src/string/memcpy.cpp +++ b/libc/src/string/memcpy.cpp @@ -1,4 +1,4 @@ -//===--------------------- Implementation of memcpy -----------------------===// +//===-- Implementation of memcpy ------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. // See https://llvm.org/LICENSE.txt for license information. diff --git a/libc/src/string/memcpy_arch_specific.h.def b/libc/src/string/memcpy_arch_specific.h.def --- a/libc/src/string/memcpy_arch_specific.h.def +++ b/libc/src/string/memcpy_arch_specific.h.def @@ -1,4 +1,4 @@ -//===-------------- Implementation of arch specific memcpy ----------------===// +//===-- Implementation of arch specific memcpy ----------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. // See https://llvm.org/LICENSE.txt for license information. diff --git a/libc/src/string/memory_utils/cacheline_size.h.def b/libc/src/string/memory_utils/cacheline_size.h.def --- a/libc/src/string/memory_utils/cacheline_size.h.def +++ b/libc/src/string/memory_utils/cacheline_size.h.def @@ -1,4 +1,4 @@ -//===---------------------- Cacheline Size Constant -----------------------===// +//===-- Cacheline Size Constant -------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. // See https://llvm.org/LICENSE.txt for license information. diff --git a/libc/src/string/memory_utils/memcpy_utils.h b/libc/src/string/memory_utils/memcpy_utils.h --- a/libc/src/string/memory_utils/memcpy_utils.h +++ b/libc/src/string/memory_utils/memcpy_utils.h @@ -1,4 +1,4 @@ -//===---------------------------- Memcpy utils ----------------------------===// +//===-- Memcpy utils --------------------------------------------*- C++ -*-===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. // See https://llvm.org/LICENSE.txt for license information. diff --git a/libc/src/string/memory_utils/utils.h b/libc/src/string/memory_utils/utils.h --- a/libc/src/string/memory_utils/utils.h +++ b/libc/src/string/memory_utils/utils.h @@ -1,4 +1,4 @@ -//===---------------------------- Memory utils ----------------------------===// +//===-- Memory utils --------------------------------------------*- C++ -*-===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. // See https://llvm.org/LICENSE.txt for license information. diff --git a/libc/src/string/strcat.h b/libc/src/string/strcat.h --- a/libc/src/string/strcat.h +++ b/libc/src/string/strcat.h @@ -1,4 +1,4 @@ -//===----------------- Implementation header for strcat -------------------===// +//===-- Implementation header for strcat ------------------------*- C++ -*-===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. // See https://llvm.org/LICENSE.txt for license information. diff --git a/libc/src/string/strcat.cpp b/libc/src/string/strcat.cpp --- a/libc/src/string/strcat.cpp +++ b/libc/src/string/strcat.cpp @@ -1,4 +1,4 @@ -//===-------------------- Implementation of strcat -----------------------===// +//===-- Implementation of strcat ------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. // See https://llvm.org/LICENSE.txt for license information. diff --git a/libc/src/string/strcpy.h b/libc/src/string/strcpy.h --- a/libc/src/string/strcpy.h +++ b/libc/src/string/strcpy.h @@ -1,4 +1,4 @@ -//===----------------- Implementation header for strcpy -------------------===// +//===-- Implementation header for strcpy ------------------------*- C++ -*-===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. // See https://llvm.org/LICENSE.txt for license information. diff --git a/libc/src/string/strcpy.cpp b/libc/src/string/strcpy.cpp --- a/libc/src/string/strcpy.cpp +++ b/libc/src/string/strcpy.cpp @@ -1,4 +1,4 @@ -//===-------------------- Implementation of strcpy -----------------------===// +//===-- Implementation of strcpy ------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. // See https://llvm.org/LICENSE.txt for license information. diff --git a/libc/src/string/strlen.h b/libc/src/string/strlen.h --- a/libc/src/string/strlen.h +++ b/libc/src/string/strlen.h @@ -1,4 +1,4 @@ -//===----------------- Implementation header for strlen -------------------===// +//===-- Implementation header for strlen ------------------------*- C++ -*-===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. // See https://llvm.org/LICENSE.txt for license information. diff --git a/libc/src/string/strlen.cpp b/libc/src/string/strlen.cpp --- a/libc/src/string/strlen.cpp +++ b/libc/src/string/strlen.cpp @@ -1,4 +1,4 @@ -//===-------------------- Implementation of strlen ------------------------===// +//===-- Implementation of strlen ------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. // See https://llvm.org/LICENSE.txt for license information. diff --git a/libc/src/sys/mman/mmap.h b/libc/src/sys/mman/mmap.h --- a/libc/src/sys/mman/mmap.h +++ b/libc/src/sys/mman/mmap.h @@ -1,4 +1,4 @@ -//===-------------- Implementation header for mmap function ------ *-C++-* ===// +//===-- Implementation header for mmap function -----------------*- C++ -*-===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. // See https://llvm.org/LICENSE.txt for license information. diff --git a/libc/src/sys/mman/munmap.h b/libc/src/sys/mman/munmap.h --- a/libc/src/sys/mman/munmap.h +++ b/libc/src/sys/mman/munmap.h @@ -1,4 +1,4 @@ -//===-------------- Implementation header for mumap function ----- *-C++-* ===// +//===-- Implementation header for mumap function ----------------*- C++ -*-===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. // See https://llvm.org/LICENSE.txt for license information. diff --git a/libc/src/threads/linux/mtx_init.cpp b/libc/src/threads/linux/mtx_init.cpp --- a/libc/src/threads/linux/mtx_init.cpp +++ b/libc/src/threads/linux/mtx_init.cpp @@ -1,4 +1,4 @@ -//===----------- Linux implementation of the mtx_init function ------------===// +//===-- Linux implementation of the mtx_init function ---------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. // See https://llvm.org/LICENSE.txt for license information. diff --git a/libc/src/threads/linux/mtx_lock.cpp b/libc/src/threads/linux/mtx_lock.cpp --- a/libc/src/threads/linux/mtx_lock.cpp +++ b/libc/src/threads/linux/mtx_lock.cpp @@ -1,4 +1,4 @@ -//===----------- Linux implementation of the mtx_lock function ------------===// +//===-- Linux implementation of the mtx_lock function ---------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. // See https://llvm.org/LICENSE.txt for license information. diff --git a/libc/src/threads/linux/mtx_unlock.cpp b/libc/src/threads/linux/mtx_unlock.cpp --- a/libc/src/threads/linux/mtx_unlock.cpp +++ b/libc/src/threads/linux/mtx_unlock.cpp @@ -1,4 +1,4 @@ -//===---------- Linux implementation of the mtx_unlock function -----------===// +//===-- Linux implementation of the mtx_unlock function -------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. // See https://llvm.org/LICENSE.txt for license information. diff --git a/libc/src/threads/linux/thrd_create.cpp b/libc/src/threads/linux/thrd_create.cpp --- a/libc/src/threads/linux/thrd_create.cpp +++ b/libc/src/threads/linux/thrd_create.cpp @@ -1,4 +1,4 @@ -//===---------- Linux implementation of the thrd_create function ----------===// +//===-- Linux implementation of the thrd_create function ------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. // See https://llvm.org/LICENSE.txt for license information. diff --git a/libc/src/threads/linux/thrd_join.cpp b/libc/src/threads/linux/thrd_join.cpp --- a/libc/src/threads/linux/thrd_join.cpp +++ b/libc/src/threads/linux/thrd_join.cpp @@ -1,4 +1,4 @@ -//===----------- Linux implementation of the thrd_join function -----------===// +//===-- Linux implementation of the thrd_join function --------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. // See https://llvm.org/LICENSE.txt for license information. diff --git a/libc/src/threads/linux/thread_start_args.h.def b/libc/src/threads/linux/thread_start_args.h.def --- a/libc/src/threads/linux/thread_start_args.h.def +++ b/libc/src/threads/linux/thread_start_args.h.def @@ -1,4 +1,4 @@ -//===---- Implementation of the get_start_args_addr function -----*- C++ -*===// +//===-- Implementation of the get_start_args_addr function ------*- C++ -*-===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. // See https://llvm.org/LICENSE.txt for license information. diff --git a/libc/src/threads/mtx_init.h b/libc/src/threads/mtx_init.h --- a/libc/src/threads/mtx_init.h +++ b/libc/src/threads/mtx_init.h @@ -1,4 +1,4 @@ -//===---------- Implementation header for mtx_init function ------ *-C++-* ===// +//===-- Implementation header for mtx_init function -------------*- C++ -*-===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. // See https://llvm.org/LICENSE.txt for license information. diff --git a/libc/src/threads/mtx_lock.h b/libc/src/threads/mtx_lock.h --- a/libc/src/threads/mtx_lock.h +++ b/libc/src/threads/mtx_lock.h @@ -1,4 +1,4 @@ -//===---------- Implementation header for mtx_lock function ------ *-C++-* ===// +//===-- Implementation header for mtx_lock function -------------*- C++ -*-===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. // See https://llvm.org/LICENSE.txt for license information. diff --git a/libc/src/threads/mtx_unlock.h b/libc/src/threads/mtx_unlock.h --- a/libc/src/threads/mtx_unlock.h +++ b/libc/src/threads/mtx_unlock.h @@ -1,4 +1,4 @@ -//===-------- Implementation header for mtx_unlock function ------ *-C++-* ===// +//===-- Implementation header for mtx_unlock function -----------*- C++ -*-===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. // See https://llvm.org/LICENSE.txt for license information. diff --git a/libc/src/threads/thrd_create.h b/libc/src/threads/thrd_create.h --- a/libc/src/threads/thrd_create.h +++ b/libc/src/threads/thrd_create.h @@ -1,4 +1,4 @@ -//===------- Implementation header for thrd_create function ------ *-C++-* ===// +//===-- Implementation header for thrd_create function ----------*- C++ -*-===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. // See https://llvm.org/LICENSE.txt for license information. diff --git a/libc/src/threads/thrd_join.h b/libc/src/threads/thrd_join.h --- a/libc/src/threads/thrd_join.h +++ b/libc/src/threads/thrd_join.h @@ -1,4 +1,4 @@ -//===-------- Implementation header for thrd_join function ------- *-C++-* ===// +//===-- Implementation header for thrd_join function ------------*- C++ -*-===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. // See https://llvm.org/LICENSE.txt for license information. diff --git a/libc/test/config/linux/x86_64/syscall_test.cpp b/libc/test/config/linux/x86_64/syscall_test.cpp --- a/libc/test/config/linux/x86_64/syscall_test.cpp +++ b/libc/test/config/linux/x86_64/syscall_test.cpp @@ -1,4 +1,4 @@ -//===------------------ Unittests for x86_64 syscalls ---------------------===// +//===-- Unittests for x86_64 syscalls -------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. // See https://llvm.org/LICENSE.txt for license information. diff --git a/libc/test/loader/linux/args_test.cpp b/libc/test/loader/linux/args_test.cpp --- a/libc/test/loader/linux/args_test.cpp +++ b/libc/test/loader/linux/args_test.cpp @@ -1,4 +1,4 @@ -//===----------------- Loader test to check args to main ------------------===// +//===-- Loader test to check args to main ---------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. // See https://llvm.org/LICENSE.txt for license information. diff --git a/libc/test/loader/linux/main_without_args.cpp b/libc/test/loader/linux/main_without_args.cpp --- a/libc/test/loader/linux/main_without_args.cpp +++ b/libc/test/loader/linux/main_without_args.cpp @@ -1,4 +1,4 @@ -//===----------------- Loader test for main without args ------------------===// +//===-- Loader test for main without args ---------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. // See https://llvm.org/LICENSE.txt for license information. diff --git a/libc/test/loader/linux/main_without_envp.cpp b/libc/test/loader/linux/main_without_envp.cpp --- a/libc/test/loader/linux/main_without_envp.cpp +++ b/libc/test/loader/linux/main_without_envp.cpp @@ -1,4 +1,4 @@ -//===----------------- Loader test for main without envp ------------------===// +//===-- Loader test for main without envp ---------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. // See https://llvm.org/LICENSE.txt for license information. diff --git a/libc/test/src/assert/assert_test.cpp b/libc/test/src/assert/assert_test.cpp --- a/libc/test/src/assert/assert_test.cpp +++ b/libc/test/src/assert/assert_test.cpp @@ -1,4 +1,4 @@ -//===---------------------- Unittests for assert --------------------------===// +//===-- Unittests for assert ----------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. // See https://llvm.org/LICENSE.txt for license information. diff --git a/libc/test/src/errno/errno_test.cpp b/libc/test/src/errno/errno_test.cpp --- a/libc/test/src/errno/errno_test.cpp +++ b/libc/test/src/errno/errno_test.cpp @@ -1,4 +1,4 @@ -//===---------------------- Unittests for errno --------------------------===// +//===-- Unittests for errno -----------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. // See https://llvm.org/LICENSE.txt for license information. diff --git a/libc/test/src/signal/raise_test.cpp b/libc/test/src/signal/raise_test.cpp --- a/libc/test/src/signal/raise_test.cpp +++ b/libc/test/src/signal/raise_test.cpp @@ -1,4 +1,4 @@ -//===----------------------- Unittests for raise --------------------------===// +//===-- Unittests for raise -----------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. // See https://llvm.org/LICENSE.txt for license information. diff --git a/libc/test/src/signal/sigaction_test.cpp b/libc/test/src/signal/sigaction_test.cpp --- a/libc/test/src/signal/sigaction_test.cpp +++ b/libc/test/src/signal/sigaction_test.cpp @@ -1,4 +1,4 @@ -//===----------------------- Unittests for sigaction ----------------------===// +//===-- Unittests for sigaction -------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. // See https://llvm.org/LICENSE.txt for license information. diff --git a/libc/test/src/signal/sigaddset_test.cpp b/libc/test/src/signal/sigaddset_test.cpp --- a/libc/test/src/signal/sigaddset_test.cpp +++ b/libc/test/src/signal/sigaddset_test.cpp @@ -1,4 +1,4 @@ -//===----------------------- Unittests for sigaddset ----------------------===// +//===-- Unittests for sigaddset -------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. // See https://llvm.org/LICENSE.txt for license information. diff --git a/libc/test/src/signal/sigdelset_test.cpp b/libc/test/src/signal/sigdelset_test.cpp --- a/libc/test/src/signal/sigdelset_test.cpp +++ b/libc/test/src/signal/sigdelset_test.cpp @@ -1,4 +1,4 @@ -//===--------------------- Unittests for sigdelset ------------------------===// +//===-- Unittests for sigdelset -------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. // See https://llvm.org/LICENSE.txt for license information. diff --git a/libc/test/src/signal/sigfillset_test.cpp b/libc/test/src/signal/sigfillset_test.cpp --- a/libc/test/src/signal/sigfillset_test.cpp +++ b/libc/test/src/signal/sigfillset_test.cpp @@ -1,4 +1,4 @@ -//===-------------------- Unittests for sigfillset ------------------------===// +//===-- Unittests for sigfillset ------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. // See https://llvm.org/LICENSE.txt for license information. diff --git a/libc/test/src/signal/signal_test.cpp b/libc/test/src/signal/signal_test.cpp --- a/libc/test/src/signal/signal_test.cpp +++ b/libc/test/src/signal/signal_test.cpp @@ -1,4 +1,4 @@ -//===------------------------ Unittests for signal ------------------------===// +//===-- Unittests for signal ----------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. // See https://llvm.org/LICENSE.txt for license information. diff --git a/libc/test/src/signal/sigprocmask_test.cpp b/libc/test/src/signal/sigprocmask_test.cpp --- a/libc/test/src/signal/sigprocmask_test.cpp +++ b/libc/test/src/signal/sigprocmask_test.cpp @@ -1,4 +1,4 @@ -//===--------------------- Unittests for sigprocmask ----------------------===// +//===-- Unittests for sigprocmask -----------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. // See https://llvm.org/LICENSE.txt for license information. diff --git a/libc/test/src/stdlib/_Exit_test.cpp b/libc/test/src/stdlib/_Exit_test.cpp --- a/libc/test/src/stdlib/_Exit_test.cpp +++ b/libc/test/src/stdlib/_Exit_test.cpp @@ -1,4 +1,4 @@ -//===----------------------- Unittests for _Exit --------------------------===// +//===-- Unittests for _Exit -----------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. // See https://llvm.org/LICENSE.txt for license information. diff --git a/libc/test/src/stdlib/abort_test.cpp b/libc/test/src/stdlib/abort_test.cpp --- a/libc/test/src/stdlib/abort_test.cpp +++ b/libc/test/src/stdlib/abort_test.cpp @@ -1,4 +1,4 @@ -//===----------------------- Unittests for abort --------------------------===// +//===-- Unittests for abort -----------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. // See https://llvm.org/LICENSE.txt for license information. diff --git a/libc/test/src/string/memory_utils/memcpy_utils_test.cpp b/libc/test/src/string/memory_utils/memcpy_utils_test.cpp --- a/libc/test/src/string/memory_utils/memcpy_utils_test.cpp +++ b/libc/test/src/string/memory_utils/memcpy_utils_test.cpp @@ -1,4 +1,4 @@ -//===-------------------- Unittests for memory_utils ----------------------===// +//===-- Unittests for memory_utils ----------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. // See https://llvm.org/LICENSE.txt for license information. diff --git a/libc/test/src/string/memory_utils/utils_test.cpp b/libc/test/src/string/memory_utils/utils_test.cpp --- a/libc/test/src/string/memory_utils/utils_test.cpp +++ b/libc/test/src/string/memory_utils/utils_test.cpp @@ -1,4 +1,4 @@ -//===-------------------- Unittests for memory_utils ----------------------===// +//===-- Unittests for memory_utils ----------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. // See https://llvm.org/LICENSE.txt for license information. diff --git a/libc/test/src/string/strcat_test.cpp b/libc/test/src/string/strcat_test.cpp --- a/libc/test/src/string/strcat_test.cpp +++ b/libc/test/src/string/strcat_test.cpp @@ -1,4 +1,4 @@ -//===---------------------- Unittests for strcat --------------------------===// +//===-- Unittests for strcat ----------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. // See https://llvm.org/LICENSE.txt for license information. diff --git a/libc/test/src/string/strcpy_test.cpp b/libc/test/src/string/strcpy_test.cpp --- a/libc/test/src/string/strcpy_test.cpp +++ b/libc/test/src/string/strcpy_test.cpp @@ -1,4 +1,4 @@ -//===----------------------- Unittests for strcpy -------------------------===// +//===-- Unittests for strcpy ----------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. // See https://llvm.org/LICENSE.txt for license information. diff --git a/libc/test/src/string/strlen_test.cpp b/libc/test/src/string/strlen_test.cpp --- a/libc/test/src/string/strlen_test.cpp +++ b/libc/test/src/string/strlen_test.cpp @@ -1,4 +1,4 @@ -//===----------------------- Unittests for strlen -------------------------===// +//===-- Unittests for strlen ----------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. // See https://llvm.org/LICENSE.txt for license information. diff --git a/libc/test/src/sys/mman/linux/mmap_test.cpp b/libc/test/src/sys/mman/linux/mmap_test.cpp --- a/libc/test/src/sys/mman/linux/mmap_test.cpp +++ b/libc/test/src/sys/mman/linux/mmap_test.cpp @@ -1,4 +1,4 @@ -//===------------------ Unittests for mmap and munmap ---------------------===// +//===-- Unittests for mmap and munmap -------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. // See https://llvm.org/LICENSE.txt for license information. diff --git a/libc/test/src/threads/mtx_test.cpp b/libc/test/src/threads/mtx_test.cpp --- a/libc/test/src/threads/mtx_test.cpp +++ b/libc/test/src/threads/mtx_test.cpp @@ -1,4 +1,4 @@ -//===---------------------- Unittests for mtx_t ---------------------------===// +//===-- Unittests for mtx_t -----------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. // See https://llvm.org/LICENSE.txt for license information. diff --git a/libc/test/src/threads/thrd_test.cpp b/libc/test/src/threads/thrd_test.cpp --- a/libc/test/src/threads/thrd_test.cpp +++ b/libc/test/src/threads/thrd_test.cpp @@ -1,4 +1,4 @@ -//===---------------------- Unittests for thrd_t --------------------------===// +//===-- Unittests for thrd_t ----------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. // See https://llvm.org/LICENSE.txt for license information. diff --git a/libc/utils/CPP/Array.h b/libc/utils/CPP/Array.h --- a/libc/utils/CPP/Array.h +++ b/libc/utils/CPP/Array.h @@ -1,4 +1,4 @@ -//===--------- A self contained equivalent of std::array --------*- C++ -*-===// +//===-- A self contained equivalent of std::array ---------------*- C++ -*-===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. // See https://llvm.org/LICENSE.txt for license information. @@ -6,6 +6,9 @@ // //===----------------------------------------------------------------------===// +#ifndef LLVM_LIBC_UTILS_CPP_ARRAY_H +#define LLVM_LIBC_UTILS_CPP_ARRAY_H + #include // For size_t. namespace __llvm_libc { @@ -45,3 +48,5 @@ } // namespace cpp } // namespace __llvm_libc + +#endif // LLVM_LIBC_UTILS_CPP_ARRAY_H diff --git a/libc/utils/CPP/ArrayRef.h b/libc/utils/CPP/ArrayRef.h --- a/libc/utils/CPP/ArrayRef.h +++ b/libc/utils/CPP/ArrayRef.h @@ -1,4 +1,4 @@ -//===----------------- Self contained ArrayRef type -------------*- C++ -*-===// +//===-- Self contained ArrayRef type ----------------------------*- C++ -*-===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. // See https://llvm.org/LICENSE.txt for license information. @@ -6,6 +6,9 @@ // //===----------------------------------------------------------------------===// +#ifndef LLVM_LIBC_UTILS_CPP_ARRAYREF_H +#define LLVM_LIBC_UTILS_CPP_ARRAYREF_H + #include "Array.h" #include // For size_t. @@ -88,3 +91,5 @@ } // namespace cpp } // namespace __llvm_libc + +#endif // LLVM_LIBC_UTILS_CPP_ARRAYREF_H diff --git a/libc/utils/CPP/StringRef.h b/libc/utils/CPP/StringRef.h --- a/libc/utils/CPP/StringRef.h +++ b/libc/utils/CPP/StringRef.h @@ -1,4 +1,4 @@ -//===----------------- A standalone StringRef type -------------*- C++ -*-===// +//===-- A standalone StringRef type -----------------------------*- C++ -*-===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. // See https://llvm.org/LICENSE.txt for license information. @@ -6,6 +6,9 @@ // //===----------------------------------------------------------------------===// +#ifndef LLVM_LIBC_UTILS_CPP_STRINGREF_H +#define LLVM_LIBC_UTILS_CPP_STRINGREF_H + #include "ArrayRef.h" namespace __llvm_libc { @@ -17,3 +20,5 @@ } // namespace cpp } // namespace __llvm_libc + +#endif // LLVM_LIBC_UTILS_CPP_STRINGREF_H diff --git a/libc/utils/CPP/TypeTraits.h b/libc/utils/CPP/TypeTraits.h --- a/libc/utils/CPP/TypeTraits.h +++ b/libc/utils/CPP/TypeTraits.h @@ -1,4 +1,4 @@ -//===----------------- Self contained C++ type traits -----------*- C++ -*-===// +//===-- Self contained C++ type traits --------------------------*- C++ -*-===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. // See https://llvm.org/LICENSE.txt for license information. @@ -6,6 +6,9 @@ // //===----------------------------------------------------------------------===// +#ifndef LLVM_LIBC_UTILS_CPP_TYPETRAITS_H +#define LLVM_LIBC_UTILS_CPP_TYPETRAITS_H + namespace __llvm_libc { namespace cpp { @@ -45,3 +48,5 @@ } // namespace cpp } // namespace __llvm_libc + +#endif // LLVM_LIBC_UTILS_CPP_TYPETRAITS_H diff --git a/libc/utils/HdrGen/Command.h b/libc/utils/HdrGen/Command.h --- a/libc/utils/HdrGen/Command.h +++ b/libc/utils/HdrGen/Command.h @@ -1,4 +1,4 @@ -//===-------- Base class for header generation commands ---------*- C++ -*-===// +//===-- Base class for header generation commands ---------------*- C++ -*-===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. // See https://llvm.org/LICENSE.txt for license information. diff --git a/libc/utils/HdrGen/Command.cpp b/libc/utils/HdrGen/Command.cpp --- a/libc/utils/HdrGen/Command.cpp +++ b/libc/utils/HdrGen/Command.cpp @@ -1,4 +1,4 @@ -//===-------- Base class for header generation commands ---------*- C++ -*-===// +//===-- Base class for header generation commands -------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. // See https://llvm.org/LICENSE.txt for license information. diff --git a/libc/utils/HdrGen/Generator.h b/libc/utils/HdrGen/Generator.h --- a/libc/utils/HdrGen/Generator.h +++ b/libc/utils/HdrGen/Generator.h @@ -1,4 +1,4 @@ -//===------------- - The main header generation class -----------*- C++ -*-===// +//===-- The main header generation class ------------------------*- C++ -*-===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. // See https://llvm.org/LICENSE.txt for license information. diff --git a/libc/utils/HdrGen/Generator.cpp b/libc/utils/HdrGen/Generator.cpp --- a/libc/utils/HdrGen/Generator.cpp +++ b/libc/utils/HdrGen/Generator.cpp @@ -1,4 +1,4 @@ -//===---- Implementation of the main header generation class -----*- C++ -*===// +//===-- Implementation of the main header generation class ----------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. // See https://llvm.org/LICENSE.txt for license information. diff --git a/libc/utils/HdrGen/IncludeFileCommand.h b/libc/utils/HdrGen/IncludeFileCommand.h --- a/libc/utils/HdrGen/IncludeFileCommand.h +++ b/libc/utils/HdrGen/IncludeFileCommand.h @@ -1,4 +1,4 @@ -//===-------- Class which implements the %%include_file command -*- C++ -*-===// +//===-- Class which implements the %%include_file command -------*- C++ -*-===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. // See https://llvm.org/LICENSE.txt for license information. diff --git a/libc/utils/HdrGen/IncludeFileCommand.cpp b/libc/utils/HdrGen/IncludeFileCommand.cpp --- a/libc/utils/HdrGen/IncludeFileCommand.cpp +++ b/libc/utils/HdrGen/IncludeFileCommand.cpp @@ -1,4 +1,4 @@ -//===----------- Implementation of IncludeFileCommand -----------*- C++ -*-===// +//===-- Implementation of IncludeFileCommand ------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. // See https://llvm.org/LICENSE.txt for license information. diff --git a/libc/utils/HdrGen/Main.cpp b/libc/utils/HdrGen/Main.cpp --- a/libc/utils/HdrGen/Main.cpp +++ b/libc/utils/HdrGen/Main.cpp @@ -1,4 +1,4 @@ -//===---------------- "main" function of libc-hdrgen ------------*- C++ -*-===// +//===-- "main" function of libc-hdrgen ------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. // See https://llvm.org/LICENSE.txt for license information. diff --git a/libc/utils/HdrGen/PublicAPICommand.h b/libc/utils/HdrGen/PublicAPICommand.h --- a/libc/utils/HdrGen/PublicAPICommand.h +++ b/libc/utils/HdrGen/PublicAPICommand.h @@ -1,4 +1,4 @@ -//===---------- Implementation of PublicAPICommand --------------*- C++ -*-===// +//===-- Implementation of PublicAPICommand ----------------------*- C++ -*-===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. // See https://llvm.org/LICENSE.txt for license information. @@ -6,6 +6,9 @@ // //===----------------------------------------------------------------------===// +#ifndef LLVM_LIBC_UTILS_HDRGEN_PUBLICAPICOMMAND_H +#define LLVM_LIBC_UTILS_HDRGEN_PUBLICAPICOMMAND_H + #include "Command.h" #include "llvm/ADT/StringRef.h" @@ -34,3 +37,5 @@ }; } // namespace llvm_libc + +#endif // LLVM_LIBC_UTILS_HDRGEN_PUBLICAPICOMMAND_H diff --git a/libc/utils/HdrGen/PublicAPICommand.cpp b/libc/utils/HdrGen/PublicAPICommand.cpp --- a/libc/utils/HdrGen/PublicAPICommand.cpp +++ b/libc/utils/HdrGen/PublicAPICommand.cpp @@ -1,4 +1,4 @@ -//===--------------- Implementation of PublicAPICommand ----------*-C++ -*-===// +//===-- Implementation of PublicAPICommand --------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. // See https://llvm.org/LICENSE.txt for license information. diff --git a/libc/utils/UnitTest/ErrnoSetterMatcher.h b/libc/utils/UnitTest/ErrnoSetterMatcher.h --- a/libc/utils/UnitTest/ErrnoSetterMatcher.h +++ b/libc/utils/UnitTest/ErrnoSetterMatcher.h @@ -1,4 +1,4 @@ -//===--------------------- ErrnoSetterMatcher.h -----------------*- C++ -*-===// +//===-- ErrnoSetterMatcher.h ------------------------------------*- C++ -*-===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. // See https://llvm.org/LICENSE.txt for license information. diff --git a/libc/utils/UnitTest/Test.h b/libc/utils/UnitTest/Test.h --- a/libc/utils/UnitTest/Test.h +++ b/libc/utils/UnitTest/Test.h @@ -1,4 +1,4 @@ -//===------------------ Base class for libc unittests -----------*- C++ -*-===// +//===-- Base class for libc unittests ---------------------------*- C++ -*-===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. // See https://llvm.org/LICENSE.txt for license information. diff --git a/libc/utils/UnitTest/Test.cpp b/libc/utils/UnitTest/Test.cpp --- a/libc/utils/UnitTest/Test.cpp +++ b/libc/utils/UnitTest/Test.cpp @@ -1,4 +1,4 @@ -//===--------- Implementation of the base class for libc unittests --------===// +//===-- Implementation of the base class for libc unittests ---------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. // See https://llvm.org/LICENSE.txt for license information. diff --git a/libc/utils/benchmarks/JSON.h b/libc/utils/benchmarks/JSON.h --- a/libc/utils/benchmarks/JSON.h +++ b/libc/utils/benchmarks/JSON.h @@ -1,4 +1,4 @@ -//===-------- JSON serialization routines -----------------------*- C++ -*-===// +//===-- JSON serialization routines -----------------------------*- C++ -*-===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. // See https://llvm.org/LICENSE.txt for license information. diff --git a/libc/utils/benchmarks/JSON.cpp b/libc/utils/benchmarks/JSON.cpp --- a/libc/utils/benchmarks/JSON.cpp +++ b/libc/utils/benchmarks/JSON.cpp @@ -1,4 +1,4 @@ -//===-------- JSON serialization routines ---------------------------------===// +//===-- JSON serialization routines ---------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. // See https://llvm.org/LICENSE.txt for license information. diff --git a/libc/utils/benchmarks/JSONTest.cpp b/libc/utils/benchmarks/JSONTest.cpp --- a/libc/utils/benchmarks/JSONTest.cpp +++ b/libc/utils/benchmarks/JSONTest.cpp @@ -1,3 +1,11 @@ +//===-- JSON Tests --------------------------------------------------------===// +// +// 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 "JSON.h" #include "LibcBenchmark.h" #include "LibcMemoryBenchmark.h" diff --git a/libc/utils/benchmarks/LibcBenchmark.cpp b/libc/utils/benchmarks/LibcBenchmark.cpp --- a/libc/utils/benchmarks/LibcBenchmark.cpp +++ b/libc/utils/benchmarks/LibcBenchmark.cpp @@ -1,4 +1,4 @@ -//===-------- `Benchmark` function ----------------------------------------===// +//===-- Benchmark function -----------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. // See https://llvm.org/LICENSE.txt for license information. diff --git a/libc/utils/benchmarks/LibcBenchmarkTest.cpp b/libc/utils/benchmarks/LibcBenchmarkTest.cpp --- a/libc/utils/benchmarks/LibcBenchmarkTest.cpp +++ b/libc/utils/benchmarks/LibcBenchmarkTest.cpp @@ -1,3 +1,11 @@ +//===-- Benchmark function tests -----------------------------------------===// +// +// 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 "LibcBenchmark.h" #include "llvm/ADT/ArrayRef.h" #include "llvm/ADT/Optional.h" diff --git a/libc/utils/benchmarks/LibcMemoryBenchmark.h b/libc/utils/benchmarks/LibcMemoryBenchmark.h --- a/libc/utils/benchmarks/LibcMemoryBenchmark.h +++ b/libc/utils/benchmarks/LibcMemoryBenchmark.h @@ -1,4 +1,4 @@ -//===-------- Benchmark memory specific tools -------------------*- C++ -*-===// +//===-- Benchmark memory specific tools -------------------------*- C++ -*-===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. // See https://llvm.org/LICENSE.txt for license information. diff --git a/libc/utils/benchmarks/LibcMemoryBenchmark.cpp b/libc/utils/benchmarks/LibcMemoryBenchmark.cpp --- a/libc/utils/benchmarks/LibcMemoryBenchmark.cpp +++ b/libc/utils/benchmarks/LibcMemoryBenchmark.cpp @@ -1,4 +1,4 @@ -//===-------- Benchmark memory specific tools -----------------------------===// +//===-- Benchmark memory specific tools -----------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. // See https://llvm.org/LICENSE.txt for license information. diff --git a/libc/utils/benchmarks/LibcMemoryBenchmarkMain.h b/libc/utils/benchmarks/LibcMemoryBenchmarkMain.h --- a/libc/utils/benchmarks/LibcMemoryBenchmarkMain.h +++ b/libc/utils/benchmarks/LibcMemoryBenchmarkMain.h @@ -1,4 +1,4 @@ -//===-------- BenchmarkRunner interface -------------------------*- C++ -*-===// +//===-- BenchmarkRunner interface -------------------------------*- C++ -*-===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. // See https://llvm.org/LICENSE.txt for license information. diff --git a/libc/utils/benchmarks/LibcMemoryBenchmarkMain.cpp b/libc/utils/benchmarks/LibcMemoryBenchmarkMain.cpp --- a/libc/utils/benchmarks/LibcMemoryBenchmarkMain.cpp +++ b/libc/utils/benchmarks/LibcMemoryBenchmarkMain.cpp @@ -1,4 +1,4 @@ -//===-------- Benchmark --------------------------------------------------===// +//===-- Benchmark ---------------------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. // See https://llvm.org/LICENSE.txt for license information. diff --git a/libc/utils/benchmarks/LibcMemoryBenchmarkTest.cpp b/libc/utils/benchmarks/LibcMemoryBenchmarkTest.cpp --- a/libc/utils/benchmarks/LibcMemoryBenchmarkTest.cpp +++ b/libc/utils/benchmarks/LibcMemoryBenchmarkTest.cpp @@ -1,3 +1,11 @@ +//===-- Benchmark Memory Test ---------------------------------------------===// +// +// 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 "LibcMemoryBenchmark.h" #include "llvm/Support/Alignment.h" #include "gmock/gmock.h" diff --git a/libc/utils/benchmarks/Memcmp.cpp b/libc/utils/benchmarks/Memcmp.cpp --- a/libc/utils/benchmarks/Memcmp.cpp +++ b/libc/utils/benchmarks/Memcmp.cpp @@ -1,4 +1,4 @@ -//===-------- Benchmark memcmp implementation -----------------------------===// +//===-- Benchmark memcmp implementation -----------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. // See https://llvm.org/LICENSE.txt for license information. diff --git a/libc/utils/benchmarks/Memcpy.cpp b/libc/utils/benchmarks/Memcpy.cpp --- a/libc/utils/benchmarks/Memcpy.cpp +++ b/libc/utils/benchmarks/Memcpy.cpp @@ -1,4 +1,4 @@ -//===-------- Benchmark memcpy implementation -----------------------------===// +//===-- Benchmark memcpy implementation -----------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. // See https://llvm.org/LICENSE.txt for license information. diff --git a/libc/utils/benchmarks/Memset.cpp b/libc/utils/benchmarks/Memset.cpp --- a/libc/utils/benchmarks/Memset.cpp +++ b/libc/utils/benchmarks/Memset.cpp @@ -1,4 +1,4 @@ -//===-------- Benchmark memset implementation -----------------------------===// +//===-- Benchmark memset implementation -----------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. // See https://llvm.org/LICENSE.txt for license information. diff --git a/libc/utils/testutils/ExecuteFunction.h b/libc/utils/testutils/ExecuteFunction.h --- a/libc/utils/testutils/ExecuteFunction.h +++ b/libc/utils/testutils/ExecuteFunction.h @@ -1,4 +1,4 @@ -//===---------------------- ExecuteFunction.h -------------------*- C++ -*-===// +//===-- ExecuteFunction.h ---------------------------------------*- C++ -*-===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. // See https://llvm.org/LICENSE.txt for license information. diff --git a/libc/utils/testutils/ExecuteFunctionUnix.cpp b/libc/utils/testutils/ExecuteFunctionUnix.cpp --- a/libc/utils/testutils/ExecuteFunctionUnix.cpp +++ b/libc/utils/testutils/ExecuteFunctionUnix.cpp @@ -1,4 +1,4 @@ -//===------- ExecuteFunction implementation for Unix-like Systems ---------===// +//===-- ExecuteFunction implementation for Unix-like Systems --------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. // See https://llvm.org/LICENSE.txt for license information. diff --git a/libc/utils/testutils/StreamWrapper.h b/libc/utils/testutils/StreamWrapper.h --- a/libc/utils/testutils/StreamWrapper.h +++ b/libc/utils/testutils/StreamWrapper.h @@ -1,4 +1,4 @@ -//===------------------------ StreamWrapper.h -------------------*- C++ -*-===// +//===-- StreamWrapper.h -----------------------------------------*- C++ -*-===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. // See https://llvm.org/LICENSE.txt for license information. diff --git a/libc/utils/testutils/StreamWrapper.cpp b/libc/utils/testutils/StreamWrapper.cpp --- a/libc/utils/testutils/StreamWrapper.cpp +++ b/libc/utils/testutils/StreamWrapper.cpp @@ -1,4 +1,4 @@ -//===--------------------------- StreamWrapper.cpp ------------------------===// +//===-- StreamWrapper.cpp -------------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. // See https://llvm.org/LICENSE.txt for license information.