summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Fuzzer/FuzzerInterface.h
diff options
context:
space:
mode:
authorKostya Serebryany <kcc@google.com>2015-09-10 16:57:57 +0000
committerKostya Serebryany <kcc@google.com>2015-09-10 16:57:57 +0000
commita938bcb89a9669b8ca09dd4c282aa103166d5829 (patch)
tree0b6a4afa36ca569365a5cea9403abcee358b4afa /llvm/lib/Fuzzer/FuzzerInterface.h
parentf3aff3140185e9d24acc4cc0672b620c02c70a58 (diff)
downloadbcm5719-llvm-a938bcb89a9669b8ca09dd4c282aa103166d5829.tar.gz
bcm5719-llvm-a938bcb89a9669b8ca09dd4c282aa103166d5829.zip
[libFuzzer] add two more variants of FuzzerDriver for convenience
llvm-svn: 247300
Diffstat (limited to 'llvm/lib/Fuzzer/FuzzerInterface.h')
-rw-r--r--llvm/lib/Fuzzer/FuzzerInterface.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/llvm/lib/Fuzzer/FuzzerInterface.h b/llvm/lib/Fuzzer/FuzzerInterface.h
index d5af308be76..7f7d608800d 100644
--- a/llvm/lib/Fuzzer/FuzzerInterface.h
+++ b/llvm/lib/Fuzzer/FuzzerInterface.h
@@ -18,6 +18,8 @@
#include <cstddef>
#include <cstdint>
+#include <vector>
+#include <string>
namespace fuzzer {
@@ -162,6 +164,10 @@ class UserSuppliedFuzzer {
/// Runs the fuzzing with the UserSuppliedFuzzer.
int FuzzerDriver(int argc, char **argv, UserSuppliedFuzzer &USF);
+/// More C++-ish interface.
+int FuzzerDriver(const std::vector<std::string> &Args, UserSuppliedFuzzer &USF);
+int FuzzerDriver(const std::vector<std::string> &Args, UserCallback Callback);
+
} // namespace fuzzer
#endif // LLVM_FUZZER_INTERFACE_H
OpenPOWER on IntegriCloud