llvm-project/clang/utils/TableGen
Steffen Larsen ead1690d31 Allow parameter pack expansions and initializer lists in annotate attribute
These changes make the Clang parser recognize expression parameter pack
expansion and initializer lists in attribute arguments. Because
expression parameter pack expansion requires additional handling while
creating and instantiating templates, the support for them must be
explicitly supported through the AcceptsExprPack flag.

Handling expression pack expansions may require a delay to when the
arguments of an attribute are correctly populated. To this end,
attributes that are set to accept these - through setting the
AcceptsExprPack flag - will automatically have an additional variadic
expression argument member named DelayedArgs. This member is not
exposed the same way other arguments are but is set through the new
CreateWithDelayedArgs creator function generated for applicable
attributes.

To illustrate how to implement support for expression pack expansion
support, clang::annotate is made to support pack expansions. This is
done by making handleAnnotationAttr delay setting the actual attribute
arguments until after template instantiation if it was unable to
populate the arguments due to dependencies in the parsed expressions.
2022-02-08 13:38:07 -05:00
..
ASTTableGen.cpp [NFC][clang]Inclusive language: remove remaining uses of sanity 2021-11-24 14:20:13 -05:00
ASTTableGen.h
CMakeLists.txt [Clang][RISCV] Add custom TableGen backend for riscv-vector intrinsics. 2021-03-10 18:43:43 -08:00
ClangASTNodesEmitter.cpp
ClangASTPropertiesEmitter.cpp [clang] Use StringRef::contains (NFC) 2021-10-21 08:58:19 -07:00
ClangAttrEmitter.cpp Allow parameter pack expansions and initializer lists in annotate attribute 2022-02-08 13:38:07 -05:00
ClangCommentCommandInfoEmitter.cpp Comment parsing: Complete list of Doxygen commands 2021-11-09 18:35:26 +01:00
ClangCommentHTMLNamedCharacterReferenceEmitter.cpp Fix one round of implicit conversions found by g++5. 2020-01-29 01:52:48 +01:00
ClangCommentHTMLTagsEmitter.cpp Fix one round of implicit conversions found by g++5. 2020-01-29 01:52:48 +01:00
ClangDataCollectorsEmitter.cpp
ClangDiagnosticsEmitter.cpp [clang] Introduce support for disabling warnings in system macros 2022-01-12 08:18:19 +00:00
ClangOpcodesEmitter.cpp [Clang interpreter] Avoid storing pointers at unaligned locations 2021-07-28 16:03:41 +01:00
ClangOpenCLBuiltinEmitter.cpp [clang] Use llvm::{count,count_if,find_if,all_of,none_of} (NFC) 2021-10-25 09:14:45 -07:00
ClangOptionDocEmitter.cpp [TableGen] Eliminate the 'code' type 2020-12-03 10:19:11 -05:00
ClangSACheckersEmitter.cpp [analyzer] Introduce weak dependencies to express *preferred* checker callback evaluation order 2020-06-12 14:08:38 +02:00
ClangSyntaxEmitter.cpp [Syntax] Tablegen Sequence classes. NFC 2020-11-11 16:29:19 +01:00
ClangTypeNodesEmitter.cpp
MveEmitter.cpp [clang] Remove redundant member initialization (NFC) 2022-01-12 22:12:01 -08:00
NeonEmitter.cpp [clang] Fix bugprone argument comments (NFC) 2022-01-09 00:19:49 -08:00
RISCVVEmitter.cpp [Clang][RISCV] Guard vmulh, vsmul correctly 2022-01-25 10:19:12 -08:00
SveEmitter.cpp [AArch64][SVE] Always use overloaded methods instead of preprocessor macro. 2021-04-13 21:12:53 +01:00
TableGen.cpp [AST][clangd] Expose documentation of Attrs on hover. 2021-08-12 21:16:37 +02:00
TableGenBackends.h [AST][clangd] Expose documentation of Attrs on hover. 2021-08-12 21:16:37 +02:00