]> granicus.if.org Git - clang/commit
Eliminate cursor kinds used to express definitions. Instead, provide
authorDouglas Gregor <dgregor@apple.com>
Tue, 19 Jan 2010 19:34:47 +0000 (19:34 +0000)
committerDouglas Gregor <dgregor@apple.com>
Tue, 19 Jan 2010 19:34:47 +0000 (19:34 +0000)
commitb699866820102a69d83d6ac6941985c5ef4e8c40
treeb8e905190ac4c390edfb8ba3d419c9d72b548fb3
parent2e8f00c8d632b6cd7c73f9103ea74c4d90c7bf23
Eliminate cursor kinds used to express definitions. Instead, provide
CIndex functions that (1) map from a reference or declaration to the
corresponding definition, if available, and (2) determine whether a
given declaration cursor is also a definition. This eliminates a lot
of duplication in the cursor kinds, and maps more closely to the Clang
ASTs.

This is another API + ABI breaker with no deprecation. Yay, progress.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@93893 91177308-0d34-0410-b5e6-96231b3b80d8
include/clang-c/Index.h
lib/Sema/CodeCompleteConsumer.cpp
test/Index/TestClassDecl.m
test/Index/TestClassForwardDecl.m
test/Index/c-index-api-loadTU-test.m
test/Index/c-index-getCursor-test.m
test/Index/resolve-loc.c
tools/CIndex/CIndex.cpp
tools/CIndex/CIndex.exports
tools/CIndex/CXCursor.cpp
tools/c-index-test/c-index-test.c