1//===-- ClangDeclVendor.h ---------------------------------------*- C++ -*-===// 2// 3// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. 4// See https://llvm.org/LICENSE.txt for license information. 5// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception 6// 7//===----------------------------------------------------------------------===// 8 9#ifndef liblldb_ClangDeclVendor_h_ 10#define liblldb_ClangDeclVendor_h_ 11 12#include "lldb/Core/ClangForward.h" 13#include "lldb/Symbol/DeclVendor.h" 14 15namespace lldb_private { 16 17// A clang specialized extension to DeclVendor. 18class ClangDeclVendor : public DeclVendor { 19public: 20 ClangDeclVendor(DeclVendorKind kind) : DeclVendor(kind) {} 21 22 virtual ~ClangDeclVendor() {} 23 24 using DeclVendor::FindDecls; 25 26 uint32_t FindDecls(ConstString name, bool append, uint32_t max_matches, 27 std::vector<clang::NamedDecl *> &decls); 28 29 static bool classof(const DeclVendor *vendor) { 30 return vendor->GetKind() >= eClangDeclVendor && 31 vendor->GetKind() < eLastClangDeclVendor; 32 } 33 34private: 35 DISALLOW_COPY_AND_ASSIGN(ClangDeclVendor); 36}; 37} // namespace lldb_private 38 39#endif 40