summaryrefslogtreecommitdiffstats
path: root/include/clang/Sema/CodeCompleteConsumer.h
diff options
context:
space:
mode:
authorDouglas Gregor <dgregor@apple.com>2010-09-03 23:30:36 +0000
committerDouglas Gregor <dgregor@apple.com>2010-09-03 23:30:36 +0000
commite8d7bebc0dd037516dd695ee1ac2eb0923753b46 (patch)
tree9e1129df37bbdafe6ce6e8c3f73e9ea0fac343da /include/clang/Sema/CodeCompleteConsumer.h
parent469a20de757ff872c90ff6b1134f6346909ff652 (diff)
Synchronize code-completion cursor kinds with indexing cursor
kinds. How shameful that this code was duplicated! git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@113033 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/clang/Sema/CodeCompleteConsumer.h')
-rw-r--r--include/clang/Sema/CodeCompleteConsumer.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/include/clang/Sema/CodeCompleteConsumer.h b/include/clang/Sema/CodeCompleteConsumer.h
index c8799372ab..6c1ecbf2cc 100644
--- a/include/clang/Sema/CodeCompleteConsumer.h
+++ b/include/clang/Sema/CodeCompleteConsumer.h
@@ -27,6 +27,8 @@ namespace llvm {
namespace clang {
+class Decl;
+
/// \brief Default priority values for code-completion results based
/// on their kind.
enum {
@@ -122,6 +124,10 @@ QualType getDeclUsageType(ASTContext &C, NamedDecl *ND);
unsigned getMacroUsagePriority(llvm::StringRef MacroName,
bool PreferredTypeIsPointer = false);
+/// \brief Determine the libclang cursor kind associated with the given
+/// declaration.
+CXCursorKind getCursorKindForDecl(Decl *D);
+
class FunctionDecl;
class FunctionType;
class FunctionTemplateDecl;