llvm-project/clang/lib
Ilya Biryukov b8f231a42c [CodeComplete] Fix completion in the middle of idents in macro calls
Summary:
This patch removes IdentifierInfo from completion token after remembering
the identifier in the preprocessor.

Prior to this patch, completion token had the IdentifierInfo set to null when
completing at the start of identifier and to the II for completion prefix
when in the middle of identifier.

This patch unifies how code completion token is handled when it is insterted
before the identifier and in the middle of the identifier.

The actual IdentifierInfo can still be obtained from the Preprocessor.

Reviewers: bkramer, arphaman

Reviewed By: bkramer

Subscribers: cfe-commits

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

llvm-svn: 323133
2018-01-22 17:18:28 +00:00
..
ARCMigrate Added LLVM_FALLTHROUGH to address warning: this statement may fall through. NFC. 2017-06-03 06:23:19 +00:00
AST Allow BlockDecl in CXXRecord scope to have no access specifier. 2018-01-19 20:46:19 +00:00
ASTMatchers [ASTMatcher] Add isScoped matcher for enumDecl. 2018-01-18 09:47:57 +00:00
Analysis Handle scoped_lockable objects being returned by value in C++17. 2018-01-11 22:13:57 +00:00
Basic [X86] Add rdpid command line option and intrinsics. 2018-01-20 18:36:52 +00:00
CodeGen [AArch64] Add ARMv8.2-A FP16 scalar intrinsics 2018-01-19 23:11:18 +00:00
CrossTU [CrossTU] Fix handling of Cross Translation Unit directory path 2017-10-27 12:53:37 +00:00
Driver Link sanitized programs on NetBSD with -lkvm 2018-01-20 01:03:45 +00:00
Edit [clang] Fix format specifiers fixits for nested macros 2017-06-20 20:46:58 +00:00
Format [clang-format] Adds a canonical delimiter to raw string formatting 2018-01-19 16:18:47 +00:00
Frontend [Frontend] Allow to use PrecompiledPreamble without calling CanReuse 2018-01-18 15:16:53 +00:00
FrontendTool [CMake] Use #cmakedefine01 for CLANG_ENABLE_(ARCMT|OBJC_REWRITER|STATIC_ANALYZER) 2017-10-18 05:21:17 +00:00
Headers [X86] Add rdpid command line option and intrinsics. 2018-01-20 18:36:52 +00:00
Index [Index] Reduce size of SymbolInfo struct. 2017-12-23 19:31:24 +00:00
Lex [CodeComplete] Fix completion in the middle of idents in macro calls 2018-01-22 17:18:28 +00:00
Parse [Parse] Forward brace locations to TypeConstructExpr 2018-01-17 18:53:51 +00:00
Rewrite [analyzer] Better UI in html reports for displaying shortcuts help 2018-01-17 20:06:26 +00:00
Sema [modules] Correctly overload getModule in the MultiplexExternalSemaSource 2018-01-22 15:27:25 +00:00
Serialization [PCH] Serialize skipped preprocessor ranges 2018-01-15 19:14:16 +00:00
StaticAnalyzer [analyzer] Model and check unrepresentable left shifts 2018-01-22 13:32:10 +00:00
Tooling [Tooling] Don't deduplicate tool results in the All-TUs executor. 2018-01-17 17:37:11 +00:00
CMakeLists.txt Add Cross Translation Unit support library 2017-09-22 11:11:01 +00:00