clang/test/CodeCompletion
Sam McCall ae8dcccdd1 [CodeComplete] Add completions for filenames in #include directives.
Summary:
The dir component ("somedir" in #include <somedir/fo...>) is considered fixed.
We append "foo" to each directory on the include path, and then list its files.

Completions are of the forms:
 #include <somedir/fo^
                   foo.h>
                   fox/

The filter is set to the filename part ("fo"), so fuzzy matching can be
applied to the filename only.

No fancy scoring/priorities are set, and no information is added to
CodeCompleteResult to make smart scoring possible. Could be in future.

Reviewers: ilya-biryukov

Subscribers: cfe-commits

Differential Revision: https://reviews.llvm.org/D52076

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@342449 91177308-0d34-0410-b5e6-96231b3b80d8
2018-09-18 08:40:41 +00:00
..
Inputs [Lex] Fix crash on code completion in comment in included file. 2018-01-19 23:41:47 +00:00
PR9728.cpp Fix an assertion when code-completing, rdar://9288730 & http://llvm.org/PR9728. 2011-04-23 01:04:12 +00:00
auto.cpp Fix an assertion failure when code completing an auto variable's initialiser. 2012-07-27 12:56:09 +00:00
auto_type.c [CodeCompletion] Code complete the '__auto_type' keyword 2017-02-13 23:35:59 +00:00
bracket-decl.c [Parse] Code complete expressions in bracket declarators. 2016-02-18 15:30:24 +00:00
call.c Fix FileCheck --check-prefix lines. 2013-08-12 12:51:05 +00:00
call.cpp [CodeComplete] Clearly distinguish signature help and code completion. 2018-09-07 14:04:39 +00:00
comments.cpp [Lex] Fix crash on code completion in comment in included file. 2018-01-19 23:41:47 +00:00
constexpr.cpp PR14381: Never skip constexpr function bodies when code-completing. We may need 2012-11-19 21:13:18 +00:00
crash-func-init.cpp Fixed a crash in code completion. 2017-09-08 13:36:38 +00:00
crash-skipped-bodies-template-inst.cpp [Sema] Don't skip function bodies with 'auto' without trailing return type 2018-05-30 12:50:48 +00:00
ctor-initializer.cpp [CodeCompletion] Enable signature help when initializing class/struct/union members. 2018-09-11 15:02:18 +00:00
documentation.cpp Fix FileCheck --check-prefix lines. 2013-08-12 12:51:05 +00:00
documentation.m Fix ObjCMethodDecl::findPropertyDecl for class properties. 2016-03-11 21:14:40 +00:00
enable-if-attr-crash.cpp [SemaOverload] Fixed crash on code completion 2018-03-09 14:43:29 +00:00
end-of-file.cpp [CodeComplete] Fix completion in the middle of ident in ctor lists. 2018-04-25 15:13:34 +00:00
end-of-ident-macro.cpp [CodeComplete] Fix completion at the end of keywords 2018-04-24 13:48:53 +00:00
end-of-ident.cpp [CodeComplete] Fix completion at the end of keywords 2018-04-24 13:48:53 +00:00
enum-switch-case-qualified.cpp Fix FileCheck --check-prefix lines. 2013-08-12 12:51:05 +00:00
enum-switch-case.c Fix FileCheck --check-prefix lines. 2013-08-12 12:51:05 +00:00
enum-switch-case.cpp Fix FileCheck --check-prefix lines. 2013-08-12 12:51:05 +00:00
function-overloads.cpp [clang] Make sure codecompletion is called for calls even when inside a token. 2018-09-10 13:46:28 +00:00
function-templates.cpp
functions.cpp Add default values for function parameter chunks 2017-07-19 10:45:40 +00:00
ignore-ns-level-decls.cpp [Sema] Ignore decls in namespaces when global decls are not wanted. 2017-12-13 10:26:49 +00:00
included-files.cpp [CodeComplete] Add completions for filenames in #include directives. 2018-09-18 08:40:41 +00:00
incomplete-ret-type.cpp [CodeComplete] Provide completion in decls even for incomplete types 2018-05-14 13:50:36 +00:00
inside-macros.cpp [CodeComplete] Fix completion in the middle of idents in macro calls 2018-01-22 17:18:28 +00:00
keywords.cpp [CodeCompletion] Code complete the missing C++11 keywords 2017-02-13 23:19:40 +00:00
macros-in-modules.c Fix code completion tests to use an explicit modules cache path 2015-07-20 21:22:46 +00:00
macros-in-modules.m Fix code completion tests to use an explicit modules cache path 2015-07-20 21:22:46 +00:00
macros.c [CodeComplete] Fix completion at the end of keywords 2018-04-24 13:48:53 +00:00
member-access.c Fix FileCheck --check-prefix lines. 2013-08-12 12:51:05 +00:00
member-access.cpp Optionally add code completion results for arrow instead of dot 2018-05-25 12:56:26 +00:00
namespace-alias.cpp Fix FileCheck --check-prefix lines. 2013-08-12 12:51:05 +00:00
namespace.cpp [CodeComplete] Fix completion at the end of keywords 2018-04-24 13:48:53 +00:00
nested-name-specifier.cpp Fix FileCheck --check-prefix lines. 2013-08-12 12:51:05 +00:00
objc-expr.m Fix FileCheck --check-prefix lines. 2013-08-12 12:51:05 +00:00
objc-message.m Improve the sorting of code-completion results. We now always sort by 2010-01-13 23:24:38 +00:00
objc-message.mm Implement filtering for code completion of identifiers. 2016-07-27 14:56:59 +00:00
objc-protocol-member-access.m [CodeCompletion] Show protocol properties that are accessed through qualified id 2016-10-12 11:40:15 +00:00
operator.cpp [CodeComplete] Fix completion at the end of keywords 2018-04-24 13:48:53 +00:00
ordinary-name-cxx11.cpp [CodeCompletion] Code complete the missing C++11 keywords 2017-02-13 23:19:40 +00:00
ordinary-name.c [CodeCompletion] Allow system headers providing private symbols with a single underscore. 2016-07-01 01:17:02 +00:00
ordinary-name.cpp [Tests] Modified Lit Tests to be C++11 compatibile 2015-08-27 18:49:15 +00:00
paren_locs.cpp [CodeComplete] Report location of opening parens for signature help 2018-08-30 13:08:03 +00:00
pch-and-module.m Fix CodeCompletion & TypoCorrection when combining a PCH with Modules 2016-05-04 00:53:13 +00:00
pragma-macro-token-caching.c [Preprocessor] Fix incorrect token caching that occurs when lexing _Pragma 2017-02-24 17:45:16 +00:00
preamble.c [libclang] Remove the ParentKind cursor kind from code-completion results. 2012-09-26 16:39:56 +00:00
qualifiers-as-written.cpp Workaround reverse-iteration buildbot breakages. Filed PR35244. 2017-11-08 13:05:52 +00:00
skip-auto-funcs.cpp [CodeComplete] Add a few extra tests for r333538. NFC 2018-06-01 09:49:53 +00:00
some_struct.h Implement the all_lookups_iterator for PCH as a follow-up to r153970. This 2012-04-16 02:51:46 +00:00
stdin.c Fix FileCheck --check-prefix lines. 2013-08-12 12:51:05 +00:00
tag.c [CodeComplete] Fix completion at the end of keywords 2018-04-24 13:48:53 +00:00
tag.cpp [CodeComplete] Fix completion at the end of keywords 2018-04-24 13:48:53 +00:00
templates.cpp
truncation.c Fix FileCheck --check-prefix lines. 2013-08-12 12:51:05 +00:00
truncation.c.h
uninstantiated_params.cpp Avoid printing some redundant name qualifiers in completion 2017-11-08 10:39:09 +00:00
using-namespace.cpp [CodeComplete] Fix completion at the end of keywords 2018-04-24 13:48:53 +00:00
using.cpp [CodeComplete] Fix completion at the end of keywords 2018-04-24 13:48:53 +00:00