================
@@ -1161,10 +1161,13 @@ class Parser : public CodeCompletionHandler {
     IdentifierInfo *MacroII = nullptr;
     SourceLocation AttrNameLoc;
     SmallVector<Decl *, 2> Decls;
+    unsigned NestedTypeLevel;
----------------
AaronBallman wrote:

> IOW, even if we stored both QualTypes and walked between them like you 
> suggested, we'd still need that position-calculating logic for any 
> `LateParsedTypeAttribute`.

I guess I'm not seeing why it's needed for any type attribute. Our existing 
type attributes either apply to one specific kind of type (like calling 
conventions which apply to function [pointer] types) or they're general so they 
apply to any levels of nesting (like __sptr, nullability qualifiers, etc). I 
don't think we have any other attributes where the nesting level matters, do we?

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

Reply via email to