Skip to content

Commit 6c619aa

Browse files
committed
[compiler-rt] Rename FuzzedDataProvider.h to .hpp and other minor changes.
Summary: .hpp makes more sense for this header as it's C++ only, plus it contains the actual implementation. Reviewers: Dor1s Reviewed By: Dor1s Subscribers: kubamracek, dberris, mgorny, delcypher, #sanitizers, llvm-commits Tags: #llvm, #sanitizers Differential Revision: https://reviews.llvm.org/D65812 llvm-svn: 368054
1 parent cb6f264 commit 6c619aa

File tree

5 files changed

+6
-4
lines changed

5 files changed

+6
-4
lines changed

compiler-rt/include/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ if (COMPILER_RT_BUILD_SANITIZERS)
1515
sanitizer/tsan_interface_atomic.h
1616
)
1717
set(FUZZER_HEADERS
18-
fuzzer/FuzzedDataProvider.h
18+
fuzzer/FuzzedDataProvider.hpp
1919
)
2020
endif(COMPILER_RT_BUILD_SANITIZERS)
2121

compiler-rt/include/fuzzer/FuzzedDataProvider.h renamed to compiler-rt/include/fuzzer/FuzzedDataProvider.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
//===- FuzzedDataProvider.h - Utility header for fuzz targets ---*- C++ -* ===//
1+
//===- FuzzedDataProvider.hpp - Utility header for fuzz targets -*- C++ -* ===//
22
//
33
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
44
// See https://llvm.org/LICENSE.txt for license information.

compiler-rt/lib/fuzzer/tests/FuzzedDataProviderUnittest.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
#include <cstdint>
77
#include <cstdlib>
88

9-
#include <fuzzer/FuzzedDataProvider.h>
9+
#include <fuzzer/FuzzedDataProvider.hpp>
1010

1111
// The test is intentionally extensive, as behavior of |FuzzedDataProvider| must
1212
// not be broken, given than many fuzz targets depend on it. Changing the

compiler-rt/lib/fuzzer/utils/FuzzedDataProvider.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@
55
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
66
//
77
//===----------------------------------------------------------------------===//
8+
// This a temporary copy of compiler-rt/include/fuzzer/FuzzedDataProvider.hpp.
9+
// TODO([email protected]): delete this copy.
810
// A single header library providing an utility class to break up an array of
911
// bytes. Whenever run on the same input, provides the same output, as long as
1012
// its methods are called in the same order, with the same arguments.

compiler-rt/lib/sanitizer_common/scripts/check_lint.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ LIT_TESTS=${COMPILER_RT}/test
6868
SANITIZER_INCLUDES=${COMPILER_RT}/include/sanitizer
6969
FUZZER_INCLUDES=${COMPILER_RT}/include/fuzzer
7070
run_lint ${SANITIZER_INCLUDES_LINT_FILTER} ${SANITIZER_INCLUDES}/*.h \
71-
${FUZZER_INCLUDES}/*.h &
71+
${FUZZER_INCLUDES}/*.hpp &
7272

7373
# Sanitizer_common
7474
COMMON_RTL=${COMPILER_RT}/lib/sanitizer_common

0 commit comments

Comments
 (0)