diff options
author | Aaron Ballman <aaron@aaronballman.com> | 2021-04-05 17:51:05 -0400 |
---|---|---|
committer | Aaron Ballman <aaron@aaronballman.com> | 2021-04-05 17:52:17 -0400 |
commit | 9711118d2edf7aed133616de1eb7f633c263c4b5 (patch) | |
tree | 58900e83034a32b0485f75f6bfcb47aefe3ebbd8 /clang/unittests/Frontend/CompilerInvocationTest.cpp | |
parent | a46f59a747a7273cc439efaf3b4f98d8b63d2f20 (diff) | |
download | llvm-9711118d2edf7aed133616de1eb7f633c263c4b5.zip llvm-9711118d2edf7aed133616de1eb7f633c263c4b5.tar.gz llvm-9711118d2edf7aed133616de1eb7f633c263c4b5.tar.bz2 |
Rework the way statement attributes are processed; NFC
This changes our approach to processing statement attributes to be more
similar to how we process declaration attributes. Namely,
ActOnAttributedStmt() now calls ProcessStmtAttributes() instead of
vice-versa, and there is now an interface split between building an
attributed statement where you already have a list of semantic
attributes and building an attributed statement with attributes from
the parser.
This should make it easier to support statement attributes that are
dependent on a template. In that case, you would add a
TransformFooAttr() function in TreeTransform.h to perform the semantic
checking (morally similar to how Sema::InstantiateAttrs() already works
for declaration attributes) when transforming the semantic attribute at
instantiation time.
Diffstat (limited to 'clang/unittests/Frontend/CompilerInvocationTest.cpp')
0 files changed, 0 insertions, 0 deletions