[clang] [Clang][Sema] Support 'counted_by' attribute on FAM/pointers in anonymous unions (PR #171996)
Oliver Hunt via cfe-commits
cfe-commits at lists.llvm.org
Fri Jan 9 12:16:10 PST 2026
================
@@ -26,14 +26,20 @@ getCountAttrKind(bool CountInBytes, bool OrNull) {
: CountAttributedType::CountedBy;
}
+// Check if a RecordDecl is anonymous or will be anonymous once processing
+// completes. The anonymous flag may not be set yet during parsing.
+static bool IsAnonymousOrWillBeAnonymous(const RecordDecl *RD) {
----------------
ojhunt wrote:
is this the correct capitalization for static functions these days? (I am absolutely not saying that this is wrong, I'm simply getting increasingly confused about what our method and function style rules are)
https://github.com/llvm/llvm-project/pull/171996
More information about the cfe-commits
mailing list