llvm-project/clang/lib/Parse
Sam McCall 3d8051abb8 [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

llvm-svn: 342449
2018-09-18 08:40:41 +00:00
..
CMakeLists.txt [CMake] Reorder libdeps by alphabetical order. 2014-07-14 04:59:27 +00:00
ParseAST.cpp [clang-cl, PCH] Support for /Yc and /Yu without filename and #pragma hdrstop 2018-09-11 17:10:44 +00:00
ParseCXXInlineMethods.cpp Remove trailing space 2018-07-30 19:24:48 +00:00
ParseDecl.cpp [clang] Make sure codecompletion is called for calls even when inside a token. 2018-09-10 13:46:28 +00:00
ParseDeclCXX.cpp [CodeCompletion] Enable signature help when initializing class/struct/union members. 2018-09-11 15:02:18 +00:00
ParseExpr.cpp [clang] Make sure codecompletion is called for calls even when inside a token. 2018-09-10 13:46:28 +00:00
ParseExprCXX.cpp [clang] Make sure codecompletion is called for calls even when inside a token. 2018-09-10 13:46:28 +00:00
ParseInit.cpp Remove trailing space 2018-07-30 19:24:48 +00:00
ParseObjc.cpp Port getLocStart -> getBeginLoc 2018-08-09 21:08:08 +00:00
ParseOpenMP.cpp [OPENMP] Fix PR38903: Crash on instantiation of the non-dependent 2018-09-13 16:54:05 +00:00
ParsePragma.cpp We have in place support for parsing #pragma FENV_ACCESS, but that 2018-08-14 17:06:56 +00:00
ParseStmt.cpp We have in place support for parsing #pragma FENV_ACCESS, but that 2018-08-14 17:06:56 +00:00
ParseStmtAsm.cpp Remove trailing space 2018-07-30 19:24:48 +00:00
ParseTemplate.cpp Improve diagnostic for missing comma in template parameter list. 2018-08-17 19:43:40 +00:00
ParseTentative.cpp Remove trailing space 2018-07-30 19:24:48 +00:00
Parser.cpp [CodeComplete] Add completions for filenames in #include directives. 2018-09-18 08:40:41 +00:00