summaryrefslogtreecommitdiffstats
path: root/build/clang-plugin/mozsearch-plugin/BindingOperations.h
diff options
context:
space:
mode:
Diffstat (limited to 'build/clang-plugin/mozsearch-plugin/BindingOperations.h')
-rw-r--r--build/clang-plugin/mozsearch-plugin/BindingOperations.h17
1 files changed, 17 insertions, 0 deletions
diff --git a/build/clang-plugin/mozsearch-plugin/BindingOperations.h b/build/clang-plugin/mozsearch-plugin/BindingOperations.h
new file mode 100644
index 0000000000..259594c5c3
--- /dev/null
+++ b/build/clang-plugin/mozsearch-plugin/BindingOperations.h
@@ -0,0 +1,17 @@
+/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
+/* This Source Code Form is subject to the terms of the Mozilla Public
+ * License, v. 2.0. If a copy of the MPL was not distributed with this
+ * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
+
+#include <clang/AST/ASTContext.h>
+#include <clang/AST/Decl.h>
+#include <clang/AST/DeclCXX.h>
+#include <llvm/Support/JSON.h>
+
+void findBindingToJavaClass(clang::ASTContext &C, clang::CXXRecordDecl &klass);
+void findBoundAsJavaClasses(clang::ASTContext &C, clang::CXXRecordDecl &klass);
+void findBindingToJavaFunction(clang::ASTContext &C, clang::FunctionDecl &function);
+void findBindingToJavaMember(clang::ASTContext &C, clang::CXXMethodDecl &method);
+void findBindingToJavaConstant(clang::ASTContext &C, clang::VarDecl &field);
+
+void emitBindingAttributes(llvm::json::OStream &json, const clang::Decl &decl);