hanchenye-llvm-project/clang/lib/Lex
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
HeaderMap.cpp [Lex] Make HeaderMaps a unique_ptr vector 2018-08-20 19:15:02 +00:00
HeaderSearch.cpp [VFS] vfs::directory_iterator yields path and file type instead of full Status 2018-09-14 12:47:38 +00:00
Lexer.cpp [CodeComplete] Add completions for filenames in #include directives. 2018-09-18 08:40:41 +00:00
LiteralSupport.cpp Remove trailing space 2018-07-30 19:24:48 +00:00
MacroArgs.cpp Remove trailing space 2018-07-30 19:24:48 +00:00
MacroInfo.cpp Remove \brief commands from doxygen comments. 2018-05-09 01:00:01 +00:00
ModuleMap.cpp [modules] Frontend support for building a header module from a list of 2018-09-15 01:21:15 +00:00
PPCaching.cpp [Lex] Fix crash on code completion in comment in included file. 2018-01-19 23:41:47 +00:00
PPCallbacks.cpp
PPConditionalDirectiveRecord.cpp
PPDirectives.cpp Diagnose likely typos in #include directives. 2018-09-13 21:10:08 +00:00
PPExpressions.cpp Remove trailing space 2018-07-30 19:24:48 +00:00
PPLexerChange.cpp [VFS] vfs::directory_iterator yields path and file type instead of full Status 2018-09-14 12:47:38 +00:00
PPMacroExpansion.cpp Remove trailing space 2018-07-30 19:24:48 +00:00
PTHLexer.cpp Fix typos in clang 2018-04-06 15:14:32 +00:00
Pragma.cpp [clang-cl, PCH] Support for /Yc and /Yu without filename and #pragma hdrstop 2018-09-11 17:10:44 +00:00
PreprocessingRecord.cpp Remove trailing space 2018-07-30 19:24:48 +00:00
Preprocessor.cpp [CodeComplete] Add completions for filenames in #include directives. 2018-09-18 08:40:41 +00:00
PreprocessorLexer.cpp Remove \brief commands from doxygen comments. 2018-05-09 01:00:01 +00:00
ScratchBuffer.cpp [Lex] Use WritableMemoryBuffer in ScratchBuffer.cpp 2018-01-11 10:43:45 +00:00
TokenConcatenation.cpp Now that C++17 is official (https://www.iso.org/standard/68564.html), start changing the C++1z terminology over to C++17. NFC intended, these are all mechanical changes. 2017-12-04 20:27:34 +00:00
TokenLexer.cpp Remove trailing space 2018-07-30 19:24:48 +00:00
UnicodeCharSets.h