forked from OSchip/llvm-project
[libc][Obvious][NFC] A bunch of cosmetic cleanup.
* Added missing header guards. * Fixed license header format in a few files. * Renamed files to more suitable names.
This commit is contained in:
parent
f3b7cc8bb2
commit
d9bbad277c
|
@ -6,6 +6,9 @@
|
|||
//
|
||||
//===----------------------------------------------------------------------===//
|
||||
|
||||
#ifndef LLVM_LIBC_FUZZING_MATH_REMQUO_H
|
||||
#define LLVM_LIBC_FUZZING_MATH_REMQUO_H
|
||||
|
||||
#include "src/__support/FPUtil/FPBits.h"
|
||||
|
||||
#include <math.h>
|
||||
|
@ -46,3 +49,5 @@ void RemQuoDiff(RemQuoFunc<T> func1, RemQuoFunc<T> func2, const uint8_t *data,
|
|||
if (bits1.uintval() != bits2.uintval())
|
||||
__builtin_trap();
|
||||
}
|
||||
|
||||
#endif // LLVM_LIBC_FUZZING_MATH_REMQUO_H
|
||||
|
|
|
@ -7,9 +7,9 @@ add_libc_fuzzer(
|
|||
)
|
||||
|
||||
add_libc_fuzzer(
|
||||
atof_fuzz
|
||||
atof_differential_fuzz
|
||||
SRCS
|
||||
atof_fuzz.cpp
|
||||
atof_differential_fuzz.cpp
|
||||
HDRS
|
||||
StringParserOutputDiff.h
|
||||
DEPENDS
|
||||
|
|
|
@ -6,6 +6,11 @@
|
|||
//
|
||||
//===----------------------------------------------------------------------===//
|
||||
|
||||
#ifndef LLVM_LIBC_SYS_MMAN_H
|
||||
#define LLVM_LIBC_SYS_MMAN_H
|
||||
|
||||
#include <__llvm-libc-common.h>
|
||||
|
||||
%%public_api()
|
||||
|
||||
#endif // LLVM_LIBC_SYS_MMAN_H
|
||||
|
|
|
@ -6,7 +6,12 @@
|
|||
//
|
||||
//===----------------------------------------------------------------------===//
|
||||
|
||||
#ifndef LLVM_LIBC_SYS_SYSCALL_H
|
||||
#define LLVM_LIBC_SYS_SYSCALL_H
|
||||
|
||||
<!> If syscall.h were a linux only file, then we do not need this indirection.
|
||||
<!> However, to keep the option of a non-linux OS requiring a syscall.h file,
|
||||
<!> with its own special syscall numbers, we use this indirection.
|
||||
%%include_file(${syscall_numbers})
|
||||
|
||||
#endif // LLVM_LIBC_SYS_SYSCALL_H
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
//===-- Compile time architecture detection -------------------------------===//
|
||||
//===-- Compile time architecture detection ---------------------*- 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_SUPPORT_ARCHITECTURES_H
|
||||
#define LLVM_LIBC_SUPPORT_ARCHITECTURES_H
|
||||
|
||||
#if defined(__pnacl__) || defined(__CLR_VER)
|
||||
#define LLVM_LIBC_ARCH_VM
|
||||
#endif
|
||||
|
@ -33,3 +36,5 @@
|
|||
#if (defined(LLVM_LIBC_ARCH_AARCH64) || defined(LLVM_LIBC_ARCH_ARM))
|
||||
#define LLVM_LIBC_ARCH_ANY_ARM
|
||||
#endif
|
||||
|
||||
#endif // LLVM_LIBC_SUPPORT_ARCHITECTURES_H
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
//===-- Common internal contructs -----------------------------------------===//
|
||||
//===-- Common internal contructs -------------------------------*- C++ -*-===//
|
||||
//
|
||||
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
|
||||
// See https://llvm.org/LICENSE.txt for license information.
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
//===-- Endianness support ------------------------------------------------===//
|
||||
//===-- Endianness support --------------------------------------*- C++ -*-===//
|
||||
//
|
||||
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
|
||||
// See https://llvm.org/LICENSE.txt for license information.
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
//===-- Convenient sanitizer macros ---------------------------------------===//
|
||||
//===-- Convenient sanitizer macros -----------------------------*- C++ -*-===//
|
||||
//
|
||||
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
|
||||
// See https://llvm.org/LICENSE.txt for license information.
|
||||
|
|
Loading…
Reference in New Issue