diff options
author | Douglas Gregor <dgregor@apple.com> | 2013-01-31 04:52:16 +0000 |
---|---|---|
committer | Douglas Gregor <dgregor@apple.com> | 2013-01-31 04:52:16 +0000 |
commit | d1f09b482b3874be07dfe9dd24bfad98915989c3 (patch) | |
tree | 49f1419c2470fcb129ff12fa1266e3574a91c75e /tools/libclang/CXCursor.cpp | |
parent | 0efa62f2096f28a610ac2ea8d2651448a7ec89c7 (diff) |
Allow the computation of the base priority for a declaration code completion result to consider the completion context
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@174037 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'tools/libclang/CXCursor.cpp')
-rw-r--r-- | tools/libclang/CXCursor.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/libclang/CXCursor.cpp b/tools/libclang/CXCursor.cpp index b7a5b30634..cd81e99aee 100644 --- a/tools/libclang/CXCursor.cpp +++ b/tools/libclang/CXCursor.cpp @@ -1043,7 +1043,7 @@ CXCompletionString clang_getCursorCompletionString(CXCursor cursor) { const Decl *decl = getCursorDecl(cursor); if (const NamedDecl *namedDecl = dyn_cast_or_null<NamedDecl>(decl)) { ASTUnit *unit = getCursorASTUnit(cursor); - CodeCompletionResult Result(namedDecl); + CodeCompletionResult Result(namedDecl, CCP_Declaration); CodeCompletionString *String = Result.CreateCodeCompletionString(unit->getASTContext(), unit->getPreprocessor(), |