================
@@ -1670,6 +1675,11 @@ bool ResultBuilder::IsMember(const NamedDecl *ND) const {
          isa<ObjCPropertyDecl>(ND);
 }
 
+bool ResultBuilder::IsField(const NamedDecl *ND) const {
+  ND = ND->getUnderlyingDecl();
+  return isa<FieldDecl>(ND) || isa<IndirectFieldDecl>(ND);
----------------
schuay wrote:

Good suggestion. After adding the bit-field filter (the other review comment), 
the function needs to inspect the cast result to call `isBitField()`, so I 
switched it to `dyn_cast` instead. Let me know if you'd prefer a different 
shape.

https://github.com/llvm/llvm-project/pull/195126
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to