llvm-project/clang/lib/Frontend
Ilya Biryukov 5de0c85e88 [ASTUnit] Fix a regression in cached completions
Summary:
After r345152 cached completions started adding namespaces after
nested name specifiers, e.g. in `some_name::^`

The CCC_Symbol indicates the completed item cannot be a namespace (it is
described as being "a type, a function or a variable" in the comments).

Therefore, 'nested specifier' completions should only be added from cache
when the context is CCC_SymbolOrNewName (which roughly seems to indicate
that a nested name specifier is allowed).

Fixes https://bugs.llvm.org/show_bug.cgi?id=42646

Reviewers: kadircet, sammccall

Reviewed By: kadircet, sammccall

Subscribers: arphaman, nik, sammccall, cfe-commits

Tags: #clang

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

llvm-svn: 366448
2019-07-18 15:21:34 +00:00
..
Rewrite Fix parameter name comments using clang-tidy. NFC. 2019-07-16 04:46:31 +00:00
ASTConsumers.cpp Introduce the ability to dump the AST to JSON. 2019-05-13 21:39:55 +00:00
ASTMerge.cpp [ASTImporter] Mark erroneous nodes in shared st 2019-07-01 15:37:07 +00:00
ASTUnit.cpp [ASTUnit] Fix a regression in cached completions 2019-07-18 15:21:34 +00:00
CMakeLists.txt [Bitcode] Move Bitstream to a separate library 2019-07-03 22:40:07 +00:00
ChainedDiagnosticConsumer.cpp Update the file headers across all of the LLVM projects in the monorepo 2019-01-19 08:50:56 +00:00
ChainedIncludesSource.cpp Modules: Rename MemoryBufferCache to InMemoryModuleCache 2019-03-09 17:33:56 +00:00
CompilerInstance.cpp BitStream reader: propagate errors 2019-06-26 19:50:12 +00:00
CompilerInvocation.cpp [PowerPC] Support -mabi=ieeelongdouble and -mabi=ibmlongdouble 2019-07-15 07:25:11 +00:00
CreateInvocationFromCommandLine.cpp Update the file headers across all of the LLVM projects in the monorepo 2019-01-19 08:50:56 +00:00
DependencyFile.cpp [clang-scan-deps] print the dependencies to stdout 2019-06-21 18:24:55 +00:00
DependencyGraph.cpp Update the file headers across all of the LLVM projects in the monorepo 2019-01-19 08:50:56 +00:00
DiagnosticRenderer.cpp Update the file headers across all of the LLVM projects in the monorepo 2019-01-19 08:50:56 +00:00
FrontendAction.cpp BitStream reader: propagate errors 2019-06-26 19:50:12 +00:00
FrontendActions.cpp Fix parameter name comments using clang-tidy. NFC. 2019-07-16 04:46:31 +00:00
FrontendOptions.cpp Update the file headers across all of the LLVM projects in the monorepo 2019-01-19 08:50:56 +00:00
FrontendTiming.cpp Fix file headers. NFC 2019-03-01 06:49:51 +00:00
HeaderIncludeGen.cpp Fix file headers. NFC 2019-03-01 06:49:51 +00:00
InitHeaderSearch.cpp [WebAssembly] Modernize include path handling 2019-06-13 09:42:43 +00:00
InitPreprocessor.cpp [OpenCL] Update comments/diagnostics to refer to C++ for OpenCL 2019-07-18 10:02:35 +00:00
InterfaceStubFunctionsConsumer.cpp [clang-ifs] Clang Interface Stubs, first version (second landing attempt). 2019-06-20 16:59:48 +00:00
LangStandards.cpp Update the file headers across all of the LLVM projects in the monorepo 2019-01-19 08:50:56 +00:00
LayoutOverrideSource.cpp Update the file headers across all of the LLVM projects in the monorepo 2019-01-19 08:50:56 +00:00
LogDiagnosticPrinter.cpp Update the file headers across all of the LLVM projects in the monorepo 2019-01-19 08:50:56 +00:00
ModuleDependencyCollector.cpp [ModuleDependencyCollector] Use llvm::sys::fs::real_path (NFC) 2019-01-30 06:26:26 +00:00
MultiplexConsumer.cpp [OPENMP 5.0]Add initial support for 'allocate' directive. 2019-03-07 17:54:44 +00:00
PrecompiledPreamble.cpp BitStream reader: propagate errors 2019-06-26 19:50:12 +00:00
PrintPreprocessedOutput.cpp [PragmaHandler] Expose `#pragma` location 2019-05-21 23:51:38 +00:00
SerializedDiagnosticPrinter.cpp [Frontend] Explicitly include Bitstream/BitCodes.h and BitstreamWriter.h 2019-07-08 23:02:50 +00:00
SerializedDiagnosticReader.cpp Bitstream reader: Fix undefined behavior seen after rL364464 2019-07-05 20:22:40 +00:00
TestModuleFileExtension.cpp [Bitcode] Move Bitstream to a separate library 2019-07-03 22:40:07 +00:00
TestModuleFileExtension.h [Bitcode] Move Bitstream to a separate library 2019-07-03 22:40:07 +00:00
TextDiagnostic.cpp Do not resolve directory junctions for `-fdiagnostics-absolute-paths` on Windows. 2019-05-24 04:46:22 +00:00
TextDiagnosticBuffer.cpp Update the file headers across all of the LLVM projects in the monorepo 2019-01-19 08:50:56 +00:00
TextDiagnosticPrinter.cpp Update the file headers across all of the LLVM projects in the monorepo 2019-01-19 08:50:56 +00:00
VerifyDiagnosticConsumer.cpp [verify] Add support for location markers in directives. 2019-04-13 04:33:39 +00:00