[PATCH] D153536: [Clang] Implement P2169 A nice placeholder with no name
Corentin Jabot via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Thu Jun 22 05:22:59 PDT 2023
cor3ntin created this revision.
Herald added a project: All.
cor3ntin requested review of this revision.
Herald added a project: clang.
Herald added a subscriber: cfe-commits.
This is a C++ feature that allows the use of `_` to
declare multiple variable of that name in the same scope;
these variables can then not be refered to.
In addition, while P2169 <https://reviews.llvm.org/P2169> does not extend to parameter \
declarations, we stop warning on unused parameters of that name,
for consistency.
The feature is backported to all C++ language modes.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D153536
Files:
clang/docs/ReleaseNotes.rst
clang/include/clang/AST/Decl.h
clang/include/clang/AST/DeclBase.h
clang/include/clang/Basic/DiagnosticSemaKinds.td
clang/include/clang/Basic/IdentifierTable.h
clang/include/clang/Sema/Lookup.h
clang/include/clang/Sema/Sema.h
clang/lib/AST/Decl.cpp
clang/lib/Frontend/InitPreprocessor.cpp
clang/lib/Sema/SemaDecl.cpp
clang/lib/Sema/SemaDeclCXX.cpp
clang/lib/Sema/SemaLambda.cpp
clang/lib/Sema/SemaLookup.cpp
clang/test/Lexer/cxx-features.cpp
clang/test/Lexer/unicode.c
clang/test/SemaCXX/cxx2c-placeholder-vars.cpp
clang/www/cxx_status.html
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D153536.533567.patch
Type: text/x-patch
Size: 24753 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20230622/e3c7bc1a/attachment-0001.bin>
More information about the cfe-commits
mailing list