forked from OSchip/llvm-project
ead1690d31
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. |
||
---|---|---|
.. | ||
ASTTableGen.cpp | ||
ASTTableGen.h | ||
CMakeLists.txt | ||
ClangASTNodesEmitter.cpp | ||
ClangASTPropertiesEmitter.cpp | ||
ClangAttrEmitter.cpp | ||
ClangCommentCommandInfoEmitter.cpp | ||
ClangCommentHTMLNamedCharacterReferenceEmitter.cpp | ||
ClangCommentHTMLTagsEmitter.cpp | ||
ClangDataCollectorsEmitter.cpp | ||
ClangDiagnosticsEmitter.cpp | ||
ClangOpcodesEmitter.cpp | ||
ClangOpenCLBuiltinEmitter.cpp | ||
ClangOptionDocEmitter.cpp | ||
ClangSACheckersEmitter.cpp | ||
ClangSyntaxEmitter.cpp | ||
ClangTypeNodesEmitter.cpp | ||
MveEmitter.cpp | ||
NeonEmitter.cpp | ||
RISCVVEmitter.cpp | ||
SveEmitter.cpp | ||
TableGen.cpp | ||
TableGenBackends.h |