[clang] [BoundsSafety] WIP: Make 'counted_by' work for pointer fields; late parsing for 'counted_by' on decl attr position (PR #87596)

Bill Wendling via cfe-commits cfe-commits at lists.llvm.org
Fri Apr 12 09:05:45 PDT 2024


================
@@ -4997,7 +5087,11 @@ void Parser::ParseStructUnionBody(SourceLocation RecordLoc,
 
   ParsedAttributes attrs(AttrFactory);
   // If attributes exist after struct contents, parse them.
-  MaybeParseGNUAttributes(attrs);
+  MaybeParseGNUAttributes(attrs, &LateFieldAttrs);
+
+  assert(!getLangOpts().CPlusPlus);
----------------
bwendling wrote:

Is it possible to combine C++'s late parsing with your implementation? Or is there little overlap?

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


More information about the cfe-commits mailing list