forked from OSchip/llvm-project
fix clang-fuzzer and clang-format-fuzzer
llvm-svn: 236691
This commit is contained in:
parent
d9ba224f66
commit
9ba68b3566
|
@ -15,7 +15,7 @@
|
|||
|
||||
#include "clang/Format/Format.h"
|
||||
|
||||
extern "C" void TestOneInput(uint8_t *data, size_t size) {
|
||||
extern "C" void LLVMFuzzerTestOneInput(uint8_t *data, size_t size) {
|
||||
// FIXME: fuzz more things: different styles, different style features.
|
||||
std::string s((const char *)data, size);
|
||||
auto Style = getGoogleStyle(clang::format::FormatStyle::LK_Cpp);
|
||||
|
|
|
@ -20,7 +20,7 @@
|
|||
|
||||
using namespace clang;
|
||||
|
||||
extern "C" void TestOneInput(uint8_t *data, size_t size) {
|
||||
extern "C" void LLVMFuzzerTestOneInput(uint8_t *data, size_t size) {
|
||||
std::string s((const char *)data, size);
|
||||
llvm::opt::ArgStringList CC1Args;
|
||||
CC1Args.push_back("-cc1");
|
||||
|
|
Loading…
Reference in New Issue