hanchenye-llvm-project/clang/test/Index
Kadir Cetinkaya a32d253f10 [clang] Make sure codecompletion is called for calls even when inside a token.
Summary:
Currently CodeCompleteCall only gets called after a comma or parantheses. This
patch makes sure it is called even at the cases like:
```foo(1^);```

Reviewers: ilya-biryukov, ioeric, hokein

Reviewed By: ilya-biryukov

Subscribers: MaskRay, jkorous, arphaman, cfe-commits

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

llvm-svn: 341824
2018-09-10 13:46:28 +00:00
..
Core [index] Introduce 'ProtocolInterface' as part of SymbolPropertySet 2018-08-26 06:27:23 +00:00
Inputs [Tooling] Clear the PreambleSrcLocCache when preamble is discarded during reparsing 2018-03-12 19:36:29 +00:00
USR [Index] fix USR generation for namespace{extern{X}} 2018-02-02 14:13:37 +00:00
reparse-with-remaps
skip-parsed-bodies
IBOutletCollection.m Revert 320391: Certain targets are failing, pulling back to diagnose. 2017-12-11 18:14:51 +00:00
KeepGoingWithLotsOfErrors.mm
TestClassDecl.m
TestClassForwardDecl.m
allow-editor-placeholders.cpp
annotate-attribute.cpp
annotate-comments-availability-attrs.cpp Append new attributes to the end of an AttributeList. 2018-08-03 01:21:16 +00:00
annotate-comments-objc.m
annotate-comments-preprocessor.c
annotate-comments-property-accessor.m
annotate-comments-typedef.m
annotate-comments-unterminated.c
annotate-comments.cpp
annotate-context-sensitive.cpp
annotate-deep-statements.cpp
annotate-literals.m
annotate-macro-args.h
annotate-macro-args.m Revert 320391: Certain targets are failing, pulling back to diagnose. 2017-12-11 18:14:51 +00:00
annotate-module.m
annotate-nested-name-specifier.cpp
annotate-operator-call-expr.cpp [libclang] Fix cursors for arguments of Subscript and Call operators 2018-08-23 09:48:11 +00:00
annotate-parameterized-classes.m
annotate-subscripting.m
annotate-tokens-cxx0x.cpp
annotate-tokens-include.c
annotate-tokens-include.h
annotate-tokens-pp.c Revert 320391: Certain targets are failing, pulling back to diagnose. 2017-12-11 18:14:51 +00:00
annotate-tokens-preamble.c
annotate-tokens-unexposed.cpp [libclang] Only mark CXCursors for explicit attributes with a type 2018-04-24 08:39:46 +00:00
annotate-tokens-with-default-args.cpp
annotate-tokens-with-default-args.h
annotate-tokens.c Revert 320391: Certain targets are failing, pulling back to diagnose. 2017-12-11 18:14:51 +00:00
annotate-tokens.cpp [libclang] Fix cursors for functions with trailing return type 2018-01-03 14:35:48 +00:00
annotate-tokens.m
annotate-toplevel-in-objccontainer.m
annotate-toplevel-in-objccontainer.m.h
arc-annotate.m
arc-complete.m
asm-attribute.c
attributes-cuda.cu
attributes.c [libclang 8/8] Add support for the flag_enum attribute 2018-08-03 05:55:40 +00:00
availability.c
availability.cpp
blocks.c
boxed-exprs.h
boxed-exprs.m
c-index-api-loadTU-test.m
c-index-getCursor-pp.c
c-index-getCursor-test.m Revert 320391: Certain targets are failing, pulling back to diagnose. 2017-12-11 18:14:51 +00:00
c-index-pch.c
c-index-redecls.c
c-index-unsupported-warning-test.c
cindex-from-source.m
cindex-on-invalid-usrs.m
cindex-on-invalid.m
cindex-test-inclusions.c
code-completion-skip-bodies.cpp
code-completion.cpp
codecompletion-chained.cpp
comment-c-decls.c
comment-cplus-decls.cpp [DeclPrinter] Honor TerseOutput for constructors 2017-11-16 01:28:25 +00:00
comment-cplus-template-decls.cpp
comment-cplus11-specific.cpp
comment-custom-block-command.cpp
comment-lots-of-unknown-commands.c
comment-misc-tags.m
comment-objc-decls.m
comment-objc-parameterized-classes.m [Test Fix] Fix broken test Index/comment-objc-parameterized-classes.m 2018-04-12 16:00:05 +00:00
comment-to-html-xml-conversion-with-original-literals.cpp
comment-to-html-xml-conversion.cpp
comment-unqualified-objc-pointer.m
comment-with-preamble.c
comment-xml-schema.c
compile_commands.json
complete-access-checks-crash.cpp [CodeComplete] Fix the crash in code completion on access checking 2018-07-30 15:19:05 +00:00
complete-access-checks.cpp [CodeComplete] Fix accessibilty of protected members from base class. 2018-07-19 13:32:00 +00:00
complete-and-plugins.c [Frontend] Avoid running plugins during code completion parse 2018-05-17 09:21:07 +00:00
complete-arrow-dot.cpp [libclang] Optionally add code completion results for arrow instead of dot 2018-06-13 12:37:08 +00:00
complete-at-EOF.c
complete-at-directives.m
complete-at-exprstmt.m
complete-available.m
complete-block-properties.m
complete-block-property-assignment.m [clang] Make sure codecompletion is called for calls even when inside a token. 2018-09-10 13:46:28 +00:00
complete-blocks.m
complete-cached-globals.cpp
complete-call.cpp Fix line endings in recently updated test file 2018-06-21 12:39:24 +00:00
complete-categories.m
complete-constructor-params.cpp
complete-ctor-inits.cpp
complete-cxx-inline-methods.cpp Avoid printing some redundant name qualifiers in completion 2017-11-08 10:39:09 +00:00
complete-declarators.cpp
complete-declarators.m
complete-designated-initializer.m
complete-documentation-properties.m
complete-documentation-templates.cpp
complete-documentation.cpp
complete-enums.c
complete-enums.cpp
complete-exprs.c [CodeComplete] Fix completion at the end of keywords 2018-04-24 13:48:53 +00:00
complete-exprs.cpp [CodeComplete] Omit templated constructors from member list too. 2018-01-22 20:44:47 +00:00
complete-exprs.m
complete-functor-call.cpp
complete-hiding.c
complete-in-invalid-method.m
complete-in-stringify.c
complete-interfaces.m [completion] complete ObjC interface names in an expression 2017-11-14 01:46:24 +00:00
complete-ivar-access.m
complete-kvc.m
complete-lambdas.cpp
complete-lambdas.mm
complete-macro-args.c
complete-macros.c
complete-macros.h
complete-member-access.m
complete-memfunc-cvquals.cpp
complete-method-decls.m
complete-module-undef.m
complete-modules.m
complete-natural.m
complete-objc-message-id.m
complete-objc-message.m
complete-optional-params.cpp
complete-parameterized-classes.m
complete-pch-skip.cpp [CodeComplete] only respect LoadExternal hint at namespace/tu scope 2018-01-24 17:50:20 +00:00
complete-pch.m
complete-pointer-and-reference-to-functions.cpp
complete-preamble.cpp
complete-preamble.h
complete-preprocessor.m [CodeComplete] Fix completion at the end of keywords 2018-04-24 13:48:53 +00:00
complete-properties.m
complete-property-flags.m
complete-property-getset.m
complete-protocols.m
complete-qualified.cpp
complete-recovery.m
complete-stmt.c
complete-super.cpp
complete-super.m
complete-synthesized.m
complete-tabs.c
complete-template-friends-defined.cpp
complete-templates.cpp
complete-type-factors.m
complete-unterminated.c
complete-with-annotations.cpp Append new attributes to the end of an AttributeList. 2018-08-03 01:21:16 +00:00
crash-preamble-classes.cpp [Sema] Add implicit members even for invalid CXXRecordDecls 2018-02-02 08:40:08 +00:00
crash-recovery-code-complete.c
crash-recovery-modules.m
crash-recovery-reparse.c
crash-recovery.c
create-libclang-completion-reproducer.c Recommit r329442: Generate Libclang invocation reproducers using a new 2018-04-07 00:03:27 +00:00
create-libclang-parsing-reproducer.c Recommit r329442: Generate Libclang invocation reproducers using a new 2018-04-07 00:03:27 +00:00
create-tu-fail.c
ctor-init-source-loc.cpp
cursor-dynamic-call.mm
cursor-ref-names.cpp
cxx-operator-overload.cpp
cxx11-lambdas.cpp
error-on-deserialized.c
evaluate-cursor.cpp
file-includes.c
file-macro-refs.c
file-refs-subscripting.m
file-refs.c
file-refs.cpp
file-refs.m
fix-its.c
fix-its.m
format-comment-cdecls.c
get-cursor-includes.c
get-cursor-macro-args.h
get-cursor-macro-args.m Revert 320391: Certain targets are failing, pulling back to diagnose. 2017-12-11 18:14:51 +00:00
get-cursor.c
get-cursor.cpp [libclang] Stop assuming that the internal C++ ABI ExceptionSpecificationType enumeration is the same as CXCursor_ExceptionSpecificationKind. 2018-05-11 19:46:31 +00:00
get-cursor.m
getcursor-pp-pch.c
getcursor-pp-pch.c.h
getcursor-preamble.h
getcursor-preamble.m
headerfile-comment-to-html.m Fix typos in clang 2018-04-06 15:14:32 +00:00
implicit-attrs.m [libclang 6/8] Add support for reading implicit attributes 2018-08-03 05:20:23 +00:00
in-class-init.cpp
include_test.h
include_test_2.h
index-attrs.c
index-attrs.cpp
index-attrs.m [libclang 5/8] Add support for ObjC attributes without args 2018-08-03 05:03:22 +00:00
index-decls.m
index-file.cpp
index-file.cu
index-invalid-code.m
index-kernel-invocation.cpp
index-many-call-ops.cpp
index-many-logical-ops.c
index-module-with-vfs.m
index-module.m
index-pch-objc.m
index-pch-with-module.m
index-pch.cpp
index-refs.cpp [libclang] Add `CXSymbolRole role` to CXIdxEntityRefInfo 2018-02-12 17:42:09 +00:00
index-refs.m
index-subscripting-literals.m [libclang] Add `CXSymbolRole role` to CXIdxEntityRefInfo 2018-02-12 17:42:09 +00:00
index-suppress-refs.cpp
index-suppress-refs.h
index-suppress-refs.hpp
index-suppress-refs.m
index-template-specialization.cpp [Index] Set OrigD before D is changed. 2018-07-20 08:08:56 +00:00
index-template-template-param.cpp
index-templates.cpp
index-with-working-dir.c
initializer-memory.cpp
invalid-code-rdar10451854.m
invalid-code-rdar_7833619.m
invalid-rdar-8236270.cpp
keep-going.cpp
linkage.c
load-classes.cpp [libclang] Add support for checking abstractness of records 2017-12-14 22:01:50 +00:00
load-decls.c
load-exprs.c
load-namespaces.cpp
load-staticassert.cpp
load-stmts.cpp
local-symbols.m
missing_vfs.c [vfs] Don't bail out after a missing -ivfsoverlay file 2018-03-23 17:37:27 +00:00
modules-objc-categories.m
ms-if-exists.cpp
namespaced-base-ctor-init.cpp
nested-binaryoperators.cpp
nullability.c [libclang 4/8] Add the clang_Type_getNullability() API 2018-08-03 04:38:04 +00:00
objc-typeargs-protocols.m [libclang 1/8] Add support for ObjCObjectType 2018-08-03 03:03:20 +00:00
opencl-types.cl [Index] Update tests allowing double4 type to be "invalid" 2018-09-03 12:43:26 +00:00
overrides.cpp
overrides.m
overriding-ftemplate-comments.cpp Fix an Index test caused by a clang-format change (r332436). 2018-05-16 12:58:13 +00:00
overriding-method-comments.mm
paren-type.c [libclang] Fix the type of 'int (Foo);' 2018-05-01 20:45:25 +00:00
parse-all-comments.c
pch-depending-on-deleted-module.c
pch-from-libclang.c
pch-opaque-value.cpp
pch-warn-as-error-code-split.cpp
pch-warn-as-error-code-split.h
pch-warn-as-error-code.cpp
pch-with-errors.c
pch-with-errors.m
pch-with-module.m
pipe-size.cl [OpenCL] Add separate read_only and write_only pipe IR types 2018-04-27 10:37:04 +00:00
pr20320.cpp
pr20320.h
pragma-diag-reparse.c
preamble-conditionals-crash.cpp
preamble-conditionals-inverted-with-error.cpp
preamble-conditionals-inverted.cpp
preamble-conditionals-skipping.cpp
preamble-conditionals.cpp
preamble-reparse-chained.c
preamble-reparse-cmd-define.c
preamble-reparse-cmd-define.c.h
preamble-reparse-cmd-define.c.remap
preamble-reparse-import.m
preamble-reparse-import.m-1.h
preamble-reparse-import.m-2.h
preamble-reparse-import.m-3.h
preamble-reparse-warn-end-of-file.c
preamble-reparse-warn-macro.c
preamble-reparse-with-BOM.m
preamble-reparse.c
preamble-with-implicit-import.m
preamble.c
preamble_macro_template.cpp
print-bitwidth.c
print-cxx-manglings.cpp
print-display-names.cpp [libclang] Add PrintingPolicy for pretty printing declarations 2018-01-16 10:19:56 +00:00
print-mangled-name.cpp
print-objc-manglings.m
print-type-cxx11.cpp
print-type-declaration.cpp
print-type-size.cpp [libclang] Support querying whether a declaration is invalid 2018-01-04 10:59:50 +00:00
print-type.c [libclang] Fix the type of 'int (Foo);' 2018-05-01 20:45:25 +00:00
print-type.cpp [libclang] Return the proper pointee type for 'auto' deduced to pointer 2018-09-07 13:23:51 +00:00
print-type.m [libclang 2/8] Add support for ObjCTypeParam 2018-08-03 04:02:40 +00:00
print-usrs.c
properties-class-extensions.m
property-getter-setter.m [libclang 7/8] Add support for getting property setter and getter names 2018-08-03 05:38:29 +00:00
rdar-8288645-invalid-code.mm
rdar12316296-codecompletion.m
read-empty-diags.test
record-completion-invocation.c [libclang] Record code-completion invocations to a temporary file when 2017-12-07 20:37:50 +00:00
record-parsing-invocation.c Fix another record-parsing-invocation.c test issue on Windows 2017-12-05 23:04:12 +00:00
recover-bad-code-rdar_7487294.c
recursive-cxx-member-calls.cpp
recursive-member-access.c
redeclarations.cpp
remap-complete.c
remap-cursor-at.c
remap-load.c
reparse-instantiate.cpp
reparse-predef-objc-protocol.m
reparsed-live-issue.cpp Add missing "env" so that test added in r327322 passes on Windows bots. 2018-03-13 00:41:44 +00:00
retain-comments-from-system-headers.c
retain-target-options.c
single-file-parse.m
skipped-bodies-ctors.cpp [Frontend] Correctly handle instantiating ctors with skipped bodies 2017-12-28 13:05:46 +00:00
skipped-bodies-templates.cpp [Frontend] Handle skipped bodies in template instantiations 2017-12-20 14:32:38 +00:00
skipped-function-bodies.cpp Renamed test file to use proper naming convention 2017-12-14 14:51:17 +00:00
skipped-ranges.c
subclass-comment.mm
symbol-visibility.c
target-info.c
targeted-annotation.c
targeted-cursor.c
targeted-cursor.m
targeted-cursor.m.h
targeted-fields.h
targeted-file-refs.c
targeted-nested1.h
targeted-preamble.h
targeted-top.h
unmatched-braces.c
unmatched-braces.m
usrs-cxx0x.cpp
usrs.cpp
usrs.m
visibility.c
warning-flags.c
werror.c