llvm-project/clang/test
Ilya Biryukov ebf0a6d75d [CodeComplete] Do not complete self-initializations
Summary:
Removes references to initialized variable from the following completions:

    int x = ^;

Handles only the trivial cases where the variable name is completed
immediately at the start of initializer or assignment, more complicated
cases aren't covered, e.g. these completions still contain 'x':

    // More complicated expressions.
    int x = foo(^);
    int x = 10 + ^;
    // Other kinds of initialization.
    int x{^};
    int x(^);
    // Constructor initializers.
    struct Foo {
      Foo() : x(^) {}
      int x;
    };

We should address those in the future, but they are outside of the scope of
this initial change.

Reviewers: sammccall

Reviewed By: sammccall

Subscribers: arphaman, cfe-commits

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

llvm-svn: 346301
2018-11-07 10:02:31 +00:00
..
ARCMT Quickfix for failing tests. 2018-08-17 23:54:00 +00:00
ASTMerge [ASTImporter] Load external Decls when getting field index. 2018-08-08 09:40:57 +00:00
Analysis Reland '[analyzer][PlistMacroExpansion] Part 2.: Retrieving the macro name and primitive expansion' 2018-11-05 02:14:36 +00:00
CXX Revert r345562: "PR23833, DR2140: an lvalue-to-rvalue conversion on a glvalue of type" 2018-11-03 02:23:33 +00:00
CodeCompletion [CodeComplete] Do not complete self-initializations 2018-11-07 10:02:31 +00:00
CodeGen [MS] Zero out ECX in __cpuid in intrin.h 2018-11-06 20:45:26 +00:00
CodeGenCUDA Revert "[CodeGenCXX] Treat 'this' as noalias in constructors" 2018-10-15 15:43:00 +00:00
CodeGenCXX [CodeGenCXX] XFAIL test for ASAN on Darwin. 2018-11-06 02:16:28 +00:00
CodeGenCoroutines Revert "[CodeGenCXX] Treat 'this' as noalias in constructors" 2018-10-15 15:43:00 +00:00
CodeGenObjC [CodeGen] Handle extern references to OBJC_CLASS_$_* 2018-10-12 17:22:10 +00:00
CodeGenObjCXX [CodeGen] Fix assertion on referencing constexpr Obj-C object with ARC. 2018-11-01 22:50:08 +00:00
CodeGenOpenCL [CodeGen] Update min-legal-vector width based on function argument and return types 2018-10-24 17:42:17 +00:00
Coverage [Frontend] Delete -print-decl-contexts 2018-10-03 03:50:44 +00:00
CoverageMapping [OPENMP] Fix PR38256: Fix locations of the artificial conditional op. 2018-07-25 14:40:26 +00:00
Driver AMDGPU: Add sram-ecc feature options 2018-11-05 22:44:59 +00:00
FixIt [Sema] Add fixit for unused lambda captures 2018-07-16 07:23:47 +00:00
Format
Frontend [Fixed Point Arithmetic] Refactor fixed point casts 2018-10-26 16:12:12 +00:00
Headers PR26547: alignof should return ABI alignment, not preferred alignment 2018-10-26 19:26:45 +00:00
Import [AST] Only store the needed data in WhileStmt 2018-10-30 13:42:41 +00:00
Index [CodeComplete] Do not complete self-initializations 2018-11-07 10:02:31 +00:00
Integration
Layout NFC - Fix typo in test/Layout/itanium-pack-and-align.cpp 2018-07-04 11:21:44 +00:00
Lexer Don't emit "will be treated as an identifier character" warning for 2018-09-25 22:34:45 +00:00
Misc [AST] Only store the needed data in SwitchStmt 2018-10-29 16:12:37 +00:00
Modules Reapply "Fix regression in behavior of clang -x c++-header -fmodule-name=XXX" 2018-11-05 12:46:02 +00:00
OpenMP [OPENMP][NVPTX]Use __kmpc_data_sharing_coalesced_push_stack function. 2018-11-02 16:08:31 +00:00
PCH Distinguish `__block` variables that are captured by escaping blocks 2018-10-01 21:51:28 +00:00
Parser Revert "Revert "Support for groups of attributes in #pragma clang attribute"" 2018-10-29 17:38:42 +00:00
Preprocessor [AArch64] Implement FP16FML intrinsics 2018-10-25 23:47:00 +00:00
Profile [FileCheck] Add -allow-deprecated-dag-overlap to failing clang tests 2018-07-11 20:26:20 +00:00
Refactor
Rewriter
Sema [Diagnostics] Implement -Wsizeof-pointer-div 2018-11-01 16:26:10 +00:00
SemaCUDA [CUDA][HIP] Fix ShouldDeleteSpecialMember for inherited constructors 2018-10-09 15:53:14 +00:00
SemaCXX [AST] Get aliased type info from an aliased TemplateSpecialization. 2018-11-05 17:25:26 +00:00
SemaObjC os_log: Allow specifying mask type in format string. 2018-11-06 07:05:14 +00:00
SemaObjCXX Distinguish `__block` variables that are captured by escaping blocks 2018-10-01 21:51:28 +00:00
SemaOpenCL Allow clk_event_t comparisons 2018-11-01 12:43:00 +00:00
SemaOpenCLCXX
SemaTemplate PR39231: fix null dereference when diagnosing deduction failure due to 2018-10-09 18:49:22 +00:00
TableGen
Templight
Tooling [Tooling] JSONCompilationDatabasePlugin infers compile commands for missing files 2018-09-14 12:24:09 +00:00
Unit
VFS [VFS] Add property 'fallthrough' that controls fallback to real file system. 2018-10-26 22:16:24 +00:00
clang-rename
.clang-format
CMakeLists.txt [analyzer] Fix bots by removing new check-clang-analyzer commands from CHECK-ALL 2018-08-14 18:55:34 +00:00
TestRunner.sh
cxx-sections.data
lit.cfg.py [CMake] Use normalized Windows target triples 2018-08-09 02:16:18 +00:00
lit.site.cfg.py.in Import lit.llvm after rC341132 2018-08-31 00:24:36 +00:00
make_test_dirs.pl