summaryrefslogtreecommitdiff
path: root/gnu/llvm/clang/tools/clang-fuzzer/handle-llvm/handle_llvm.h
diff options
context:
space:
mode:
Diffstat (limited to 'gnu/llvm/clang/tools/clang-fuzzer/handle-llvm/handle_llvm.h')
-rw-r--r--gnu/llvm/clang/tools/clang-fuzzer/handle-llvm/handle_llvm.h24
1 files changed, 24 insertions, 0 deletions
diff --git a/gnu/llvm/clang/tools/clang-fuzzer/handle-llvm/handle_llvm.h b/gnu/llvm/clang/tools/clang-fuzzer/handle-llvm/handle_llvm.h
new file mode 100644
index 00000000000..36e1a5f1aa1
--- /dev/null
+++ b/gnu/llvm/clang/tools/clang-fuzzer/handle-llvm/handle_llvm.h
@@ -0,0 +1,24 @@
+//==-- handle_llvm.h - Helper function for Clang fuzzers -------------------==//
+//
+// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
+// See https://llvm.org/LICENSE.txt for license information.
+// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
+//
+//===----------------------------------------------------------------------===//
+//
+// Defines HandleLLVM for use by the Clang fuzzers.
+//
+//===----------------------------------------------------------------------===//
+
+#ifndef LLVM_CLANG_TOOLS_CLANG_FUZZER_HANDLE_LLVM_HANDLELLVM_H
+#define LLVM_CLANG_TOOLS_CLANG_FUZZER_HANDLE_LLVM_HANDLELLVM_H
+
+#include <string>
+#include <vector>
+
+namespace clang_fuzzer {
+void HandleLLVM(const std::string &S,
+ const std::vector<const char *> &ExtraArgs);
+} // namespace clang_fuzzer
+
+#endif