]> granicus.if.org Git - clang/commit
Introduce a new libclang API to determine the parent context of a code
authorDouglas Gregor <dgregor@apple.com>
Tue, 27 Mar 2012 23:34:16 +0000 (23:34 +0000)
committerDouglas Gregor <dgregor@apple.com>
Tue, 27 Mar 2012 23:34:16 +0000 (23:34 +0000)
commitba1030698dbc276db86b11c5329a1edee8a1805e
tree05795b249632407ea75e576411c56c9078255b80
parent2259286fc5c1514089b17ec93e26ca56ba8ac2b6
Introduce a new libclang API to determine the parent context of a code
completion item. For example, if the code completion itself represents
a declaration in a namespace (say, std::vector), then this API
retrieves the cursor kind and name of the namespace (std). Implements
<rdar://problem/11121951>.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@153545 91177308-0d34-0410-b5e6-96231b3b80d8
12 files changed:
include/clang-c/Index.h
include/clang/Sema/CodeCompleteConsumer.h
lib/AST/Decl.cpp
lib/Sema/CodeCompleteConsumer.cpp
lib/Sema/SemaCodeComplete.cpp
test/Index/complete-exprs.cpp
test/Index/complete-method-decls.m
test/Index/complete-objc-message.m
test/Index/complete-qualified.cpp
tools/c-index-test/c-index-test.c
tools/libclang/CIndexCodeCompletion.cpp
tools/libclang/libclang.exports