llvm-project/clang/test/CoverageMapping
Chuanqi Xu ec117158a3 [Coroutines] [Frontend] Lookup in std namespace first
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.

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. So the existing codes wouldn't be break after update
compiler.

And in case the compiler found std::coroutine_traits and
std::experimental::coroutine_traits at the same time, it would emit an
error for it.

The support for looking up std::experimental::coroutine_traits would be
removed in Clang16.

Reviewed By: lxfind, Quuxplusone

Differential Revision: https://reviews.llvm.org/D108696
2021-11-04 11:53:47 +08:00
..
Inputs
abspath.cpp [Coverage] Store compilation dir separately in coverage mapping 2021-02-18 14:34:39 -08:00
block-storage-starts-region.m
branch-constfolded.cpp [Coverage] Fix test failures from commit rG9f2967bcfe2f 2021-01-05 13:35:52 -06:00
branch-logical-mixed.cpp [Coverage] Add support for Branch Coverage in LLVM Source-Based Code Coverage 2021-01-05 09:51:51 -06:00
branch-macros.cpp [Coverage] Fix test failures from commit rG9f2967bcfe2f 2021-01-05 13:35:52 -06:00
branch-mincounters.cpp [Coverage] Fix test failures from commit rG9f2967bcfe2f 2021-01-05 13:35:52 -06:00
branch-templates.cpp [Coverage] Fix test failures from commit rG9f2967bcfe2f 2021-01-05 13:35:52 -06:00
break.c Revert "Revert "[Coverage] Emit gap region between statements if first statements contains terminate statements."" 2021-03-04 11:52:43 -08:00
builtinmacro.c
casts.c
classtemplate.cpp Revert "Revert "[Coverage] Emit gap region between statements if first statements contains terminate statements."" 2021-03-04 11:52:43 -08:00
comment-in-macro.c
comment.cpp
continue.c Revert "Revert "[Coverage] Emit gap region between statements if first statements contains terminate statements."" 2021-03-04 11:52:43 -08:00
control-flow-macro.c
coroutine.cpp [Coroutines] [Frontend] Lookup in std namespace first 2021-11-04 11:53:47 +08:00
decl.c
default-method.cpp
empty-destructor.cpp
header.cpp
if.cpp [Coverage] Emit gap region after conditions when macro is present. 2021-02-18 11:41:04 -08:00
implicit-def-in-macro.m
include-macros.c
includehell.cpp
ir.c
label.cpp Revert "Revert "[Coverage] Emit gap region between statements if first statements contains terminate statements."" 2021-03-04 11:52:43 -08:00
lambda.cpp
logical.cpp [Coverage] Add support for Branch Coverage in LLVM Source-Based Code Coverage 2021-01-05 09:51:51 -06:00
loopmacro.c [Coverage] Add support for Branch Coverage in LLVM Source-Based Code Coverage 2021-01-05 09:51:51 -06:00
loops.cpp [Coverage] Add support for Branch Coverage in LLVM Source-Based Code Coverage 2021-01-05 09:51:51 -06:00
macro-expansion.c [Coverage] Add support for Branch Coverage in LLVM Source-Based Code Coverage 2021-01-05 09:51:51 -06:00
macro-expressions.cpp [Coverage] Emit gap region after conditions when macro is present. 2021-02-18 11:41:04 -08:00
macro-stringize-twice.cpp
macroception.c
macroparams.c
macroparams2.c [Coverage] Emit gap region after conditions when macro is present. 2021-02-18 11:41:04 -08:00
macros.c [Coverage] Emit gap region after conditions when macro is present. 2021-02-18 11:41:04 -08:00
macroscopes.cpp [Coverage] Emit gap region after conditions when macro is present. 2021-02-18 11:41:04 -08:00
md.cpp
moremacros.c [Coverage] Emit gap region after conditions when macro is present. 2021-02-18 11:41:04 -08:00
nestedclass.cpp
objc.m
openmp.c
pr32679.cpp
preprocessor.c
return.c Revert "Revert "[Coverage] Emit gap region between statements if first statements contains terminate statements."" 2021-03-04 11:52:43 -08:00
switch.cpp Revert "Revert "[Coverage] Emit gap region between statements if first statements contains terminate statements."" 2021-03-04 11:52:43 -08:00
switchmacro.c Revert "Revert "[Coverage] Emit gap region between statements if first statements contains terminate statements."" 2021-03-04 11:52:43 -08:00
system_macro.cpp
templates.cpp
terminate-statements.cpp Revert "Revert "[Coverage] Emit gap region between statements if first statements contains terminate statements."" 2021-03-04 11:52:43 -08:00
test.c [Coverage] Add support for Branch Coverage in LLVM Source-Based Code Coverage 2021-01-05 09:51:51 -06:00
trycatch.cpp Revert "Revert "[Coverage] Emit gap region between statements if first statements contains terminate statements."" 2021-03-04 11:52:43 -08:00
trymacro.cpp
unreachable-macro.c Revert "Revert "[Coverage] Emit gap region between statements if first statements contains terminate statements."" 2021-03-04 11:52:43 -08:00
unused_function.cpp
unused_names.c
while.c [Coverage] Add support for Branch Coverage in LLVM Source-Based Code Coverage 2021-01-05 09:51:51 -06:00