llvm/clang/test/AST
Chuanqi Xu 2fbd254aa4 [Coroutines] [Clang] Look up coroutine component in std namespace first
Summary: Now in libcxx and clang, all the coroutine components are
defined in std::experimental namespace.
And now the coroutine TS is merged into C++20. So in the working draft
like N4892, we could find the coroutine components is defined in std
namespace instead of std::experimental namespace.
And the coroutine support in clang seems to be relatively stable. So I
think it may be suitable to move the coroutine component into the
experiment namespace now.

But move the coroutine component into the std namespace may be an break
change. So I planned to split this change into two patch. One in clang
and other in libcxx.

This patch would make clang lookup coroutine_traits in std namespace
first. For the compatibility consideration, clang would lookup in
std::experimental namespace if it can't find definitions in std
namespace and emit a warning in this case. So the existing codes
wouldn't be break after update compiler.

Test Plan: check-clang, check-libcxx

Reviewed By: lxfind

Differential Revision: https://reviews.llvm.org/D108696
2021-09-03 10:22:55 +08:00
..
Inputs [Coroutines] [Clang] Look up coroutine component in std namespace first 2021-09-03 10:22:55 +08:00
Interp
address_space_attribute.cpp
alignas_maybe_odr_cleanup.cpp [SystemZ][z/OS] fix lit test related to alignment 2021-03-23 13:15:19 -04:00
arithmetic-fence-builtin.c [clang][patch] Add builtin __arithmetic_fence and option fprotect-parens 2021-06-30 09:58:06 -04:00
ast-dump-aarch64-sve-types.c
ast-dump-APValue-anon-union.cpp
ast-dump-APValue-arithmetic.cpp
ast-dump-APValue-array.cpp
ast-dump-APValue-struct.cpp
ast-dump-APValue-todo.cpp
ast-dump-APValue-union.cpp
ast-dump-APValue-vector.cpp
ast-dump-arm-attr.c
ast-dump-array.cpp
ast-dump-attr.cpp
ast-dump-attr.m
ast-dump-c-attr.c Fix an accepts-invalid issue with [[]] attributes in the type position in C 2021-07-01 12:41:18 -04:00
ast-dump-color.cpp
ast-dump-comment-json.cpp
ast-dump-comment.cpp
ast-dump-concepts.cpp
ast-dump-constant-expr.cpp
ast-dump-constant-var.cu [CUDA][HIP] Fix device variables used by host 2021-05-20 17:04:29 -04:00
ast-dump-decl-context-json.cpp
ast-dump-decl-json.c [clang] NFC: Rename rvalue to prvalue 2021-06-09 12:27:10 +02:00
ast-dump-decl-json.m [clang] NFC: Rename rvalue to prvalue 2021-06-09 12:27:10 +02:00
ast-dump-decl-stmts.cpp
ast-dump-decl.c
ast-dump-decl.cpp
ast-dump-decl.m
ast-dump-decl.mm
ast-dump-default-arg-dep.cpp [clang] Make CXXDefaultArgExpr inherit dependence from the inner Expr 2021-06-10 14:51:08 +02:00
ast-dump-enum-json.cpp Modify TypePrinter to differentiate between anonymous struct and unnamed struct 2021-02-22 14:16:43 -08:00
ast-dump-expr-errors.cpp
ast-dump-expr-json.c [clang] NFC: Rename rvalue to prvalue 2021-06-09 12:27:10 +02:00
ast-dump-expr-json.cpp [clang] NFC: Rename rvalue to prvalue 2021-06-09 12:27:10 +02:00
ast-dump-expr-json.m [clang] NFC: Rename rvalue to prvalue 2021-06-09 12:27:10 +02:00
ast-dump-expr.c
ast-dump-expr.cpp
ast-dump-file-line-json.c
ast-dump-fpfeatures.cpp
ast-dump-funcs-json.cpp [clang] NFC: Rename rvalue to prvalue 2021-06-09 12:27:10 +02:00
ast-dump-funcs.cpp
ast-dump-if-json.cpp [clang] NFC: Rename rvalue to prvalue 2021-06-09 12:27:10 +02:00
ast-dump-implicit-members.clcpp [OpenCL] Relax test implicit members in C++ for OpenCL 2021-06-10 10:18:52 +01:00
ast-dump-invalid-auto-return-funcs.cpp
ast-dump-invalid-initialized.cpp
ast-dump-invalid.cpp
ast-dump-lambda-body-not-duplicated.cpp
ast-dump-lambda.cpp Implement P2173 for attributes on lambdas 2021-03-03 10:05:39 -05:00
ast-dump-lookups.cpp
ast-dump-macro-json.c
ast-dump-managed-var.cu
ast-dump-msp430-attr.c
ast-dump-namespace-json.cpp
ast-dump-objc-arc-json.m [clang] NFC: Rename rvalue to prvalue 2021-06-09 12:27:10 +02:00
ast-dump-openmp-atomic.c
ast-dump-openmp-barrier.c
ast-dump-openmp-begin-declare-variant-varying-return.c
ast-dump-openmp-begin-declare-variant_1.c
ast-dump-openmp-begin-declare-variant_2.c
ast-dump-openmp-begin-declare-variant_3.c
ast-dump-openmp-begin-declare-variant_4.c
ast-dump-openmp-begin-declare-variant_5.c
ast-dump-openmp-begin-declare-variant_6.c
ast-dump-openmp-begin-declare-variant_7.c
ast-dump-openmp-begin-declare-variant_8.c
ast-dump-openmp-begin-declare-variant_9.c
ast-dump-openmp-begin-declare-variant_10.c
ast-dump-openmp-begin-declare-variant_11.c
ast-dump-openmp-begin-declare-variant_12.c
ast-dump-openmp-begin-declare-variant_13.c
ast-dump-openmp-begin-declare-variant_addr_1.c
ast-dump-openmp-begin-declare-variant_decl_1.c
ast-dump-openmp-begin-declare-variant_namespace_1.cpp
ast-dump-openmp-begin-declare-variant_nested.c
ast-dump-openmp-begin-declare-variant_reference.cpp [OpenMP][FIX] Allow declare variant to work with reference types 2021-08-27 13:12:14 -05:00
ast-dump-openmp-begin-declare-variant_template_1.cpp
ast-dump-openmp-begin-declare-variant_template_2.cpp
ast-dump-openmp-begin-declare-variant_template_3.cpp
ast-dump-openmp-cancel.c Modify TypePrinter to differentiate between anonymous struct and unnamed struct 2021-02-22 14:16:43 -08:00
ast-dump-openmp-cancellation-point.c Modify TypePrinter to differentiate between anonymous struct and unnamed struct 2021-02-22 14:16:43 -08:00
ast-dump-openmp-critical.c
ast-dump-openmp-declare-variant-extensions-messages.c
ast-dump-openmp-declare-variant-extensions.c
ast-dump-openmp-distribute-parallel-for-simd.c Modify TypePrinter to differentiate between anonymous struct and unnamed struct 2021-02-22 14:16:43 -08:00
ast-dump-openmp-distribute-parallel-for.c Modify TypePrinter to differentiate between anonymous struct and unnamed struct 2021-02-22 14:16:43 -08:00
ast-dump-openmp-distribute-simd.c Modify TypePrinter to differentiate between anonymous struct and unnamed struct 2021-02-22 14:16:43 -08:00
ast-dump-openmp-distribute.c Modify TypePrinter to differentiate between anonymous struct and unnamed struct 2021-02-22 14:16:43 -08:00
ast-dump-openmp-flush.c
ast-dump-openmp-for-simd.c Modify TypePrinter to differentiate between anonymous struct and unnamed struct 2021-02-22 14:16:43 -08:00
ast-dump-openmp-for.c Modify TypePrinter to differentiate between anonymous struct and unnamed struct 2021-02-22 14:16:43 -08:00
ast-dump-openmp-master.c
ast-dump-openmp-ordered.c Modify TypePrinter to differentiate between anonymous struct and unnamed struct 2021-02-22 14:16:43 -08:00
ast-dump-openmp-parallel-for-simd.c Modify TypePrinter to differentiate between anonymous struct and unnamed struct 2021-02-22 14:16:43 -08:00
ast-dump-openmp-parallel-for.c Modify TypePrinter to differentiate between anonymous struct and unnamed struct 2021-02-22 14:16:43 -08:00
ast-dump-openmp-parallel-master-XFAIL.c
ast-dump-openmp-parallel-sections.c Modify TypePrinter to differentiate between anonymous struct and unnamed struct 2021-02-22 14:16:43 -08:00
ast-dump-openmp-parallel.c Modify TypePrinter to differentiate between anonymous struct and unnamed struct 2021-02-22 14:16:43 -08:00
ast-dump-openmp-section.c Modify TypePrinter to differentiate between anonymous struct and unnamed struct 2021-02-22 14:16:43 -08:00
ast-dump-openmp-sections.c Modify TypePrinter to differentiate between anonymous struct and unnamed struct 2021-02-22 14:16:43 -08:00
ast-dump-openmp-simd.c Modify TypePrinter to differentiate between anonymous struct and unnamed struct 2021-02-22 14:16:43 -08:00
ast-dump-openmp-single.c Modify TypePrinter to differentiate between anonymous struct and unnamed struct 2021-02-22 14:16:43 -08:00
ast-dump-openmp-target-data.c Modify TypePrinter to differentiate between anonymous struct and unnamed struct 2021-02-22 14:16:43 -08:00
ast-dump-openmp-target-enter-data.c Modify TypePrinter to differentiate between anonymous struct and unnamed struct 2021-02-22 14:16:43 -08:00
ast-dump-openmp-target-exit-data.c Modify TypePrinter to differentiate between anonymous struct and unnamed struct 2021-02-22 14:16:43 -08:00
ast-dump-openmp-target-parallel-for-simd.c Modify TypePrinter to differentiate between anonymous struct and unnamed struct 2021-02-22 14:16:43 -08:00
ast-dump-openmp-target-parallel-for.c Modify TypePrinter to differentiate between anonymous struct and unnamed struct 2021-02-22 14:16:43 -08:00
ast-dump-openmp-target-parallel.c Modify TypePrinter to differentiate between anonymous struct and unnamed struct 2021-02-22 14:16:43 -08:00
ast-dump-openmp-target-simd.c Modify TypePrinter to differentiate between anonymous struct and unnamed struct 2021-02-22 14:16:43 -08:00
ast-dump-openmp-target-teams-distribute-parallel-for-simd.c Modify TypePrinter to differentiate between anonymous struct and unnamed struct 2021-02-22 14:16:43 -08:00
ast-dump-openmp-target-teams-distribute-parallel-for.c Modify TypePrinter to differentiate between anonymous struct and unnamed struct 2021-02-22 14:16:43 -08:00
ast-dump-openmp-target-teams-distribute-simd.c Modify TypePrinter to differentiate between anonymous struct and unnamed struct 2021-02-22 14:16:43 -08:00
ast-dump-openmp-target-teams-distribute.c Modify TypePrinter to differentiate between anonymous struct and unnamed struct 2021-02-22 14:16:43 -08:00
ast-dump-openmp-target-teams.c Modify TypePrinter to differentiate between anonymous struct and unnamed struct 2021-02-22 14:16:43 -08:00
ast-dump-openmp-target-update.c Modify TypePrinter to differentiate between anonymous struct and unnamed struct 2021-02-22 14:16:43 -08:00
ast-dump-openmp-target.c Modify TypePrinter to differentiate between anonymous struct and unnamed struct 2021-02-22 14:16:43 -08:00
ast-dump-openmp-task.c Modify TypePrinter to differentiate between anonymous struct and unnamed struct 2021-02-22 14:16:43 -08:00
ast-dump-openmp-taskgroup.c Modify TypePrinter to differentiate between anonymous struct and unnamed struct 2021-02-22 14:16:43 -08:00
ast-dump-openmp-taskloop-simd.c Modify TypePrinter to differentiate between anonymous struct and unnamed struct 2021-02-22 14:16:43 -08:00
ast-dump-openmp-taskloop.c Modify TypePrinter to differentiate between anonymous struct and unnamed struct 2021-02-22 14:16:43 -08:00
ast-dump-openmp-taskwait.c
ast-dump-openmp-taskyield.c
ast-dump-openmp-teams-distribute-parallel-for-simd.c Modify TypePrinter to differentiate between anonymous struct and unnamed struct 2021-02-22 14:16:43 -08:00
ast-dump-openmp-teams-distribute-parallel-for.c Modify TypePrinter to differentiate between anonymous struct and unnamed struct 2021-02-22 14:16:43 -08:00
ast-dump-openmp-teams-distribute-simd.c Modify TypePrinter to differentiate between anonymous struct and unnamed struct 2021-02-22 14:16:43 -08:00
ast-dump-openmp-teams-distribute.c Modify TypePrinter to differentiate between anonymous struct and unnamed struct 2021-02-22 14:16:43 -08:00
ast-dump-openmp-teams.c Modify TypePrinter to differentiate between anonymous struct and unnamed struct 2021-02-22 14:16:43 -08:00
ast-dump-overloaded-operators.cpp
ast-dump-pipe.cl
ast-dump-ppc-types.c
ast-dump-record-definition-data-json.cpp [clang] NFC: Rename rvalue to prvalue 2021-06-09 12:27:10 +02:00
ast-dump-record-definition-data.cpp
ast-dump-records-json.cpp [clang] NFC: Rename rvalue to prvalue 2021-06-09 12:27:10 +02:00
ast-dump-records.c Modify TypePrinter to differentiate between anonymous struct and unnamed struct 2021-02-22 14:16:43 -08:00
ast-dump-records.cpp Modify TypePrinter to differentiate between anonymous struct and unnamed struct 2021-02-22 14:16:43 -08:00
ast-dump-recovery.c
ast-dump-recovery.cpp [Sema] Preserve invalid CXXCtorInitializers using RecoveryExpr in initializer 2021-08-10 15:16:52 +02:00
ast-dump-recovery.m
ast-dump-special-member-functions.cpp
ast-dump-stmt-json.c [clang] NFC: Rename rvalue to prvalue 2021-06-09 12:27:10 +02:00
ast-dump-stmt-json.cpp [clang] NFC: Rename rvalue to prvalue 2021-06-09 12:27:10 +02:00
ast-dump-stmt-json.m [clang] NFC: Rename rvalue to prvalue 2021-06-09 12:27:10 +02:00
ast-dump-stmt.c
ast-dump-stmt.cpp
ast-dump-stmt.m
ast-dump-template-decls-json.cpp [clang] NFC: Rename rvalue to prvalue 2021-06-09 12:27:10 +02:00
ast-dump-template-decls.cpp
ast-dump-templates.cpp
ast-dump-temporaries-json.cpp [clang] NFC: Rename rvalue to prvalue 2021-06-09 12:27:10 +02:00
ast-dump-traits.cpp
ast-dump-types-errors-json.cpp [clang] NFC: Rename rvalue to prvalue 2021-06-09 12:27:10 +02:00
ast-dump-types-errors.cpp
ast-dump-types-json.cpp
ast-dump-undeduced-expr.cpp [clang] Make member var invalid when static initializer is invalid. 2021-08-03 11:52:52 +02:00
ast-dump-undeserialized.cpp
ast-dump-using-enum.cpp [clang] p1099 using enum part 2 2021-06-08 11:11:46 -07:00
ast-dump-wasm-attr-export.c
ast-dump-wasm-attr-import.c
ast-dump-wchar.cpp
ast-print-attr.c
ast-print-bool.c
ast-print-char-literal.cpp
ast-print-enum-decl.c
ast-print-int128.cpp Add a target triple to fix test failure on targets that don't support 2021-03-25 17:05:36 -07:00
ast-print-no-sanitize.cpp
ast-print-objc-property.m
ast-print-objectivec.m
ast-print-out-of-line-func.cpp
ast-print-pragmas.cpp
ast-print-record-decl.c
ast-print-sycl-unique-stable-name.cpp [NFC] Drop idle compiler option from the test. 2021-08-13 13:20:11 +03:00
ast-printer-lambda.cpp
atomic-expr.cpp
attr-print-emit.cpp
attr-swift_attr.m
attr-swift_bridge.m
attr-swift_bridged_typedef.m
attr-swift_bridged_typedef.mm
attr-swift_newtype.m
attr-swift_private.m
attr-target-ast.c
auto-pragma.cpp
bool-type.m
builtins-arm-strex-rettype.c
c-casts.c
category-attribute.m
const-fpfeatures.c
const-fpfeatures.cpp
coroutine-locals-cleanup.cpp [Coroutines] [Clang] Look up coroutine component in std namespace first 2021-09-03 10:22:55 +08:00
coroutine-source-location-crash.cpp [Coroutines] [Clang] Look up coroutine component in std namespace first 2021-09-03 10:22:55 +08:00
deduction-guides.cpp
dump.cpp
finally-msvc.m
fixed_point.c
fixed_point_to_string.c
float16.cpp
foreachtemplatized.mm
function-alias.cpp
gen_ast_dump_json_test.py
implicit-cast-dump.c
language_address_space_attribute.cpp
multistep-explicit-cast-json.c [clang] NFC: Rename rvalue to prvalue 2021-06-09 12:27:10 +02:00
multistep-explicit-cast-json.cpp [clang] NFC: Rename rvalue to prvalue 2021-06-09 12:27:10 +02:00
multistep-explicit-cast.c
multistep-explicit-cast.cpp
objc-default-ctor-init.mm
pr43983.cpp
pr47636.cpp
pragma-attribute-cxx-subject-match-rules.cpp
pragma-attribute-objc-subject-match-rules.m
property-atomic-bool.m
rdr6094103-unordered-compare-promote.c
regression-new-expr-crash.cpp
sourceranges.cpp [clang][parser] Set source ranges for GNU-style attributes 2021-04-04 07:59:22 +02:00
spurious-regparm.c
template-implicit-vars.cpp
variadic-promotion.c