Sam McCall
63c5972039
[CodeComplete] Omit templated constructors from member list too.
...
Also avoid printing a 'void' return type for constructor expressions.
llvm-svn: 323148
2018-01-22 20:44:47 +00:00
Argyrios Kyrtzidis
9ae3956f22
[libclang] Remove the ParentKind cursor kind from code-completion results.
...
This is to reduce dependency to cursors for the code-completion results.
llvm-svn: 164705
2012-09-26 16:39:56 +00:00
Douglas Gregor
78254c8880
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
2012-03-27 23:34:16 +00:00
Douglas Gregor
dab63c1434
Tweak this test to test more directly what we want, and hopefully work around the brokenness of code completion under -fdelayed-template-parsing
...
llvm-svn: 142472
2011-10-19 04:17:22 +00:00
Douglas Gregor
7c0fc61faa
Minor tweak to test
...
llvm-svn: 142427
2011-10-18 21:43:22 +00:00
Douglas Gregor
e5c79d5ea8
Provide result types for code completions that describe built-in
...
expressions (this, sizeof, etc.).
llvm-svn: 142424
2011-10-18 21:20:17 +00:00
Douglas Gregor
4205feffcd
Add code completions for C++0x expressions
...
llvm-svn: 142357
2011-10-18 16:29:03 +00:00
Douglas Gregor
b0f2ea9e9e
When printing a qualified type, look through a substituted template
...
parameter type to see what's behind it, so that we don't end up
printing silly things like "float const *" when "const float *" would
make more sense. Also, replace the pile of "isa" tests with a simple
switch enumerating all of the cases, making a few more obvious cases
use prefix qualifiers.
llvm-svn: 125729
2011-02-17 06:52:25 +00:00
Douglas Gregor
9c1f1bfedc
When Parser::ParseExpressionList isn't given a completer, fall back to
...
normal "expression" completion. Fixes the most annoying
code-completion bug I've found.
llvm-svn: 125715
2011-02-17 03:09:23 +00:00
Douglas Gregor
2927c0c817
Teach code completion not to include out-of-line declarations and
...
definitions in its results. The original declarations will be visible
wherever they are declared.
llvm-svn: 118484
2010-11-09 03:59:40 +00:00
Douglas Gregor
0212fd7169
Add code completion for C++ constructors wherever we see the class (or
...
class template) and are in a context where we can have a value.
llvm-svn: 114441
2010-09-21 16:06:22 +00:00