hanchenye-llvm-project/clang/test/Index
Benjamin Kramer e3962aebca Fix overloaded static functions in SemaCodeComplete
https://bugs.llvm.org/show_bug.cgi?id=33904
Happens when static function is accessed via the class variable. That leads to incorrect overloads number because the variable is considered as the first argument.

struct Bar {
  static void foo(); static void foo(int);
};

int main() {
  Bar b;
  b.foo(/*complete here*/); // did not work before
  Bar::foo(/*complete here*/); // worked fine
}

Patch by Ivan Donchevskii!

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

llvm-svn: 316646
2017-10-26 08:41:28 +00:00
..
Core [index] Add indexing for unresolved-using declarations 2017-08-16 23:12:21 +00:00
Inputs [Frontend] Verify that the bitstream is not empty before reading 2017-07-07 10:25:12 +00:00
USR R13575: Fix USR mangling for function pointer types 2017-10-10 00:35:16 +00:00
reparse-with-remaps
skip-parsed-bodies
IBOutletCollection.m
KeepGoingWithLotsOfErrors.mm DiagnosticsEngine should clear DelayedDiagID before reporting the 2017-05-04 13:56:51 +00:00
TestClassDecl.m
TestClassForwardDecl.m
allow-editor-placeholders.cpp [libclang] Pass in the -fallow-editor-placeholders option 2017-04-27 13:47:03 +00:00
annotate-attribute.cpp [libclang] Visit attributes for function and class templates 2017-10-16 23:43:02 +00:00
annotate-comments-availability-attrs.cpp
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
annotate-module.m
annotate-nested-name-specifier.cpp Print nested name specifiers for typedefs and type aliases 2017-03-10 15:04:58 +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
annotate-tokens-preamble.c
annotate-tokens-with-default-args.cpp
annotate-tokens-with-default-args.h
annotate-tokens.c [libclang] Fix issue with clang_tokenize and make sure it interprets CXSourceRange as half-open character range. 2016-11-09 23:58:39 +00:00
annotate-tokens.cpp
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
availability.c Recommit r305117: [libclang] Merge multiple availability clauses when 2017-06-12 19:06:30 +00:00
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
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 Fix templated type alias completion when using global completion cache 2017-09-08 09:31:13 +00:00
codecompletion-chained.cpp
comment-c-decls.c
comment-cplus-decls.cpp [ASTPrinter] Print nested name specifiers for out-of-line functions 2017-04-11 16:46:03 +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
comment-to-html-xml-conversion-with-original-literals.cpp Print enum constant values using the original source formatting 2017-08-17 13:41:55 +00:00
comment-to-html-xml-conversion.cpp Make output of -ast-print a valid C++ code. 2016-11-10 08:49:37 +00:00
comment-unqualified-objc-pointer.m
comment-with-preamble.c
comment-xml-schema.c
compile_commands.json
complete-access-checks.cpp Set completion priority of destructors and operators to CCP_Unlikely. 2017-09-22 19:07:37 +00:00
complete-at-EOF.c
complete-at-directives.m
complete-at-exprstmt.m
complete-available.m [clang] Remove redundant check-prefix=CHECK from tests. NFC. 2017-07-17 17:31:44 +00:00
complete-block-properties.m [CodeCompletion] Format block parameter placeholders in implicit property 2017-03-13 15:43:42 +00:00
complete-block-property-assignment.m [CodeCompletion] Block property setters: Use dynamic priority heuristic 2017-01-06 12:00:44 +00:00
complete-blocks.m
complete-cached-globals.cpp [Sema] UsingShadowDecl shouldn't be hidden by the UsingDecl that owns it 2017-01-23 17:23:23 +00:00
complete-call.cpp Fix overloaded static functions in SemaCodeComplete 2017-10-26 08:41:28 +00:00
complete-categories.m
complete-constructor-params.cpp Don't show deleted function (constructor) candidates for code completion 2017-09-08 10:23:08 +00:00
complete-ctor-inits.cpp
complete-cxx-inline-methods.cpp Set completion priority of destructors and operators to CCP_Unlikely. 2017-09-22 19:07:37 +00:00
complete-declarators.cpp
complete-declarators.m
complete-designated-initializer.m [CodeCompletion] Autocomplete NS_DESIGNATED_INITIALIZER in initializers 2017-01-03 11:56:40 +00:00
complete-documentation-properties.m
complete-documentation-templates.cpp
complete-documentation.cpp
complete-enums.c
complete-enums.cpp
complete-exprs.c
complete-exprs.cpp
complete-exprs.m
complete-functor-call.cpp
complete-hiding.c
complete-in-invalid-method.m
complete-in-stringify.c
complete-interfaces.m
complete-ivar-access.m
complete-kvc.m [CodeCompletion][ObjC] Use a parameterized NSSet return type for 2016-12-08 16:49:05 +00:00
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 [code completion] Complete ObjC methods in @implementation without leading 2017-10-24 16:39:37 +00:00
complete-module-undef.m
complete-modules.m
complete-natural.m
complete-objc-message-id.m Implement filtering for code completion of identifiers. 2016-07-27 14:56:59 +00:00
complete-objc-message.m [CodeCompletion] Ensure that ObjC root class completes instance 2017-01-24 14:15:08 +00:00
complete-optional-params.cpp Add default values for function parameter chunks 2017-07-19 10:45:40 +00:00
complete-parameterized-classes.m
complete-pch.m
complete-pointer-and-reference-to-functions.cpp
complete-preamble.cpp
complete-preamble.h [ASTUnit] Clear out diagnostic state after creating the preamble. 2017-02-13 16:16:43 +00:00
complete-preprocessor.m
complete-properties.m [CodeCompletion] Provide Objective-C class property completion results 2016-12-08 15:09:40 +00:00
complete-property-flags.m
complete-property-getset.m
complete-protocols.m
complete-qualified.cpp Set completion priority of destructors and operators to CCP_Unlikely. 2017-09-22 19:07:37 +00:00
complete-recovery.m Implement filtering for code completion of identifiers. 2016-07-27 14:56:59 +00:00
complete-stmt.c
complete-super.cpp Do not add a colon chunk to the code completion of class inheritance access modifiers 2017-10-24 13:46:58 +00:00
complete-super.m Implement filtering for code completion of identifiers. 2016-07-27 14:56:59 +00:00
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 Set completion priority of destructors and operators to CCP_Unlikely. 2017-09-22 19:07:37 +00:00
crash-recovery-code-complete.c Do not run tests for crash recovery if libstdc++ safe mode is enabled 2017-04-15 05:53:49 +00:00
crash-recovery-modules.m Do not run tests for crash recovery if libstdc++ safe mode is enabled 2017-04-15 05:53:49 +00:00
crash-recovery-reparse.c Do not run tests for crash recovery if libstdc++ safe mode is enabled 2017-04-15 05:53:49 +00:00
crash-recovery.c Do not run tests for crash recovery if libstdc++ safe mode is enabled 2017-04-15 05:53:49 +00:00
create-tu-fail.c
ctor-init-source-loc.cpp Recommit r306103: PR26195: Set correct NestedNameSpecifierLoc for the 2017-06-27 10:35:30 +00:00
cursor-dynamic-call.mm [libclang] Enhance clang_Cursor_isDynamicCall and clang_Cursor_getReceiverType to handle ObjC property references 2017-04-27 17:23:04 +00:00
cursor-ref-names.cpp
cxx-operator-overload.cpp
cxx11-lambdas.cpp
error-on-deserialized.c
evaluate-cursor.cpp [libclang] Add APIs to check the result of an integer expression in CXEvalResult without overflow 2016-12-01 23:41:27 +00:00
file-includes.c
file-macro-refs.c
file-refs-subscripting.m
file-refs.c
file-refs.cpp Print nested name specifiers for typedefs and type aliases 2017-03-10 15:04:58 +00:00
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
get-cursor.c
get-cursor.cpp [libclang] Support for querying the exception specification type through libclang 2017-06-27 22:54:56 +00:00
get-cursor.m [libclang] Introduce clang_Cursor_isExternalSymbol that provides info about decls marked with external_source_symbol attribute 2017-05-10 15:10:36 +00:00
getcursor-pp-pch.c
getcursor-pp-pch.c.h
getcursor-preamble.h
getcursor-preamble.m
headerfile-comment-to-html.m
in-class-init.cpp
include_test.h
include_test_2.h
index-attrs.c Driver must return non-zero code on errors in command line 2017-05-24 14:57:17 +00:00
index-attrs.cpp Driver must return non-zero code on errors in command line 2017-05-24 14:57:17 +00:00
index-attrs.m
index-decls.m [index] Improvde how we handle synthesized ObjC properties and the associated ivars. 2017-02-17 04:49:41 +00:00
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 [coroutines] Support "coroutines" feature in module map requires clause 2017-05-28 21:07:22 +00:00
index-pch-objc.m
index-pch-with-module.m
index-pch.cpp Driver: hoist the `wchar_t` handling to the driver 2017-10-06 23:09:55 +00:00
index-refs.cpp [index] Index type source info for class specializations 2017-04-25 15:13:42 +00:00
index-refs.m
index-subscripting-literals.m
index-suppress-refs.cpp
index-suppress-refs.h
index-suppress-refs.hpp
index-suppress-refs.m
index-template-template-param.cpp Fix indexer crash for default template template parameter value 2017-10-10 21:09:49 +00:00
index-templates.cpp [index] Add indexing for unresolved-using declarations 2017-08-16 23:12:21 +00:00
index-with-working-dir.c
initializer-memory.cpp
invalid-code-rdar10451854.m
invalid-code-rdar_7833619.m
invalid-rdar-8236270.cpp
keep-going.cpp [modules] Round-trip -Werror flag through explicit module build. 2017-05-03 00:28:49 +00:00
linkage.c Change enumerator default linkage type for C 2017-07-01 00:06:27 +00:00
load-classes.cpp [index] Expose FriendDecl 2016-11-04 06:29:27 +00:00
load-decls.c
load-exprs.c
load-namespaces.cpp
load-staticassert.cpp [test] Test that static_assert is properly visited in liblcang 2016-11-04 12:04:16 +00:00
load-stmts.cpp
local-symbols.m
modules-objc-categories.m
ms-if-exists.cpp
namespaced-base-ctor-init.cpp
nested-binaryoperators.cpp
opencl-types.cl [libclang] [OpenCL] Expose more OpenCL CIndex types 2017-05-23 10:36:43 +00:00
overrides.cpp
overrides.m
overriding-ftemplate-comments.cpp Fix Index test after recent clang-format change. 2017-02-01 10:00:10 +00:00
overriding-method-comments.mm [ASTPrinter] Print nested name specifiers for out-of-line functions 2017-04-11 16:46:03 +00:00
parse-all-comments.c
pch-depending-on-deleted-module.c
pch-from-libclang.c [GeneratePCHAction] If preprocessor option 'AllowPCHWithCompilerErrors' is enabled, don't delete the produced PCH file if error diagnostics occurred. 2017-02-27 03:52:36 +00:00
pch-opaque-value.cpp
pch-warn-as-error-code-split.cpp [test] Add 'env' to fix test failures in windows bots. 2016-07-13 22:03:47 +00:00
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 [AMDGPU] Fix size and alignment of size_t and pointer types 2017-07-05 04:58:24 +00:00
pr20320.cpp Mark invalid RecordDecls as completed. 2016-10-27 08:37:14 +00:00
pr20320.h Mark invalid RecordDecls as completed. 2016-10-27 08:37:14 +00:00
pragma-diag-reparse.c
preamble-conditionals-crash.cpp Fixed a crash on replaying Preamble's PP conditional stack. 2017-08-21 12:03:08 +00:00
preamble-conditionals-inverted-with-error.cpp Fix recording preamble's conditional stack in skipped PP branches. 2017-09-12 08:35:57 +00:00
preamble-conditionals-inverted.cpp Fix recording preamble's conditional stack in skipped PP branches. 2017-09-12 08:35:57 +00:00
preamble-conditionals.cpp Fixed a crash on replaying Preamble's PP conditional stack. 2017-08-21 12:03:08 +00:00
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
print-mangled-name.cpp
print-objc-manglings.m [index] Generate class & metaclass manglings for objc 2017-09-22 16:58:57 +00:00
print-type-cxx11.cpp
print-type-declaration.cpp [libclang] Support for querying whether an enum is scoped 2017-07-12 11:35:11 +00:00
print-type-size.cpp
print-type.c
print-type.cpp Remove leftover test expectation from rL301902. 2017-05-02 09:57:30 +00:00
print-type.m
print-usrs.c
properties-class-extensions.m
rdar-8288645-invalid-code.mm
rdar12316296-codecompletion.m
read-empty-diags.test [Frontend] Verify that the bitstream is not empty before reading 2017-07-07 10:25:12 +00:00
recover-bad-code-rdar_7487294.c [lit] Improve tool substitution in lit. 2017-10-06 17:54:46 +00:00
recursive-cxx-member-calls.cpp Print nested name specifiers for typedefs and type aliases 2017-03-10 15:04:58 +00:00
recursive-member-access.c
redeclarations.cpp
remap-complete.c
remap-cursor-at.c
remap-load.c
reparse-instantiate.cpp
reparse-predef-objc-protocol.m
retain-comments-from-system-headers.c
retain-target-options.c
single-file-parse.m [preprocessor] Fix assertion hit when 'SingleFileParseMode' option is enabled and #if with an undefined identifier and without #else 2017-06-21 18:52:44 +00:00
skipped-ranges.c [Lexer] Report more precise skipped regions (PR34166) 2017-09-11 20:47:42 +00:00
subclass-comment.mm
symbol-visibility.c
target-info.c [libclang] Expose some target information via the C API. 2017-04-28 15:56:39 +00:00
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 [index] Handle vector types in USR generator 2017-04-28 09:46:36 +00:00
usrs.m [modules] Teach clang how to merge typedef over anonymous structs in C mode. 2017-07-01 20:44:49 +00:00
visibility.c
warning-flags.c
werror.c