History log of /llvm-project/clang/lib/Sema/SemaCodeComplete.cpp (Results 576 – 600 of 748)
Revision (<<< Hide revision tags) (Show revision tags >>>) Date Author Comments
# ec00a268 24-Aug-2010 Douglas Gregor <dgregor@apple.com>

Implement code completion for preprocessor expressions and in macro
arguments.

llvm-svn: 111976


# 5c32be00 24-Aug-2010 John McCall <rjmccall@apple.com>

Move some of SemaOverload's API to various places in Overload.h, and kill
some of it off completely.

llvm-svn: 111957


# 12785108 24-Aug-2010 Douglas Gregor <dgregor@apple.com>

Implement preprocessor code completion where a macro name is expected,
e.g., after #ifdef/#ifndef or #undef, or inside a defined <macroname>
expression in a preprocessor conditional.

llvm-svn: 111954


# 3a7ad25e 24-Aug-2010 Douglas Gregor <dgregor@apple.com>

Introduce basic code-completion support for preprocessor directives,
e.g., after a "#" we'll suggest #if, #ifdef, etc.

llvm-svn: 111943


# e90dd00c 24-Aug-2010 Douglas Gregor <dgregor@apple.com>

When providing completions for a function or method argument that
corresponds to a block pointer, provide the skeleton of a block
literal.

llvm-svn: 111918


# cc14d1fd 24-Aug-2010 John McCall <rjmccall@apple.com>

More header elimination. The goal of all this is to allow Parser to
#include Sema.h while keeping all the AST declarations opaque. That may
not be reasonably attainable, though.

llvm-svn: 111907


# de6836a3 24-Aug-2010 John McCall <rjmccall@apple.com>

Struggle mightily against header inclusion in Sema.h.

llvm-svn: 111904


# dadc575b 24-Aug-2010 John McCall <rjmccall@apple.com>

OwningExprResult -> ExprResult. This patch brought to you by
M-x query-replace-regexp
\(Sema::\|Action::\|Parser::\|\)Owning\(Expr\|Stmt\)Result -> \2Result

llvm-svn: 111903


# ba7bf595 24-Aug-2010 John McCall <rjmccall@apple.com>

Abstract out passing around types and kill off ActionBase.

llvm-svn: 111901


# 56ccce00 24-Aug-2010 Douglas Gregor <dgregor@apple.com>

State explicitly that we are intentionally not providing macro completions for declarator name completions

llvm-svn: 111898


# f02e5f3a 24-Aug-2010 Douglas Gregor <dgregor@apple.com>

Consistently switch on PCC_Type

llvm-svn: 111888


# 99fa264a 24-Aug-2010 Douglas Gregor <dgregor@apple.com>

Provide code completion results for the context-sensitive Objective-C
keywords "in", "out", "inout", "byref", "bycopy", and "oneway".

llvm-svn: 111884


# dbb71db4 23-Aug-2010 Douglas Gregor <dgregor@apple.com>

When calling a function or messaging a method marked "sentinel", add
the ", nil", ", NULL", or ", (void*)0" to the end of the code
completion, since it always has to be there anyway.

llvm-svn: 111867


# ce0e8568 23-Aug-2010 Douglas Gregor <dgregor@apple.com>

Include __FUNCTION__, __PRETTY_FUNCTION_, __func__ in code-completion
results for expression contexts within a function.

llvm-svn: 111851


# 68762e78 23-Aug-2010 Douglas Gregor <dgregor@apple.com>

Introduce a code-completion hook for the Objective-C collection
argument in a for-each statement (e.g., "for (id x in <blah>)"), which
restricts the expression completions provided to Objective-C typ

Introduce a code-completion hook for the Objective-C collection
argument in a for-each statement (e.g., "for (id x in <blah>)"), which
restricts the expression completions provided to Objective-C types (or
class types in C++).

llvm-svn: 111843

show more ...


# 2529b55b 23-Aug-2010 Douglas Gregor <dgregor@apple.com>

Don't include macro results when we're completing a declarator.

llvm-svn: 111830


# c49f5b2f 23-Aug-2010 Douglas Gregor <dgregor@apple.com>

Introduce a new code-completion point when we're parsing a
declarator. Here, we can only see a few things (e.g., cvr-qualifiers,
nested name specifiers) and we do not want to provide other non-macro

Introduce a new code-completion point when we're parsing a
declarator. Here, we can only see a few things (e.g., cvr-qualifiers,
nested name specifiers) and we do not want to provide other non-macro
completions. Previously, we would end up in recovery mode and would
provide a large number of non-relevant completions.

llvm-svn: 111818

show more ...


# 48871651 21-Aug-2010 John McCall <rjmccall@apple.com>

DeclPtrTy -> Decl *

llvm-svn: 111733


# d44cd6ad 18-Aug-2010 Sebastian Redl <sebastian.redl@getdesigned.at>

More PCH -> AST renaming.

llvm-svn: 111472


# e876fcd7 18-Aug-2010 Chris Lattner <sabre@nondot.org>

zap a big dead method.

llvm-svn: 111346


# 7116a8c1 17-Aug-2010 Douglas Gregor <dgregor@apple.com>

When generating code completion patterns for method declarations, give
the resulting pattern the appropriate cursor kind of an instance or
class method declaration.

llvm-svn: 111237


# b0ce9b79 17-Aug-2010 Douglas Gregor <dgregor@apple.com>

1 != I. Fix the formulation of code-completion patterns for
Objective-C method declarations with > 2 parameters.

llvm-svn: 111233


# 59cab556 16-Aug-2010 Douglas Gregor <dgregor@apple.com>

Implement support for cached code completions for
nested-name-specifiers. Also includes fixes to the generation of
nested-name-specifier result in the non-cached case; we were producing
lame results

Implement support for cached code completions for
nested-name-specifiers. Also includes fixes to the generation of
nested-name-specifier result in the non-cached case; we were producing
lame results for namespaces and namespace aliases, which (1) didn't
always have nested-name-specifiers when we want them, and (2) did not
have the necessary "::" as part of the completion.

llvm-svn: 111203

show more ...


# 6e24033b 16-Aug-2010 Douglas Gregor <dgregor@apple.com>

When caching global completion results, keep track of the simplified
type class, so that we can adjust priorities appropriately when the
preferred type for the context and the actual type of the comp

When caching global completion results, keep track of the simplified
type class, so that we can adjust priorities appropriately when the
preferred type for the context and the actual type of the completion
are similar.

This gets us one step closer to parity of the cached completion
results with the non-cached completion results.

llvm-svn: 111139

show more ...


# 39982197 15-Aug-2010 Douglas Gregor <dgregor@apple.com>

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 comple

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

show more ...


1...<<21222324252627282930