History log of /llvm-project/clang/lib/Sema/SemaCodeComplete.cpp (Results 426 – 450 of 748)
Revision (<<< Hide revision tags) (Show revision tags >>>) Date Author Comments
# 9489cdf2 10-Apr-2012 Douglas Gregor <dgregor@apple.com>

Don't include the ':' following code-completion suggestions for
'public', 'private', or 'protected', unless code completion patterns
are enabled. Fixes <rdar://problem/11189132>.

llvm-svn: 154413


# 9d7c0fef 10-Apr-2012 Argyrios Kyrtzidis <akyrtzi@gmail.com>

[code-complete] Introduce CodeCompletionTUInfo which will be used for caching
code-completion related strings specific to a translation unit (ASTContext and related data)

CodeCompletionAllocator doe

[code-complete] Introduce CodeCompletionTUInfo which will be used for caching
code-completion related strings specific to a translation unit (ASTContext and related data)

CodeCompletionAllocator does such limited caching, by caching the name assigned
to a DeclContext*, but that is not the appropriate place since that object has
a lifetime that can extend beyond that of an ASTContext.

Introduce CodeCompletionTUInfo which will be always tied to a translation unit
to do this kind of caching and move the caching of CodeCompletionAllocator into this
object, and propagate it to all the places where it will be needed.

The plan is to extend the caching where appropriate, using CodeCompletionTUInfo,
to avoid re-calculating code-completion strings.

Part of rdar://10796159.

llvm-svn: 154408

show more ...


# c3921484 03-Apr-2012 Nick Lewycky <nicholas@mxc.ca>

Remove more redundant lookups. Add a new "all_lookups_iterator" which provides
a view over the contents of a DeclContext without exposing the implementation
details of the StoredDeclsMap. Use this in

Remove more redundant lookups. Add a new "all_lookups_iterator" which provides
a view over the contents of a DeclContext without exposing the implementation
details of the StoredDeclsMap. Use this in LookupVisibleDecls to find the
visible declarations. Fixes PR12339!

llvm-svn: 153970

show more ...


# 78254c88 27-Mar-2012 Douglas Gregor <dgregor@apple.com>

Introduce a new libclang API to determine the parent context of a code
completion item. For example, if the code completion itself represents
a declaration in a namespace (say, std::vector), then thi

Introduce a new libclang API to determine the parent context of a code
completion item. For example, if the code completion itself represents
a declaration in a namespace (say, std::vector), then this API
retrieves the cursor kind and name of the namespace (std). Implements
<rdar://problem/11121951>.

llvm-svn: 153545

show more ...


# db534a4e 26-Mar-2012 Benjamin Kramer <benny.kra@googlemail.com>

Move CodeCompletionBuilder's chunk adding methods out of line.

This makes sense because chunk's ctor is also out of line and simplifies considerably
when inlined with a constant parameter. Shrinks c

Move CodeCompletionBuilder's chunk adding methods out of line.

This makes sense because chunk's ctor is also out of line and simplifies considerably
when inlined with a constant parameter. Shrinks clang on i386-linux-Release+Asserts by 65k.

llvm-svn: 153446

show more ...


# e7f3ef39 13-Mar-2012 Argyrios Kyrtzidis <akyrtzi@gmail.com>

[Sema] Prefer to use ObjCInterfaceDecl's protocol_begin()/protocol_end() iterators instead of
ObjCInterfaceDecl::getReferencedProtocols(), because the iterators are safe to use
even if the caller did

[Sema] Prefer to use ObjCInterfaceDecl's protocol_begin()/protocol_end() iterators instead of
ObjCInterfaceDecl::getReferencedProtocols(), because the iterators are safe to use
even if the caller did not check that the interface is a definition.

llvm-svn: 152597

show more ...


# bbafb8a7 11-Mar-2012 David Blaikie <dblaikie@gmail.com>

Unify naming of LangOptions variable/get function across the Clang stack (Lex to AST).

The member variable is always "LangOpts" and the member function is always "getLangOpts".

Reviewed by Chris La

Unify naming of LangOptions variable/get function across the Clang stack (Lex to AST).

The member variable is always "LangOpts" and the member function is always "getLangOpts".

Reviewed by Chris Lattner

llvm-svn: 152536

show more ...


# e65b086e 06-Mar-2012 Ted Kremenek <kremenek@apple.com>

Add clang support for new Objective-C literal syntax for NSDictionary, NSArray,
NSNumber, and boolean literals. This includes both Sema and Codegen support.
Included is also support for new Objectiv

Add clang support for new Objective-C literal syntax for NSDictionary, NSArray,
NSNumber, and boolean literals. This includes both Sema and Codegen support.
Included is also support for new Objective-C container subscripting.

My apologies for the large patch. It was very difficult to break apart.
The patch introduces changes to the driver as well to cause clang to link
in additional runtime support when needed to support the new language features.

Docs are forthcoming to document the implementation and behavior of these features.

llvm-svn: 152137

show more ...


# b24b9aa2 25-Feb-2012 Ahmed Charles <ace2001ac@gmail.com>

ArrayRef'ize various functions in the AST/Parser/Sema.

llvm-svn: 151447


# 3a5d6c27 16-Feb-2012 Douglas Gregor <dgregor@apple.com>

If code completion patterns are not enabled, use simpler else/else if
completions that don't insert braces. Fixes <rdar://problem/10764168>.

llvm-svn: 150707


# d8c61785 15-Feb-2012 Douglas Gregor <dgregor@apple.com>

Implement code completion support for lambda capture lists.

llvm-svn: 150583


# 2c1dd271 05-Feb-2012 Dylan Noblesmith <nobled@dreamwidth.org>

Basic: import SmallString<> into clang namespace

(I was going to fix the TODO about DenseMap too, but
that would break self-host right now. See PR11922.)

llvm-svn: 149799


# 4903802f 04-Feb-2012 Benjamin Kramer <benny.kra@googlemail.com>

Move a method from IdentifierTable.h out of line and remove the SmallString include.

Fix all the transitive include users.

llvm-svn: 149783


# d3cebdba 01-Feb-2012 Douglas Gregor <dgregor@apple.com>

When providing code completions for a switch over a scoped enumeration
type, be sure to add the qualifier for the enumeration type.

llvm-svn: 149471


# e0513cb3 30-Jan-2012 Benjamin Kramer <benny.kra@googlemail.com>

SmallBitVectorize the deduced parameter set.

llvm-svn: 149253


# 07f4357b 29-Jan-2012 Douglas Gregor <dgregor@apple.com>

Implement code completion support for module import declarations, e.g.,

@import <complete with module names here>

or

@import std.<complete with submodule names here>

Addresses <rdar://problem

Implement code completion support for module import declarations, e.g.,

@import <complete with module names here>

or

@import std.<complete with submodule names here>

Addresses <rdar://problem/10710117>.

llvm-svn: 149199

show more ...


# 7945c981 27-Jan-2012 Abramo Bagnara <abramo.bagnara@gmail.com>

Added source location for the template keyword in AST template-id expressions.

llvm-svn: 149127


# 3698cef1 24-Jan-2012 Argyrios Kyrtzidis <akyrtzi@gmail.com>

[libclang] In clang::getCursorKindForDecl() don't return "UnexposedDecl"
for forward references of classes and protocols, this breaks libclang API usage.

rdar://10747438.

llvm-svn: 148861


# 1cc88a97 23-Jan-2012 Douglas Gregor <dgregor@apple.com>

Handle pseudo-object expressions (and any other placeholder
expression) when code-completing member access expressions. Fixes
<rdar://problem/10717172>.

llvm-svn: 148703


# 3aa55267 21-Jan-2012 Douglas Gregor <dgregor@apple.com>

Fix the code completion string for variadic macros with more than one
argument, which was broken and very ugly (and even had a test case to
make *sure* it was broken and ugly). Fixes <rdar://problem/

Fix the code completion string for variadic macros with more than one
argument, which was broken and very ugly (and even had a test case to
make *sure* it was broken and ugly). Fixes <rdar://problem/10609117>.

llvm-svn: 148606

show more ...


# d72e5c0d 17-Jan-2012 David Blaikie <dblaikie@gmail.com>

Remove dead comments as per Chandler's feedback to r148292

llvm-svn: 148294


# 8a40f700 17-Jan-2012 David Blaikie <dblaikie@gmail.com>

Remove unreachable code in Clang. (replace with llvm_unreachable where appropriate or when GCC requires it)

llvm-svn: 148292


# 8d05ca7d 17-Jan-2012 Argyrios Kyrtzidis <akyrtzi@gmail.com>

Introduce a CodeCompletionResult::CreateCodeCompletionString() that
does not depend on Sema, it accepts an ASTContext and a Preprocessor.

Step towards making clang_getCursorCompletionString not depe

Introduce a CodeCompletionResult::CreateCodeCompletionString() that
does not depend on Sema, it accepts an ASTContext and a Preprocessor.

Step towards making clang_getCursorCompletionString not depend on Sema.

llvm-svn: 148278

show more ...


# 73a04090 07-Jan-2012 Eli Friedman <eli.friedman@gmail.com>

More lambda work: semantic analysis of capturing 'this'. It's a bit complicated, but we have to be careful about when exactly captures are marked given PotentiallyPotentiallyEvaluated contexts. (Ac

More lambda work: semantic analysis of capturing 'this'. It's a bit complicated, but we have to be careful about when exactly captures are marked given PotentiallyPotentiallyEvaluated contexts. (Actually, it's not 100% correct yet, but it's close enough for the moment.)

llvm-svn: 147723

show more ...


# f6102675 01-Jan-2012 Douglas Gregor <dgregor@apple.com>

Eliminate ObjCForwardProtocolDecl, which is redundant now that
ObjCProtocolDecl modules forward declarations properly.

llvm-svn: 147415


1...<<11121314151617181920>>...30