1 //===-- DeclVendor.h --------------------------------------------*- C++ -*-===//
3 // The LLVM Compiler Infrastructure
5 // This file is distributed under the University of Illinois Open Source
6 // License. See LICENSE.TXT for details.
8 //===----------------------------------------------------------------------===//
10 #ifndef liblldb_DeclVendor_h_
11 #define liblldb_DeclVendor_h_
13 #include "lldb/Core/ClangForward.h"
17 namespace lldb_private {
19 //----------------------------------------------------------------------
20 // The Decl vendor class is intended as a generic interface to search
21 // for named declarations that are not necessarily backed by a specific
23 //----------------------------------------------------------------------
26 //------------------------------------------------------------------
27 // Constructors and Destructors
28 //------------------------------------------------------------------
31 virtual ~DeclVendor() {}
33 //------------------------------------------------------------------
34 /// Look up the set of Decls that the DeclVendor currently knows about
35 /// matching a given name.
38 /// The name to look for.
41 /// If true, FindDecls will clear "decls" when it starts.
43 /// @param[in] max_matches
44 /// The maximum number of Decls to return. UINT32_MAX means "as
45 /// many as possible."
48 /// The number of Decls added to decls; will not exceed
50 //------------------------------------------------------------------
51 virtual uint32_t FindDecls(const ConstString &name, bool append,
53 std::vector<clang::NamedDecl *> &decls) = 0;
56 //------------------------------------------------------------------
57 // For DeclVendor only
58 //------------------------------------------------------------------
59 DISALLOW_COPY_AND_ASSIGN(DeclVendor);
62 } // namespace lldb_private