diff options
author | Vlad Serebrennikov <serebrennikov.vladislav@gmail.com> | 2024-05-11 10:20:27 +0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-05-11 10:20:27 +0400 |
commit | 1351aabf542b25e3ff1d36f4f2abe6727d0f19aa (patch) | |
tree | a0a0e194e9183e773e06340724bef033f325e31b /clang/lib/Frontend/ModuleDependencyCollector.cpp | |
parent | 5cd280433e8e063bf3c2390eaf152e726db5b0fb (diff) | |
download | llvm-1351aabf542b25e3ff1d36f4f2abe6727d0f19aa.zip llvm-1351aabf542b25e3ff1d36f4f2abe6727d0f19aa.tar.gz llvm-1351aabf542b25e3ff1d36f4f2abe6727d0f19aa.tar.bz2 |
[clang] Add test for CWG1820 "Qualified typedef names" (#91765)
[P1787R6](https://wg21.link/p1787r6):
> [CWG1820](https://cplusplus.github.io/CWG/issues/1820.html) is
resolved by requiring that a qualified declarator-id declare an entity.
P1787R6 changes wording of [dcl.pre]/9. Quote from the current draft
([[dcl.pre]/5](https://eel.is/c++draft/dcl.pre#5)):
> If a
[declarator-id](https://eel.is/c++draft/dcl.decl.general#nt:declarator-id)
is a name, the
[init-declarator](https://eel.is/c++draft/dcl.decl.general#nt:init-declarator)
and (hence) the declaration introduce that
name[.](https://eel.is/c++draft/dcl.pre#5.sentence-1)
> [Note [3](https://eel.is/c++draft/dcl.pre#note-3): Otherwise, the
[declarator-id](https://eel.is/c++draft/dcl.decl.general#nt:declarator-id)
is a
[qualified-id](https://eel.is/c++draft/expr.prim.id.qual#nt:qualified-id)
or names a destructor or its
[unqualified-id](https://eel.is/c++draft/expr.prim.id.unqual#nt:unqualified-id)
is a [template-id](https://eel.is/c++draft/temp.names#nt:template-id)
and no name is
introduced[.](https://eel.is/c++draft/dcl.pre#5.sentence-2)
— end note]
Diffstat (limited to 'clang/lib/Frontend/ModuleDependencyCollector.cpp')
0 files changed, 0 insertions, 0 deletions