llvm-project/clang/lib
Sam McCall bb2cf63b32 [CodeComplete] Add an option to omit results from the preamble.
Summary:
Enumerating the contents of a namespace or global scope will omit any
decls that aren't already loaded, instead of deserializing them from the
PCH.

This allows a fast hybrid code completion where symbols from headers are
provided by an external index. (Sema already exposes the information
needed to do a reasonabl job of filtering them).
Clangd plans to implement this hybrid.

This option is just a hint - callers still need to postfilter results if
they want to *avoid* completing decls outside the main file.

Reviewers: bkramer, ilya-biryukov

Subscribers: cfe-commits

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

llvm-svn: 322371
2018-01-12 14:51:47 +00:00
..
ARCMigrate Added LLVM_FALLTHROUGH to address warning: this statement may fall through. NFC. 2017-06-03 06:23:19 +00:00
AST [ODRHash] Don't hash friend functions. 2018-01-12 04:42:27 +00:00
ASTMatchers Remove creation of out-of-bounds value of enumeration type (resulting in UB). 2017-12-08 23:29:59 +00:00
Analysis Handle scoped_lockable objects being returned by value in C++17. 2018-01-11 22:13:57 +00:00
Basic [RISCV] Add the RISCV target and compiler driver 2018-01-11 13:36:56 +00:00
CodeGen Make internal/private GVs implicitly dso_local. 2018-01-11 22:15:12 +00:00
CrossTU [CrossTU] Fix handling of Cross Translation Unit directory path 2017-10-27 12:53:37 +00:00
Driver [WebAssembly] Remove `-allow-undefined-file wasm.syms` from linker args 2018-01-11 22:33:50 +00:00
Edit [clang] Fix format specifiers fixits for nested macros 2017-06-20 20:46:58 +00:00
Format Revert "[ClangFormat] IndentWrappedFunctionNames should be true in the google ObjC style" 2017-12-14 21:44:11 +00:00
Frontend [CodeComplete] Add an option to omit results from the preamble. 2018-01-12 14:51:47 +00:00
FrontendTool [CMake] Use #cmakedefine01 for CLANG_ENABLE_(ARCMT|OBJC_REWRITER|STATIC_ANALYZER) 2017-10-18 05:21:17 +00:00
Headers [OpenCL] Reorder the CLK_sRGBx/sRGBA defines, NFC 2018-01-11 14:05:38 +00:00
Index [Index] Reduce size of SymbolInfo struct. 2017-12-23 19:31:24 +00:00
Lex [Lex] Use WritableMemoryBuffer in ScratchBuffer.cpp 2018-01-11 10:43:45 +00:00
Parse [OpenMP] Fix handling of clause on wrong directive, by Joel. E. Denny 2018-01-09 19:21:04 +00:00
Rewrite [analyzer] Add Javascript to analyzer HTML output to allow keyboard navigation. 2017-12-21 22:57:51 +00:00
Sema [CodeComplete] Add an option to omit results from the preamble. 2018-01-12 14:51:47 +00:00
Serialization Track in the AST whether the operand to a UnaryOperator can overflow and then use that logic when evaluating constant expressions and emitting codegen. 2018-01-09 13:07:03 +00:00
StaticAnalyzer [analyzer] [NFC] Minor refactoring of trackNullOrUndefValue 2018-01-10 01:30:32 +00:00
Tooling Add a tool executor that runs actions on all TUs in the compilation database. 2018-01-05 10:32:16 +00:00
CMakeLists.txt Add Cross Translation Unit support library 2017-09-22 11:11:01 +00:00