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 | 0a0e2b3631a1c95c280f20d839e82eb9a7647b09 (patch) | |
| tree | 01dbf12bc11decb59fd1e5bd941d0ceca6159457 /clang/tools/libclang | |
| parent | 8c6eeb9599456a8ed12e8ce280e12b1e52abe031 (diff) | |
| download | bcm5719-llvm-0a0e2b3631a1c95c280f20d839e82eb9a7647b09.tar.gz bcm5719-llvm-0a0e2b3631a1c95c280f20d839e82eb9a7647b09.zip | |
Allow the computation of the base priority for a declaration code completion result to consider the completion context
llvm-svn: 174037
Diffstat (limited to 'clang/tools/libclang')
| -rw-r--r-- | clang/tools/libclang/CXCursor.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/tools/libclang/CXCursor.cpp b/clang/tools/libclang/CXCursor.cpp index b7a5b306348..cd81e99aeec 100644 --- a/clang/tools/libclang/CXCursor.cpp +++ b/clang/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(), |

