llvm-project/clang/tools/libclang
Douglas Gregor 3998219789 Extend the code-completion caching infrastructure to include global
declarations (in addition to macros). Each kind of declaration maps to
a certain set of completion contexts, and the ASTUnit completion logic
introduces the completion strings for those declarations if the actual
code-completion occurs in one of the contexts where it matters. 

There are a few new code-completion-context kinds. Without these,
certain completions (e.g., after "using namespace") would need to
suppress all global completions, which would be unfortunate.

Note that we don't get the priorities right for global completions,
because we don't have enough type information. We'll need a way to
compare types in an ASTContext-agnostic way before this can be
implemented.

llvm-svn: 111093
2010-08-15 06:18:01 +00:00
..
CIndex.cpp Always recurse into sub-cursors when annotating tokens, as this information is used for annotating macro arguments. This finishes up <rdar://problem/8044584>. 2010-08-14 02:50:46 +00:00
CIndexCodeCompletion.cpp Extend the code-completion caching infrastructure to include global 2010-08-15 06:18:01 +00:00
CIndexDiagnostic.cpp Rename 'CIndex' to 'libclang', since it has basically become our stable public 2010-04-30 21:51:10 +00:00
CIndexDiagnostic.h Rename 'CIndex' to 'libclang', since it has basically become our stable public 2010-04-30 21:51:10 +00:00
CIndexInclusionStack.cpp Rename 'CIndex' to 'libclang', since it has basically become our stable public 2010-04-30 21:51:10 +00:00
CIndexUSRs.cpp Switch USR generation to use file offsets instead of line/columns for anonymous symbols. Fixes <rdar://problem/8221557>. 2010-07-22 11:14:15 +00:00
CIndexer.cpp When handling raw_ostream errors manually, use clear_error() so that 2010-05-27 20:16:37 +00:00
CIndexer.h Rename 'CIndex' to 'libclang', since it has basically become our stable public 2010-04-30 21:51:10 +00:00
CMakeLists.txt Don't pass -avoid-version to Darwin linker 2010-08-06 11:08:45 +00:00
CXCursor.cpp Reinstate the fix for PR7556. A silly use of isTrivial() was 2010-07-08 06:14:04 +00:00
CXCursor.h Rename 'CIndex' to 'libclang', since it has basically become our stable public 2010-04-30 21:51:10 +00:00
CXSourceLocation.h Per Doug's suggestion, move check for invalid SourceLocation into 2010-06-28 23:54:17 +00:00
CXTypes.cpp Add clang_isPODType() for querying if the CXType is POD. Implements <rdar://problem/8250669>. 2010-07-30 00:14:11 +00:00
Makefile build: Don't pass -avoid-version or -no-undefined on Darwin, they don't do 2010-07-31 21:33:01 +00:00
libclang.darwin.exports Add an options parameter to clang_saveTranslationUnit, because we'll want it later 2010-08-13 15:35:05 +00:00
libclang.exports Add an options parameter to clang_saveTranslationUnit, because we'll want it later 2010-08-13 15:35:05 +00:00