[clang] [BoundsSafety] Support late parsing for `counted_by` in type positions (PR #166491)

Yeoul Na via cfe-commits cfe-commits at lists.llvm.org
Mon Nov 10 10:47:14 PST 2025


================
@@ -2325,13 +2328,16 @@ class Declarator {
   /// This function takes attrs by R-Value reference because it takes ownership
   /// of those attributes from the parameter.
   void AddTypeInfo(const DeclaratorChunk &TI, ParsedAttributes &&attrs,
-                   SourceLocation EndLoc) {
+                   SourceLocation EndLoc,
+                   const DeclaratorChunk::LateAttrListTy &LateAttrs = {}) {
----------------
rapidsna wrote:

`ArrayRef` still sounds better. Thanks! I just updated it.

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


More information about the cfe-commits mailing list