[PATCH] D105759: Implement P2361 Unevaluated string literals
Corentin Jabot via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Tue Jun 27 11:19:39 PDT 2023
cor3ntin updated this revision to Diff 535073.
cor3ntin added a comment.
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.
Parse attribute as unevaluated string if they
are declare StringLiteralArgument in the Attr.td file.
WIP
@aaron.ballman Do we agree on direction before I
fix the remaining broken tests?
There are a few limitations, which I'm hoping not to fix there
- It doesn't support variadic string arguments
- checking the type of argument ahead of time seems like a good idea overall, maybe we want to expand that system?
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D105759/new/
https://reviews.llvm.org/D105759
Files:
clang-tools-extra/test/clang-tidy/checkers/modernize/unary-static-assert.cpp
clang/include/clang/AST/Expr.h
clang/include/clang/Basic/Attr.td
clang/include/clang/Basic/DiagnosticCommonKinds.td
clang/include/clang/Basic/DiagnosticLexKinds.td
clang/include/clang/Basic/DiagnosticSemaKinds.td
clang/include/clang/Lex/LiteralSupport.h
clang/include/clang/Parse/Parser.h
clang/include/clang/Sema/ParsedAttr.h
clang/include/clang/Sema/Sema.h
clang/lib/AST/Expr.cpp
clang/lib/Lex/LiteralSupport.cpp
clang/lib/Lex/PPMacroExpansion.cpp
clang/lib/Lex/Pragma.cpp
clang/lib/Parse/ParseDecl.cpp
clang/lib/Parse/ParseDeclCXX.cpp
clang/lib/Parse/ParseExpr.cpp
clang/lib/Sema/SemaDeclAttr.cpp
clang/lib/Sema/SemaDeclCXX.cpp
clang/lib/Sema/SemaExpr.cpp
clang/lib/Sema/SemaExprCXX.cpp
clang/lib/Sema/SemaInit.cpp
clang/test/CXX/dcl.dcl/dcl.link/p2.cpp
clang/test/CXX/dcl.dcl/p4-0x.cpp
clang/test/FixIt/fixit-static-assert.cpp
clang/test/Parser/cxx-attributes.cpp
clang/test/Parser/cxx0x-attributes.cpp
clang/test/Sema/MicrosoftExtensions.c
clang/test/Sema/attr-btf_type_tag.c
clang/test/Sema/attr-capabilities.c
clang/test/SemaCXX/static-assert.cpp
clang/utils/TableGen/ClangAttrEmitter.cpp
llvm/cmake/modules/HandleLLVMOptions.cmake
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D105759.535073.patch
Type: text/x-patch
Size: 47308 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20230627/345ff38d/attachment-0001.bin>
More information about the cfe-commits
mailing list