summaryrefslogtreecommitdiffstats
path: root/clang/test/Index/complete-at-exprstmt.m
Commit message (Collapse)AuthorAgeFilesLines
* Provide result types for code completions that describe built-inDouglas Gregor2011-10-181-3/+3
| | | | | | expressions (this, sizeof, etc.). llvm-svn: 142424
* Support code-completion for C++ inline methods and ObjC buffering methods.Argyrios Kyrtzidis2011-09-041-1/+0
| | | | | | | | | | | | | | Previously we would cut off the source file buffer at the code-completion point; this impeded code-completion inside C++ inline methods and, recently, with buffering ObjC methods. Have the code-completion inserted into the source buffer so that it can be buffered along with a method body. When we actually hit the code-completion point the cut-off lexing or parsing. Fixes rdar://10056932&8319466 llvm-svn: 139086
* objective-c - This patch buffers method implementations Fariborz Jahanian2011-08-311-0/+1
| | | | | | | | | | | | | and does the Sema on their body after the entire class/category @implementation is seen. This change allows messaging of forward private methods, as well as, access to synthesized ivars of properties with foward synthesize declarations; among others. In effect, this patch removes several restrictions placed on objective-c due to in-place semantics processing of methods. This is part of // rdar://8843851. llvm-svn: 138865
* Tweak code-completion result priorities, so that exact and similarDouglas Gregor2010-10-191-5/+5
| | | | | | | | | type matches have a bigger impact. The impetus for this change was that, when initializing an enumeration value, we want enumerators of that enumeration type to have a higher priority than, e.g., unrelated local variables. llvm-svn: 116774
* Switch c-index-test from clang_codeComplete() over toDouglas Gregor2010-10-111-3/+3
| | | | | | | | | | clang_codeCompleteAt(). This uncovered a few issues with the latter: - ASTUnit wasn't saving/restoring diagnostic state appropriately between reparses and code completions. - "Overload" completions weren't being passed through to the client llvm-svn: 116241
* Tweak the @selector completion to collapse multiple informative andDouglas Gregor2010-08-261-3/+3
| | | | | | typed-text blocks into one of each. llvm-svn: 112194
* Implement code completion for @selector expressionsDouglas Gregor2010-08-261-0/+18
| | | | llvm-svn: 112186
* Only enable code patterns (e.g., try { statements } catch (...) {Douglas Gregor2010-05-251-3/+3
| | | | | | statements }) in the code-completion results if explicitly requested. llvm-svn: 104637
* Do not produce semicolons at the end of code-completion resultsDouglas Gregor2010-04-061-2/+2
| | | | llvm-svn: 100557
* Switch code-completion for ordinary names over to the new(ish)Douglas Gregor2010-01-141-1/+2
| | | | | | | | | | LookupVisibleDecls, unifying the name lookup mechanisms used by code completion and typo correction. Aside from the software-engineering improvements, this makes code-completion see through using directives and see ivars when performing unqualified name lookup in an Objective-C instance method. llvm-svn: 93397
* Improve the sorting of code-completion results. We now always sort byDouglas Gregor2010-01-131-6/+6
| | | | | | | | the "typed" text, first, then take into account nested-name-specifiers, name hiding, etc. This means that the resulting sort is actually alphabetical :) llvm-svn: 93370
* Whenever completing ordinary names for an Objective-C source, alsoDouglas Gregor2010-01-131-1/+14
| | | | | | | | | | | provide completions for @ keywords. Previously, we only provided @-completions after an @ was actually typed, which is useful but probably not the common case. Also, make sure a few Objective-C 2.0 completions only show up when Objective-C 2.0 support is enabled (the default). llvm-svn: 93354
* Fix tests for r93231.Benjamin Kramer2010-01-121-1/+1
| | | | llvm-svn: 93238
* Use horizontal-space markers in code-completion results rather thanDouglas Gregor2010-01-121-2/+2
| | | | | | embedding single space characters. <rdar://problem/7485503> llvm-svn: 93231
* Code completion for Objective-C @ keywords that are statements or expressionsDouglas Gregor2009-12-071-0/+23
llvm-svn: 90757
OpenPOWER on IntegriCloud