[clang] [clang/AST] Make it possible to use SwiftAttr in type context (PR #108631)

Erich Keane via cfe-commits cfe-commits at lists.llvm.org
Wed Oct 30 09:08:38 PDT 2024


================
@@ -668,12 +668,16 @@ let Class = AttributedType in {
   def : Property<"equivalentType", QualType> {
     let Read = [{ node->getEquivalentType() }];
   }
-  def : Property<"attribute", AttrKind> {
+  def : Property<"attrKind", AttrKind> {
     let Read = [{ node->getAttrKind() }];
   }
+  def : Property<"attribute", Attr> {
----------------
erichkeane wrote:

Is there reason to store both `attribute` and `attrKind` here?  Should we just implement `attrKind` as `attribute.getKind` ?

https://github.com/llvm/llvm-project/pull/108631


More information about the cfe-commits mailing list