diff options
author | Krystian Stasiowski <sdkrystian@gmail.com> | 2024-04-11 11:23:24 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-04-11 11:23:24 -0400 |
commit | 198ffb85314f7741ed048de67d68ca83bb30e16e (patch) | |
tree | 190f0d4f4bf16998e42e5fa479c18b9ffa1f3af4 /llvm/lib/CodeGen/TargetLoweringObjectFileImpl.cpp | |
parent | 44718311dee486f1823876e8af9100afcc50041b (diff) | |
download | llvm-198ffb85314f7741ed048de67d68ca83bb30e16e.zip llvm-198ffb85314f7741ed048de67d68ca83bb30e16e.tar.gz llvm-198ffb85314f7741ed048de67d68ca83bb30e16e.tar.bz2 |
[Clang][Sema] Implement approved resolution for CWG2858 (#88042)
The approved resolution for CWG2858 changes
[expr.prim.id.qual] p2 sentence 2 to read:
> A declarative _nested-name-specifier_ shall not have a
_computed-type-specifier_.
This patch implements the approved resolution. Since we don't consider
_nested-name-specifiers_ in friend declarations to be declarative (yet),
it currently isn't possible to write a test that would produce this
diagnostic (`diagnoseQualifiedDeclaration` is never called if the
`DeclContext` can't be computed). Nevertheless, tests were added which
will produce the diagnostic once we start calling
`diagnoseQualifiedDeclaration` for friend declarations.
Diffstat (limited to 'llvm/lib/CodeGen/TargetLoweringObjectFileImpl.cpp')
0 files changed, 0 insertions, 0 deletions