summaryrefslogtreecommitdiff
path: root/gnu/llvm/clang/tools/clang-fuzzer/handle-llvm/handle_llvm.h
diff options
context:
space:
mode:
authorPatrick Wildt <patrick@cvs.openbsd.org>2020-08-03 14:33:11 +0000
committerPatrick Wildt <patrick@cvs.openbsd.org>2020-08-03 14:33:11 +0000
commit7e0762870f961466d585c29c6992b4dd4608d2e6 (patch)
treeb72d390e2fad5ebc43a5b207e070bddcb30a9b85 /gnu/llvm/clang/tools/clang-fuzzer/handle-llvm/handle_llvm.h
parentbaa63be6f620fe92580888c3118df95dccdb98af (diff)
Import LLVM 10.0.0 release including clang, lld and lldb.
ok hackroom tested by plenty
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