summaryrefslogtreecommitdiffstats
path: root/clang/test/Index/complete-super.cpp
Commit message (Collapse)AuthorAgeFilesLines
* Do not add a colon chunk to the code completion of class inheritance access ↵Erik Verbruggen2017-10-241-0/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | modifiers With enabled CINDEXTEST_CODE_COMPLETE_PATTERNS env option (which enables IncludeCodePatterns in completion options) code completion after colon currently suggests access modifiers with 2 completion chunks which is incorrect. Example: class A : <Cursor>B { } Currently we get 'NotImplemented:{TypedText public}{Colon :} (40)' but the correct line is just 'NotImplemented:{TypedText public} (40)' The fix introduces more specific scope that occurs between ':' and '{' It allows us to determine when we don't need to add ':' as a second chunk to the public/protected/private access modifiers. Patch by Ivan Donchevskii! Differential Revision: https://reviews.llvm.org/D38618 llvm-svn: 316436
* Don't include the ':' following code-completion suggestions forDouglas Gregor2012-04-101-0/+9
| | | | | | | 'public', 'private', or 'protected', unless code completion patterns are enabled. Fixes <rdar://problem/11189132>. llvm-svn: 154413
* 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
* Get rid of the lame attempt to prioritize "void" functions atDouglas Gregor2010-09-201-2/+2
| | | | | | | statement context; it really isn't helpful in practice (remember printf!) and we'll be doing other adjustments for statements very soon. llvm-svn: 114358
* Synchronize code-completion cursor kinds with indexing cursorDouglas Gregor2010-09-031-2/+2
| | | | | | kinds. How shameful that this code was duplicated! llvm-svn: 113033
* Implement the "call super" code completion for C++. If the virtualDouglas Gregor2010-08-271-0/+33
member function you're typing in overrides another virtual function, this fills in a (qualified!) call to that virtual function to make such delegation easy. llvm-svn: 112294
OpenPOWER on IntegriCloud