History log of /llvm-project/clang/lib/Sema/SemaCodeComplete.cpp (Results 351 – 375 of 748)
Revision (<<< Hide revision tags) (Show revision tags >>>) Date Author Comments
# 382ba41c 28-Feb-2014 Anders Carlsson <andersca@mac.com>

When completing Objective-C instance method invocations, perform a contextual conversion to an Objective-C pointer type of the target expression if needed. This fixes code completion of method invoca

When completing Objective-C instance method invocations, perform a contextual conversion to an Objective-C pointer type of the target expression if needed. This fixes code completion of method invocations where the target is a smart pointer that has an explicit conversion operator to an Objective-C type.

llvm-svn: 202529

show more ...


# 7bbb881a 20-Feb-2014 Argyrios Kyrtzidis <akyrtzi@gmail.com>

[code-completion] Style guideline for Cocoa has custom accessor in property declarations without spaces around '='.

rdar://16059171

llvm-svn: 201765


# 314cc81b 25-Jan-2014 Alp Toker <alp@nuanti.com>

Rename getResultType() on function and method declarations to getReturnType()

A return type is the declared or deduced part of the function type specified in
the declaration.

A result type is the (

Rename getResultType() on function and method declarations to getReturnType()

A return type is the declared or deduced part of the function type specified in
the declaration.

A result type is the (potentially adjusted) type of the value of an expression
that calls the function.

Rule of thumb:

* Declarations have return types and parameters.
* Expressions have result types and arguments.

llvm-svn: 200082

show more ...


# a2794f9f 22-Jan-2014 Alp Toker <alp@nuanti.com>

Introduce and use Decl::getAsFunction() to simplify templated function checks

Lift the getFunctionDecl() utility out of the parser into a general
Decl::getAsFunction() and use it to simplify other p

Introduce and use Decl::getAsFunction() to simplify templated function checks

Lift the getFunctionDecl() utility out of the parser into a general
Decl::getAsFunction() and use it to simplify other parts of the implementation.

Reduce isFunctionOrFunctionTemplate() to a simple type check that works the
same was as the other is* functions and move unwrapping of shadowed decls to
callers so it doesn't get run twice.

Shuffle around canSkipFunctionBody() to reduce virtual dispatch on ASTConsumer.
There's no need to query when we already know the body can't be skipped.

llvm-svn: 199794

show more ...


# b3fd5cfa 21-Jan-2014 Alp Toker <alp@nuanti.com>

Update FunctionTypeLoc and related names to match r199686

llvm-svn: 199699


# 9cacbabd 20-Jan-2014 Alp Toker <alp@nuanti.com>

Rename FunctionProtoType accessors from 'arguments' to 'parameters'

Fix a perennial source of confusion in the clang type system: Declarations and
function prototypes have parameters to which argume

Rename FunctionProtoType accessors from 'arguments' to 'parameters'

Fix a perennial source of confusion in the clang type system: Declarations and
function prototypes have parameters to which arguments are supplied, so calling
these 'arguments' was a stretch even in C mode, let alone C++ where default
arguments, templates and overloading make the distinction important to get
right.

Readability win across the board, especially in the casting, ADL and
overloading implementations which make a lot more sense at a glance now.

Will keep an eye on the builders and update dependent projects shortly.

No functional change.

llvm-svn: 199686

show more ...


# 4a97967b 03-Jan-2014 Aaron Ballman <aaron@aaronballman.com>

It turns out the problem was a bit more wide-spread. Removing a lot of unneeded typecasts. getScopeRep() already returns a NestedNameSpecifier.

No functional changes intended.

llvm-svn: 198414


Revision tags: llvmorg-3.4.0, llvmorg-3.4.0-rc3, llvmorg-3.4.0-rc2, llvmorg-3.4.0-rc1
# c37877d7 08-Oct-2013 Ted Kremenek <kremenek@apple.com>

Convert anachronistic use of 'void *' to 'DeclContext *' in Scope that was a holdover from the long-dead Action interface.

llvm-svn: 192203


# 541b38be 20-Sep-2013 Richard Smith <richard-llvm@metafoo.co.uk>

Switch the semantic DeclContext for a block-scope declaration of a function or
variable from being the function to being the enclosing namespace scope (in
C++) or the TU (in C). This allows us to fix

Switch the semantic DeclContext for a block-scope declaration of a function or
variable from being the function to being the enclosing namespace scope (in
C++) or the TU (in C). This allows us to fix a selection of related issues
where we would build incorrect redeclaration chains for such declarations, and
fail to notice type mismatches.

Such declarations are put into a new IdentifierNamespace, IDNS_LocalExtern,
which is only found when searching scopes, and not found when searching
DeclContexts. Such a declaration is only made visible in its DeclContext if
there are no non-LocalExtern declarations.

llvm-svn: 191064

show more ...


# 9ddb76e2 27-Aug-2013 Serge Pavlov <sepavloff@gmail.com>

Cleanup of OpaquePtr. No functionality changes.
- Some documenation were added.
- Usages of OpaquePtr<A>.getAsVal<A>() were replaced by OpaquePtr<A>.get().
- Methods getAs and getAsVal were renamed t

Cleanup of OpaquePtr. No functionality changes.
- Some documenation were added.
- Usages of OpaquePtr<A>.getAsVal<A>() were replaced by OpaquePtr<A>.get().
- Methods getAs and getAsVal were renamed to getPtrTo and getPtrAs respectively.

llvm-svn: 189346

show more ...


# 25284cc9 23-Aug-2013 Robert Wilhelm <robert.wilhelm@gmx.net>

Use pop_back_val() instead of both back() and pop_back().
No functionality change intended.

llvm-svn: 189112


# 16e94b91 09-Aug-2013 Robert Wilhelm <robert.wilhelm@gmx.net>

Omit llvm:: before ArrayRef, as we have using llvm::ArrayRef in include/clang/Basic/LLVM.h.

llvm-svn: 188089


# 07e6c407 05-Aug-2013 Daniel Jasper <djasper@google.com>

Add option to disable module loading.

This patch was created by Lawrence Crowl and reviewed in:
http://llvm-reviews.chandlerc.com/D963

llvm-svn: 187738


Revision tags: llvmorg-3.3.1-rc1
# eb8c4463 29-Jun-2013 Benjamin Kramer <benny.kra@googlemail.com>

Compress pairs. No functionality change.

llvm-svn: 185264


# 27cb3dd0 23-Jun-2013 Dmitri Gribenko <gribozavr@gmail.com>

ArrayRef'ize Sema::CodeCompleteConstructorInitializer

Patch by Robert Wilhelm.

llvm-svn: 184675


# 070a10e6 16-Jun-2013 Dmitri Gribenko <gribozavr@gmail.com>

ArrayRef'ize Sema::CodeComplete*

Patch by Robert Wilhelm.

llvm-svn: 184052


Revision tags: llvmorg-3.3.0, llvmorg-3.3.0-rc3
# 345d05fb 29-May-2013 Argyrios Kyrtzidis <akyrtzi@gmail.com>

[libclang] For "@import .." code-completion results, associate a CXCursor_ModuleImportDecl cursor instead of CXCursor_NotImplemented.

llvm-svn: 182871


Revision tags: llvmorg-3.3.0-rc2, llvmorg-3.3.0-rc1
# d3da6e01 17-Apr-2013 Argyrios Kyrtzidis <akyrtzi@gmail.com>

Enhance the ObjC global method pool to record whether there were 0, 1, or >= 2 methods (with a particular selector) inside categories.

This is done by extending ObjCMethodList (which is only used by

Enhance the ObjC global method pool to record whether there were 0, 1, or >= 2 methods (with a particular selector) inside categories.

This is done by extending ObjCMethodList (which is only used by the global method pool) to have 2 extra bits of information.
We will later take advantage of this info in global method pool for the overridden methods calculation.

llvm-svn: 179652

show more ...


# b4a9e868 12-Apr-2013 Richard Smith <richard-llvm@metafoo.co.uk>

Parsing support for thread_local and _Thread_local. We give them the same
semantics as __thread for now.

llvm-svn: 179424


# 6ae7e50b 03-Apr-2013 Rafael Espindola <rafael.espindola@gmail.com>

Add 178663 back.

http://lab.llvm.org:8011/builders/clang-x86_64-darwin10-gdb went back green
before it processed the reverted 178663, so it could not have been the culprit.

Revert "Revert 178663."

Add 178663 back.

http://lab.llvm.org:8011/builders/clang-x86_64-darwin10-gdb went back green
before it processed the reverted 178663, so it could not have been the culprit.

Revert "Revert 178663."

This reverts commit 4f8a3eb2ce5d4ba422483439e20c8cbb4d953a41.

llvm-svn: 178682

show more ...


# 985a3abe 03-Apr-2013 Rafael Espindola <rafael.espindola@gmail.com>

Revert 178663.

Looks like it broke http://lab.llvm.org:8011/builders/clang-x86_64-darwin10-gdb

Revert "Don't compute a patched/semantic storage class."

This reverts commit 8f187f62cb0487d31bc4afdf

Revert 178663.

Looks like it broke http://lab.llvm.org:8011/builders/clang-x86_64-darwin10-gdb

Revert "Don't compute a patched/semantic storage class."

This reverts commit 8f187f62cb0487d31bc4afdfcd47e11fe9a51d05.

llvm-svn: 178681

show more ...


# adea16bd 03-Apr-2013 Rafael Espindola <rafael.espindola@gmail.com>

Don't compute a patched/semantic storage class.

For variables and functions clang used to store two storage classes. The one
"as written" in the code and a patched one, which, for example, propagate

Don't compute a patched/semantic storage class.

For variables and functions clang used to store two storage classes. The one
"as written" in the code and a patched one, which, for example, propagates
static to the following decls.

This apparently is from the days clang lacked linkage computation. It is now
redundant and this patch removes it.

llvm-svn: 178663

show more ...


# 8e1ac33e 28-Mar-2013 Richard Smith <richard-llvm@metafoo.co.uk>

Support C11 _Atomic type qualifier. This is more-or-less just syntactic sugar for the _Atomic type specifier.

llvm-svn: 178210


# b6210dff 26-Mar-2013 Argyrios Kyrtzidis <akyrtzi@gmail.com>

[Preprocessor/Modules] Separate the macro directives kinds into their own MacroDirective's subclasses.

For each macro directive (define, undefine, visibility) have a separate object that gets chaine

[Preprocessor/Modules] Separate the macro directives kinds into their own MacroDirective's subclasses.

For each macro directive (define, undefine, visibility) have a separate object that gets chained
to the macro directive history. This has several benefits:

-No need to mutate a MacroDirective when there is a undefine/visibility directive. Stuff like
PPMutationListener become unnecessary.
-No need to keep extra source locations for the undef/visibility locations for the define directive object
(which is the majority of the directives)
-Much easier to hide/unhide a section in the macro directive history.
-Easier to track the effects of the directives across different submodules.

llvm-svn: 178037

show more ...


# be8bc67b 23-Mar-2013 Fariborz Jahanian <fjahanian@apple.com>

documentation parsing: when providing code completion comment
for a getter used in property-dot syntax, if geter has its own
comment use it. // rdar://12791315

llvm-svn: 177797


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