llvm-capstone/clang/test/CXX
Vlad Serebrennikov 5cda0d165a [clang] Add test for CWG1821
[[https://wg21.link/p1787 | P1787]]: My clarification in [[ http://lists.isocpp.org/core/2019/06/6614.php | “Where can namespace-scope functions and variables be redeclared?” ]] is applied, resolving CWG1821.
Wording: (If the declaration is not a friend declaration:) If the id-expression in a declarator-id is a qualified-id Q, let S be its lookup context; the declaration shall inhabit a namespace scope. ([dcl.meaning]/1)

Reviewed By: shafik, #clang-language-wg

Differential Revision: https://reviews.llvm.org/D149003
2023-04-25 09:03:46 +03:00
..
basic [C++20] [Modules] Deprecate to load C++20 Modules eagerly 2023-03-03 14:25:33 +08:00
class [Clang] Fix defaulted equality operator so that it does not attempt to compare unnamed bit-fields 2023-04-14 15:01:00 -07:00
class.access [test] Make tests pass regardless of gnu++14/gnu++17 default 2022-09-04 05:29:32 +00:00
class.derived [clang] Add fix-it note to defaulted-function-deleted warning 2022-10-04 19:38:10 +01:00
conv [clang] Implement ElaboratedType sugaring for types written bare 2022-07-27 11:10:54 +02:00
cpp/cpp.predefined [C++20] [Modules] Remove unmaintained Header Module 2022-11-18 10:39:33 +08:00
dcl Retain constraints in the canonical form of an auto type. 2023-03-30 17:00:16 -07:00
dcl.dcl Revert "[clang] Fix missing diagnostic of declaration use when accessing TypeDecls through typename access" 2022-10-25 12:23:10 -04:00
dcl.decl [clang] Implement CWG 2397 2023-04-12 22:30:23 +08:00
drs [clang] Add test for CWG1821 2023-04-25 09:03:46 +03:00
except [Clang] Convert CXX tests to opaque pointers (NFC) 2022-12-12 14:49:32 +01:00
expr [clang] Treat function parameter scope as an immediate function context 2023-03-07 11:46:26 -05:00
lex Add type information to integral template argument if required. 2021-05-12 19:00:08 +00:00
module re-land [C++20][Modules] Introduce an implementation module. 2023-03-29 08:52:28 +05:30
over [clang] Compare constraints before diagnosing mismatched ref qualifiers (GH58962) 2022-11-29 14:57:26 +02:00
special [Clang] Convert CXX tests to opaque pointers (NFC) 2022-12-12 14:49:32 +01:00
stmt.stmt [test] Make tests pass regardless of gnu++14/gnu++17 default 2022-09-04 05:29:32 +00:00
temp Ignore constraints when determining a canonical template parameter. 2023-03-30 17:00:16 -07:00