teak-llvm/clang/test/Index
Douglas Gregor b61c07aca0 When caching code completions for global declarations, keep track of
the usage type of each declaration result, then compare those types to
the preferred type of the completion. This provides parity in the
priority calculation between the code-completion results produced
directly from Sema and those cached by ASTUnit. 

For the standard Cocoa.h (+ others) example, there's a penalty of 3-4
hundredeths of a second when caching the global results (for ~31,000
results), because we need an ASTContext-agnostic representation of
types for the comparison, and therefore we use... strings. Eventually,
we'd like to implement a more efficient ASTContext-agnostic encoding
of types.

llvm-svn: 111165
2010-08-16 18:08:11 +00:00
..
Inputs When using a precompiled preamble, save the diagnostics produced when 2010-08-02 20:51:39 +00:00
annotate-tokens-include.c Workaround a really serious caching bug in SourceManager::isBeforeInTranslationUnit() where the 2010-05-06 00:22:25 +00:00
annotate-tokens-include.h Workaround a really serious caching bug in SourceManager::isBeforeInTranslationUnit() where the 2010-05-06 00:22:25 +00:00
annotate-tokens-pp.c 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
annotate-tokens.c Teach the libclang cursor visitor to walk into the type information 2010-08-10 15:02:34 +00:00
annotate-tokens.cpp Visit the children of CXXOperatorCallExprs in source order within 2010-07-29 00:26:18 +00:00
annotate-tokens.m Revert "Move macro definitions for IBOutlet and IBAction into the source 2010-05-12 21:54:41 +00:00
blocks.c Add indexing support for the block and @property type location information 2010-06-04 22:33:30 +00:00
c-index-api-loadTU-test.m Add test case that was causing an infinite loop when reading PCH files. The test works with ToT Clang already 2010-07-14 04:45:33 +00:00
c-index-getCursor-pp.c Visit preprocessing elements (macro instantiations and macro 2010-03-19 05:22:59 +00:00
c-index-getCursor-test.m Robustify PreprocessingRecord slightly, by only creating macro 2010-03-19 21:58:23 +00:00
c-index-pch.c Update tests to use %clang_cc1 instead of 'clang-cc' or 'clang -cc1'. 2009-12-15 20:14:24 +00:00
cindex-from-source.m Introduce a new libclang API, clang_reparseTranslationUnit(), which 2010-07-19 21:46:24 +00:00
cindex-on-invalid.m Update test case since c-index-test now works on invalid sources. 2010-03-26 01:34:53 +00:00
cindex-test-inclusions.c Implement 'clang_getInclusions()' in CIndex. This API allows clients to walk the set of files included in a translation unit via the C API. 2010-01-26 19:31:51 +00:00
code-complete-errors.c Make the "extra ';' inside a struct or union" diagnostic more 2010-06-16 23:08:59 +00:00
code-completion.cpp Teach code completion not to ignore data members when performing code 2010-06-15 20:26:51 +00:00
complete-at-directives.m Do not produce types as valid code completions when we're in an 2010-05-28 00:49:12 +00:00
complete-at-exprstmt.m Only enable code patterns (e.g., try { statements } catch (...) { 2010-05-25 21:41:55 +00:00
complete-categories.m De-XFAIL some win32 tests that are now passing 2010-02-21 20:58:24 +00:00
complete-enums.c Extend the type printing policy to allow one to turn off the printing 2010-04-05 21:25:31 +00:00
complete-exprs.c When caching code completions for global declarations, keep track of 2010-08-16 18:08:11 +00:00
complete-interfaces.m Code completion for Objective-C class names after @interface, 2009-11-18 16:26:39 +00:00
complete-macros.c When caching global completion results, keep track of the simplified 2010-08-16 16:18:59 +00:00
complete-member-access.m Introduce priorities into the code-completion results. 2010-05-26 22:00:08 +00:00
complete-method-decls.m Support code completion for parameter names in Objective-C method 2010-07-08 23:37:41 +00:00
complete-objc-message-id.m When sending a message to "id", apply some heuristics to try to narrow 2010-04-06 19:22:33 +00:00
complete-objc-message.m Implement a code-completion hook for the receiver of an Objective-C 2010-05-27 23:06:34 +00:00
complete-pch.m Make code-completion for Objective-C message sends to "id" work in the 2010-04-06 17:30:22 +00:00
complete-properties.m De-XFAIL some win32 tests that are now passing 2010-02-21 20:58:24 +00:00
complete-property-flags.m Improve the accuracy of code completion for the attributes of an @property declaration, so that we don't produce completions for attributes that would conflict with already-specified attributes 2009-11-19 00:14:45 +00:00
complete-property-getset.m Extend code-completion results with the type of each result 2009-12-18 18:53:37 +00:00
complete-protocols.m Code completion after @property, providing the names of forward-declared properties 2009-11-18 04:49:41 +00:00
complete-recovery.m Do not produce types as valid code completions when we're in an 2010-05-28 00:49:12 +00:00
complete-tabs.c Add a test case for code-completion in the presence of tabs 2010-01-07 00:40:35 +00:00
complete-type-factors.m Unbreak non-Darwin builds 2010-05-30 04:00:50 +00:00
complete-unterminated.c Don't emit end-of-file diagnostics like "unterminated conditional" or 2010-08-12 17:04:55 +00:00
cxx-operator-overload.cpp Update tests to use %clang_cc1 instead of 'clang-cc' or 'clang -cc1'. 2009-12-15 20:14:24 +00:00
include_test_2.h Implement 'clang_getInclusions()' in CIndex. This API allows clients to walk the set of files included in a translation unit via the C API. 2010-01-26 19:31:51 +00:00
include_test.h Implement 'clang_getInclusions()' in CIndex. This API allows clients to walk the set of files included in a translation unit via the C API. 2010-01-26 19:31:51 +00:00
invalid-code-rdar_7833619.m Fix CIndex crash on invalid code reported in <rdar://problem/7833619>. 2010-04-07 00:27:13 +00:00
invalid-rdar-8236270.cpp Add test case for crash reported in <rdar://problem/8236270> (which has since been fixed in trunk). 2010-07-30 01:10:48 +00:00
linkage.c c-index-test's printing of linkage was completely broken, as was the 2010-03-04 19:36:27 +00:00
load-exprs.c Unbreak test on windows. 2010-04-11 22:25:18 +00:00
load-stmts.cpp Specially handle CaseStmts in CursorVisitor because they can be nested and walking them 2010-05-13 00:25:00 +00:00
local-symbols.m Workaround: Don't add ObjCMethodDecls to the vector of TopLevelDecls since they don't go in 2010-05-03 20:16:35 +00:00
preamble.c Implement clang_saveTranslationUnit(), which saves a translation unit 2010-08-13 05:36:37 +00:00
print-typekind.c Add clang_isPODType() for querying if the CXType is POD. Implements <rdar://problem/8250669>. 2010-07-30 00:14:11 +00:00
print-typekind.m Add CXType support for querying the return type of Objective-C methods. This is done by 2010-06-21 20:48:56 +00:00
print-usrs.c Rework USR generation for symbols with no linkage. Many of the USRs are now shortened, 2010-04-16 21:31:52 +00:00
properties-class-extensions.m Teach CursorVisitor about duplicate ObjCPropertyDecls that can arise because of a current 2010-05-18 21:09:07 +00:00
rdar-8288645-invalid-code.mm Add test case for <rdar://problem/8288645>. While this is fixed in trunk, we previously were getting the following assertion failure not too long ago: 2010-08-10 22:30:29 +00:00
recover-bad-code-rdar_7487294.c Don't skip past the '}' if an expression has error and is not followed by ';'. 2010-03-31 00:37:59 +00:00
remap-complete.c Make sure that we have File IDs for all of the unsaved files before we 2010-03-24 21:04:06 +00:00
remap-cursor-at.c CIndex: Use 'env' instead of relying on bash environment-variable setting 2010-02-02 05:20:37 +00:00
remap-load.c Re-apply r103581 with updated tests. It turns out we were computing bogus locations for 2010-05-12 06:16:13 +00:00
TestClassDecl.m Implement clang_saveTranslationUnit(), which saves a translation unit 2010-08-13 05:36:37 +00:00
TestClassForwardDecl.m c-index-test: Unify and always print half-open extents. 2010-02-14 08:32:51 +00:00
usrs.cpp Update test case to include USRs containing offsets instead of line/columns. 2010-07-22 11:30:17 +00:00
usrs.m 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