r236691 - fix clang-fuzzer and clang-format-fuzzer

Kostya Serebryany kcc at google.com
Wed May 6 21:01:39 PDT 2015


Author: kcc
Date: Wed May  6 23:01:39 2015
New Revision: 236691

URL: http://llvm.org/viewvc/llvm-project?rev=236691&view=rev
Log:
fix clang-fuzzer and clang-format-fuzzer 

Modified:
    cfe/trunk/tools/clang-format/fuzzer/ClangFormatFuzzer.cpp
    cfe/trunk/tools/clang-fuzzer/ClangFuzzer.cpp

Modified: cfe/trunk/tools/clang-format/fuzzer/ClangFormatFuzzer.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/tools/clang-format/fuzzer/ClangFormatFuzzer.cpp?rev=236691&r1=236690&r2=236691&view=diff
==============================================================================
--- cfe/trunk/tools/clang-format/fuzzer/ClangFormatFuzzer.cpp (original)
+++ cfe/trunk/tools/clang-format/fuzzer/ClangFormatFuzzer.cpp Wed May  6 23:01:39 2015
@@ -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);

Modified: cfe/trunk/tools/clang-fuzzer/ClangFuzzer.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/tools/clang-fuzzer/ClangFuzzer.cpp?rev=236691&r1=236690&r2=236691&view=diff
==============================================================================
--- cfe/trunk/tools/clang-fuzzer/ClangFuzzer.cpp (original)
+++ cfe/trunk/tools/clang-fuzzer/ClangFuzzer.cpp Wed May  6 23:01:39 2015
@@ -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");





More information about the cfe-commits mailing list