================
@@ -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:
Good question. I used `SmallVector<T, N>&` to allow default initialization. I
considered creating an overload that takes `SmallVectorImpl<T>&`, but a single
function with a default-initialized parameter felt simpler. That said, I'm open
to other suggestions.
https://github.com/llvm/llvm-project/pull/166491
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits