llvm-project/clang/test/CodeCompletion
Nathan Sidwell 3d2080683f [clang][DR2621] using enum NAME lookup fix
Although using-enum's grammar is 'using elaborated-enum-specifier',
the lookup for the enum is ordinary lookup (and not the tagged-type
lookup that normally occurs wth an tagged-type specifier).  Thus (a)
we can find typedefs and (b) do not find enum tags hidden by a non-tag
name (the struct stat thing).

This reimplements that part of using-enum handling, to address DR2621,
where clang's behaviour does not match std intent (and other
compilers).

Reviewed By: aaron.ballman

Differential Revision: https://reviews.llvm.org/D134283
2022-09-28 08:50:27 -07:00
..
Inputs
PR9728.cpp
accessibility-crash.cpp
accessibility.cpp
after-function-equals.cpp [CodeComplete] Add code completion after function equals 2020-07-01 12:51:25 +08:00
attr.cpp [CodeCompletion] Provide placeholders for known attribute arguments 2021-08-19 14:03:41 +02:00
auto.cpp
auto_type.c
bracket-decl.c
call.c
call.cpp [clang] Make signature help work with dependent args 2020-08-17 10:06:36 +02:00
comments.cpp
concepts.cpp
constexpr.cpp
crash-func-decl.cpp
crash-func-init.cpp
crash-if-directive.cpp [clang][PreProcessor] Cutoff parsing after hitting completion point 2021-05-10 11:24:27 +02:00
crash-null-type.cpp
crash-skipped-bodies-template-inst.cpp
ctor-initializer.cpp [CodeCompletion] (mostly) fix completion in incomplete C++ ctor initializers. 2022-01-13 08:06:35 +01:00
ctor-signature.cpp [CodeCompletion] Signature help for aggregate initialization. 2022-01-04 16:00:22 +01:00
desig-init.cpp [CodeCompletion] Complete designators for fields in anonymous structs/unions 2022-01-11 00:58:49 +01:00
deuglify.cpp [CodeCompletion][clangd] Clean __uglified parameter names in completion & hover 2022-01-26 15:51:17 +01:00
documentation.cpp
documentation.m
enable-if-attr-crash.cpp
end-of-file.cpp
end-of-ident-macro.cpp
end-of-ident.cpp
enum-preferred-type.cpp
enum-switch-case-qualified.cpp
enum-switch-case.c
enum-switch-case.cpp
function-overloads.cpp [clang][CodeComplete] Fix crash on ParenListExprs 2021-02-08 13:16:49 +01:00
function-templates.cpp
functions.cpp
ignore-ns-level-decls.cpp
included-files.cpp [CodeCompletion] Generally consider header files without extension 2021-11-10 08:22:48 +01:00
included-frameworks.m
included-symlinks.cpp
incomplete-member.cpp
incomplete-ret-type.cpp
inside-macros.cpp
invalid-initialized-class.cpp
keywords.cpp
lambdas.cpp
macros-in-modules.c
macros-in-modules.m
macros.c
member-access-qualifiers.cpp
member-access.c [clang][CodeComplete] Fix crash on ParenListExprs 2021-02-08 13:16:49 +01:00
member-access.cpp [clang] Apply FixIts to members declared via `using` in derived classes 2022-08-17 10:09:48 +02:00
namespace-alias.cpp
namespace.cpp
nested-name-specifier.cpp
objc-expr.m
objc-member-access.m
objc-message.m
objc-message.mm
objc-protocol-member-access.m
operator.cpp
ordinary-name-cxx11.cpp [CodeComplete] Add code completion for using alias. 2020-06-26 15:55:45 +02:00
ordinary-name.c
ordinary-name.cpp [CodeComplete] Add code completion for using alias. 2020-06-26 15:55:45 +02:00
overrides.cpp [clang] Give priority to Class context while parsing declarations 2022-08-17 10:06:39 +02:00
paren_locs.cpp
patterns.cpp [CodeComplete] Tweak completion for else. 2020-06-30 16:48:24 +01:00
pch-and-module.m
pragma-macro-token-caching.c Diagnose -Wunused-value based on CFG reachability 2021-09-28 10:00:15 -07:00
preamble.c
preferred-type.cpp
qualifiers-as-written.cpp
self-inits.cpp
signatures-crash.cpp
skip-auto-funcs.cpp
some_struct.h
stdin.c
tag.c Use functions with prototypes when appropriate; NFC 2022-02-09 09:11:49 -05:00
tag.cpp
template-signature.cpp [CodeCompletion] Signature help for template argument lists 2022-01-03 16:28:16 +01:00
templates.cpp
this-quals.cpp
truncation.c
truncation.c.h
uninstantiated_params.cpp
using-enum.cpp [clang][DR2621] using enum NAME lookup fix 2022-09-28 08:50:27 -07:00
using-namespace.cpp
using.cpp
variadic-template.cpp [clang][clangd] Improve signature help for variadic functions. 2021-11-18 15:50:47 +01:00